From 0231ffa5010d906076da0d39734e43ed16b5ce7f Mon Sep 17 00:00:00 2001 From: Jonah Snider Date: Sun, 5 Dec 2021 02:23:25 -0800 Subject: [PATCH] build: add `--without-corepack` PR-URL: https://github.com/nodejs/node/pull/41060 Backport-PR-URL: https://github.com/nodejs/node/pull/40479 Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Antoine du Hamel Reviewed-By: Ruben Bridgewater --- configure.py | 6 ++++++ tools/install.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/configure.py b/configure.py index 30cf6726ae8916..2ea4eb69f5d0eb 100755 --- a/configure.py +++ b/configure.py @@ -567,6 +567,11 @@ dest='without_npm', help='do not install the bundled npm (package manager)') +parser.add_option('--without-corepack', + action='store_true', + dest='without_corepack', + help='do not install the bundled Corepack') + # Dummy option for backwards compatibility parser.add_option('--without-report', action='store_true', @@ -1066,6 +1071,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) diff --git a/tools/install.py b/tools/install.py index 00d3702e1827d7..a3078e062739aa 100755 --- a/tools/install.py +++ b/tools/install.py @@ -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)