diff options
author | Maël Nison <nison.mael@gmail.com> | 2020-09-28 18:35:09 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2021-08-25 17:55:32 +0300 |
commit | 46598b88bfaecbad92492b03758c3dcc69d5e4d0 (patch) | |
tree | ac3ed059af38f63d22e9242dca6596a71d97af87 /Makefile | |
parent | f581f6da94d011684661d48c9557d5aaf0d13c19 (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-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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)" |