Skip to content

--ignore-expo cli option #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
4 changes: 4 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ program
"Set a build number. WARNING: Watch out when setting high values. This option follows Android's app versioning specifics - the value has to be an integer and cannot be greater than 2100000000. You cannot decrement this value after publishing to Google Play! More info at: https://developer.android.com/studio/publish/versioning.html#appversioning",
parseInt
)
.option(
"--ignore-expo",
"Treat the app as ejected/bare-workflow even if app.json indicates otherwise."
)
.option(
"--generate-build",
"Generate build number from the package version number. (e.g. build number for version 1.22.3 will be 1022003)"
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function version(program, projectPath) {

var appJSON;
const appJSONPath = path.join(projPath, "app.json");
const isExpoApp = isExpoProject(projPath);
const isExpoApp = isExpoProject(projPath) && !programOpts.ignoreExpo;

isExpoApp && log({ text: "Expo detected" }, programOpts.quiet);

Expand Down
Loading