diff --git a/cli.js b/cli.js index 15f4c32..6339946 100755 --- a/cli.js +++ b/cli.js @@ -27,6 +27,7 @@ program 'Path to your "android/app/build.gradle" file.', defaults.android ) + .option("-ignore-expo", "Ignore expo, do not update app.json.") .option("-i, --ios [path]", 'Path to your "ios/" folder.', defaults.ios) .option( "-L, --legacy", diff --git a/index.js b/index.js index 345f3d4..3832c28 100644 --- a/index.js +++ b/index.js @@ -183,9 +183,13 @@ function version(program, projectPath) { var appJSON; const appJSONPath = path.join(projPath, "app.json"); - const isExpoApp = isExpoProject(projPath); - + let isExpoApp = isExpoProject(projPath); + isExpoApp && log({ text: "Expo detected" }, programOpts.quiet); + if(programOpts.IgnoreExpo) { + isExpoApp && log({ text: "Expo ignored" }, programOpts.quiet); + isExpoApp = false; + } try { appJSON = require(appJSONPath);