Skip to content

Commit 6ef6bdf

Browse files
authored
build: add --without-corepack
PR-URL: #41060 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 147d23b commit 6ef6bdf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

configure.py

+7
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,12 @@
641641
default=None,
642642
help='do not install the bundled npm (package manager)')
643643

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+
644650
# Dummy option for backwards compatibility
645651
parser.add_argument('--without-report',
646652
action='store_true',
@@ -1154,6 +1160,7 @@ def configure_node(o):
11541160
o['variables']['OS'] = 'android'
11551161
o['variables']['node_prefix'] = options.prefix
11561162
o['variables']['node_install_npm'] = b(not options.without_npm)
1163+
o['variables']['node_install_corepack'] = b(not options.without_corepack)
11571164
o['variables']['debug_node'] = b(options.debug_node)
11581165
o['default_configuration'] = 'Debug' if options.debug else 'Release'
11591166
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)