File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
create-react-native-app/src Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ const argv = minimist(process.argv.slice(2));
21
21
* --verbose - to print npm logs during init
22
22
* --scripts-version <alternative package>
23
23
* --reason - shortcut for: --scripts-version 'reason-react-native-scripts'
24
+ * --typescript - shortcut for: --scripts-version 'react-native-scripts-ts'
24
25
* --package-manager <package manager name or path>
25
26
* Example of valid values:
26
27
* - a specific npm version: "0.22.0-rc1"
@@ -41,7 +42,11 @@ if (commands.length === 0) {
41
42
process . exit ( 1 ) ;
42
43
}
43
44
44
- const scriptsVersion = argv . reason ? 'reason-react-native-scripts' : argv [ 'scripts-version' ] ;
45
+ const scriptsVersion = argv . reason
46
+ ? 'reason-react-native-scripts'
47
+ : ( argv . typescript
48
+ ? 'react-native-scripts-ts'
49
+ : argv [ 'scripts-version' ] ) ;
45
50
46
51
createApp ( commands [ 0 ] , ! ! argv . verbose , scriptsVersion ) . then ( ( ) => { } ) ;
47
52
You can’t perform that action at this time.
0 commit comments