Skip to content

Commit 74557c3

Browse files
jonahsniderdanielleadams
authored andcommittedFeb 1, 2022
build: add --without-corepack
PR-URL: #41060 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 50420c6 commit 74557c3

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
@@ -646,6 +646,12 @@
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
650656
parser.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)

‎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)
Please sign in to comment.