Skip to content

Commit 0231ffa

Browse files
jonahsniderrichardlau
authored andcommitted
build: add --without-corepack
PR-URL: #41060 Backport-PR-URL: #40479 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent cd20ecc commit 0231ffa

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

configure.py

+6
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,11 @@
567567
dest='without_npm',
568568
help='do not install the bundled npm (package manager)')
569569

570+
parser.add_option('--without-corepack',
571+
action='store_true',
572+
dest='without_corepack',
573+
help='do not install the bundled Corepack')
574+
570575
# Dummy option for backwards compatibility
571576
parser.add_option('--without-report',
572577
action='store_true',
@@ -1066,6 +1071,7 @@ def configure_node(o):
10661071
o['variables']['OS'] = 'android'
10671072
o['variables']['node_prefix'] = options.prefix
10681073
o['variables']['node_install_npm'] = b(not options.without_npm)
1074+
o['variables']['node_install_corepack'] = b(not options.without_corepack)
10691075
o['variables']['debug_node'] = b(options.debug_node)
10701076
o['default_configuration'] = 'Debug' if options.debug else 'Release'
10711077
o['variables']['error_on_warn'] = b(options.error_on_warn)

tools/install.py

+2
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)