Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down