Skip to content

Commit

Permalink
build: add --without-corepack
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jonahsnider authored and aduh95 committed Dec 7, 2021
1 parent a02eea9 commit 1c76cff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,12 @@
dest='without_npm',
help='do not install the bundled npm (package manager)')

parser.add_argument('--without-corepack',
action='store_true',
dest='without_corepack',
default=None,
help='do not install the bundled Corepack')

# Dummy option for backwards compatibility
parser.add_option('--without-report',
action='store_true',
Expand Down Expand Up @@ -1066,6 +1072,7 @@ def configure_node(o):
o['variables']['OS'] = 'android'
o['variables']['node_prefix'] = options.prefix
o['variables']['node_install_npm'] = b(not options.without_npm)
o['variables']['node_install_corepack'] = b(not options.without_corepack)
o['variables']['debug_node'] = b(options.debug_node)
o['default_configuration'] = 'Debug' if options.debug else 'Release'
o['variables']['error_on_warn'] = b(options.error_on_warn)
Expand Down
2 changes: 2 additions & 0 deletions tools/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ def files(action):

if 'true' == variables.get('node_install_npm'):
npm_files(action)

if 'true' == variables.get('node_install_corepack'):
corepack_files(action)

headers(action)
Expand Down

0 comments on commit 1c76cff

Please sign in to comment.