File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 646646 default = None ,
647647 help = 'do not install the bundled npm (package manager)' )
648648
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+
649655# Dummy option for backwards compatibility
650656parser .add_argument ('--without-report' ,
651657 action = 'store_true' ,
@@ -1159,6 +1165,7 @@ def configure_node(o):
11591165 o ['variables' ]['OS' ] = 'android'
11601166 o ['variables' ]['node_prefix' ] = options .prefix
11611167 o ['variables' ]['node_install_npm' ] = b (not options .without_npm )
1168+ o ['variables' ]['node_install_corepack' ] = b (not options .without_corepack )
11621169 o ['variables' ]['debug_node' ] = b (options .debug_node )
11631170 o ['default_configuration' ] = 'Debug' if options .debug else 'Release'
11641171 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):
163163
164164 if 'true' == variables .get ('node_install_npm' ):
165165 npm_files (action )
166+
167+ if 'true' == variables .get ('node_install_corepack' ):
166168 corepack_files (action )
167169
168170 headers (action )
You can’t perform that action at this time.
0 commit comments