Skip to content

Commit 58df4ef

Browse files
authored
Merge pull request #21 from GeekyAnts/feat/add-no-crna
Added --no-crna option for backwards compatibility
2 parents 476df59 + b28cdce commit 58df4ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ program
1919
.command("init <projectName>")
2020
// .command("init <projectName>", "create a Vue Native project")
2121
.option("--no-expo", "use react-native-cli instead of expo-cli")
22+
.option("--no-crna", "use react-native-cli instead of expo-cli")
2223
.action(function (projectName, cmd) {
2324
let isCrnaProject = false;
24-
if (cmd.expo) {
25+
if (cmd.expo && cmd.crna) {
2526
isCrnaProject = true;
2627
const isCrnaInstalledPackageVersion = validationObjects.getCrnaVersionIfAvailable();
2728
// check if Create-react-native-app dependency is present or not
@@ -64,7 +65,7 @@ program
6465
cmd
6566
);
6667
} else {
67-
init(projectName, cmd, cmd.expo);
68+
init(projectName, cmd, isCrnaProject);
6869
}
6970
});
7071

0 commit comments

Comments
 (0)