Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaƫl Nison <nison.mael@gmail.com>2022-02-26 01:36:05 +0300
committerGitHub <noreply@github.com>2022-02-26 01:36:05 +0300
commite84b635db49d629f119959c9f0a31762ac22770b (patch)
tree36f1056e74351be4e21943cc0126892d49ceabe1 /Makefile
parent65b60b5676887d7c48baa78d0708a11f7089dce5 (diff)
build: add corepack to the auto-updated dependencies
PR-URL: https://github.com/nodejs/node/pull/42090 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 8b1b1f16014..4aace77c7c8 100644
--- a/Makefile
+++ b/Makefile
@@ -1119,13 +1119,15 @@ pkg: $(PKG)
.PHONY: corepack-update
corepack-update:
- rm -rf /tmp/node-corepack-clone
- git clone 'https://github.com/nodejs/corepack.git' /tmp/node-corepack-clone
- cd /tmp/node-corepack-clone && yarn pack
- rm -rf deps/corepack && mkdir -p deps/corepack
- cd deps/corepack && tar xf /tmp/node-corepack-clone/package.tgz --strip-components=1
+ mkdir -p /tmp/node-corepack
+ curl -qLo /tmp/node-corepack/package.tgz "$$(npm view corepack dist.tarball)"
+
+ rm -rf deps/corepack && mkdir deps/corepack
+ cd deps/corepack && tar xf /tmp/node-corepack/package.tgz --strip-components=1
chmod +x deps/corepack/shims/*
+ node deps/corepack/dist/corepack.js --version
+
.PHONY: pkg-upload
# Note: this is strictly for release builds on release machines only.
pkg-upload: pkg