File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 567
567
dest = 'without_npm' ,
568
568
help = 'do not install the bundled npm (package manager)' )
569
569
570
+ parser .add_argument ('--without-corepack' ,
571
+ action = 'store_true' ,
572
+ dest = 'without_corepack' ,
573
+ default = None ,
574
+ help = 'do not install the bundled Corepack' )
575
+
570
576
# Dummy option for backwards compatibility
571
577
parser .add_option ('--without-report' ,
572
578
action = 'store_true' ,
@@ -1066,6 +1072,7 @@ def configure_node(o):
1066
1072
o ['variables' ]['OS' ] = 'android'
1067
1073
o ['variables' ]['node_prefix' ] = options .prefix
1068
1074
o ['variables' ]['node_install_npm' ] = b (not options .without_npm )
1075
+ o ['variables' ]['node_install_corepack' ] = b (not options .without_corepack )
1069
1076
o ['variables' ]['debug_node' ] = b (options .debug_node )
1070
1077
o ['default_configuration' ] = 'Debug' if options .debug else 'Release'
1071
1078
o ['variables' ]['error_on_warn' ] = b (options .error_on_warn )
Original file line number Diff line number Diff line change @@ -163,6 +163,8 @@ def files(action):
163
163
164
164
if 'true' == variables .get ('node_install_npm' ):
165
165
npm_files (action )
166
+
167
+ if 'true' == variables .get ('node_install_corepack' ):
166
168
corepack_files (action )
167
169
168
170
headers (action )
You can’t perform that action at this time.
0 commit comments