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>2020-09-28 18:35:09 +0300
committerJames M Snell <jasnell@gmail.com>2021-08-25 17:55:32 +0300
commit46598b88bfaecbad92492b03758c3dcc69d5e4d0 (patch)
treeac3ed059af38f63d22e9242dca6596a71d97af87 /Makefile
parentf581f6da94d011684661d48c9557d5aaf0d13c19 (diff)
deps: add corepack
Corepack provides shims for Yarn and pnpm in order to soften the developer experience when working on Node projects. Refs: https://github.com/nodejs/node/issues/15244 Refs: https://github.com/nodejs/TSC/issues/904 PR-URL: https://github.com/nodejs/node/pull/39608 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 609d0614419..cc0539d98e8 100644
--- a/Makefile
+++ b/Makefile
@@ -1054,6 +1054,14 @@ endif
# Builds the macOS installer for releases.
pkg: $(PKG)
+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
+ chmod +x deps/corepack/shims/*
+
# Note: this is strictly for release builds on release machines only.
pkg-upload: pkg
ssh $(STAGINGSERVER) "mkdir -p nodejs/$(DISTTYPEDIR)/$(FULLVERSION)"