Commit 2125449 1 parent 855f15d commit 2125449 Copy full SHA for 2125449
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 641
641
default = None ,
642
642
help = 'do not install the bundled npm (package manager)' )
643
643
644
+ parser .add_argument ('--without-corepack' ,
645
+ action = 'store_true' ,
646
+ dest = 'without_corepack' ,
647
+ default = None ,
648
+ help = 'do not install the bundled Corepack' )
649
+
644
650
# Dummy option for backwards compatibility
645
651
parser .add_argument ('--without-report' ,
646
652
action = 'store_true' ,
@@ -1154,6 +1160,7 @@ def configure_node(o):
1154
1160
o ['variables' ]['OS' ] = 'android'
1155
1161
o ['variables' ]['node_prefix' ] = options .prefix
1156
1162
o ['variables' ]['node_install_npm' ] = b (not options .without_npm )
1163
+ o ['variables' ]['node_install_corepack' ] = b (not options .without_corepack )
1157
1164
o ['variables' ]['debug_node' ] = b (options .debug_node )
1158
1165
o ['default_configuration' ] = 'Debug' if options .debug else 'Release'
1159
1166
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