File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ program.version(pkg.version)
8
8
. usage ( '[options] <name>' )
9
9
. option ( '-p, --prefix <prefix>' ,
10
10
'The prefix for the library (Default: `RN`)' )
11
+ . option ( '--override-prefix' ,
12
+ 'Overrides the prefix check and allows the name to begin with uppercase characters' )
11
13
. option ( '--module-prefix <modulePrefix>' ,
12
14
'The module prefix for the library (Default: `react-native`)' )
13
15
. option ( '--package-identifier <packageIdentifier>' ,
@@ -25,6 +27,7 @@ const modulePrefix = program.modulePrefix;
25
27
const packageIdentifier = program . packageIdentifier ;
26
28
const namespace = program . namespace ;
27
29
const platforms = ( program . platforms ) ? program . platforms . split ( ',' ) : program . platforms ;
30
+ const overridePrefix = program . overridePrefix ;
28
31
29
32
const beforeCreation = Date . now ( ) ;
30
33
createLibrary ( {
@@ -34,6 +37,7 @@ createLibrary({
34
37
packageIdentifier,
35
38
platforms,
36
39
namespace,
40
+ overridePrefix,
37
41
} ) . then ( ( ) => {
38
42
console . log ( `
39
43
Created library ${ name } . It took ${ Date . now ( ) - beforeCreation } ms.` ) ;
You can’t perform that action at this time.
0 commit comments