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 646
646
default = None ,
647
647
help = 'do not install the bundled npm (package manager)' )
648
648
649
+ parser .add_argument ('--without-corepack' ,
650
+ action = 'store_true' ,
651
+ dest = 'without_corepack' ,
652
+ default = None ,
653
+ help = 'do not install the bundled Corepack' )
654
+
649
655
# Dummy option for backwards compatibility
650
656
parser .add_argument ('--without-report' ,
651
657
action = 'store_true' ,
@@ -1159,6 +1165,7 @@ def configure_node(o):
1159
1165
o ['variables' ]['OS' ] = 'android'
1160
1166
o ['variables' ]['node_prefix' ] = options .prefix
1161
1167
o ['variables' ]['node_install_npm' ] = b (not options .without_npm )
1168
+ o ['variables' ]['node_install_corepack' ] = b (not options .without_corepack )
1162
1169
o ['variables' ]['debug_node' ] = b (options .debug_node )
1163
1170
o ['default_configuration' ] = 'Debug' if options .debug else 'Release'
1164
1171
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