On ionic dashbord, I configured that I can build my own application automatically. (Deploy -> Builds )However, the following error is output.
[Missing package.json in app.]
I think that this cause is that there is no package.json in the root directory of the repository.
My ionic repository of github does not have the application directory directly in the root, and the application is arranged in the app subdirectory as follows.
/ app
package.json
src /
…
When making automatic build, can you let this app subdirectory be recognized as the current directory and execute the build?
Please tell me if you know.
@bhq yes I hacked it by having a package.json at the root with a preinstall script that basically moves the app to the root and deletes everything else (there’s probably a better way to write this script)
echo “running appflow.sh . . .”;
if [ “$CI_APP_ID” = “Jsjw273” ] # ionic appflow app id
then
echo “Moving mobile app to root so that Appflow works”;