Skip to content

Commit

Permalink
fix: --project-path was removed in cli 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Apr 7, 2023
1 parent 9630a3d commit 4ec5d42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion scripts/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,10 @@ const getConfig = (() => {
// should therefore only be set during testing.
const gitignore = process.env["GIT_IGNORE_FILE"] || "_gitignore";
const { name, templatePath, testAppPath, flatten, init } = params;
const projectPathFlag = flatten ? " --project-path ." : "";
const projectPathFlag =
flatten && packageSatisfiesVersionRange(cliPlatformIOS, "<8.0.0")
? " --project-path ."
: "";
const testAppRelPath = projectRelativePath(params);
const templateDir =
templatePath ||
Expand Down
2 changes: 1 addition & 1 deletion test/configure/__snapshots__/gatherConfig.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = {
],
"scripts": {
"build:ios": "mkdirp dist && react-native bundle --entry-file index.js --platform ios --dev true --bundle-output dist/main.ios.jsbundle --assets-dest dist",
"ios": "react-native run-ios --project-path .",
"ios": "react-native run-ios",
"start": "react-native start",
},
}
Expand Down

0 comments on commit 4ec5d42

Please sign in to comment.