deps: add corepack · nodejs/node@737df75 · GitHub
Skip to content

Commit 737df75

Browse files
arcanisrichardlau
authored andcommitted
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: nodejs/TSC#904 PR-URL: #39608 Backport-PR-URL: #40479 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent b85aa5a commit 737df75

74 files changed

Lines changed: 16602 additions & 29 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions

LICENSE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,17 @@ The externally maintained libraries used by Node.js are:
623623
USE OR OTHER DEALINGS IN THE SOFTWARE.
624624
"""
625625

626+
- corepack, located at deps/corepack, is licensed as follows:
627+
"""
628+
**Copyright © Corepack contributors**
629+
630+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
631+
632+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
633+
634+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
635+
"""
636+
626637
- OpenSSL, located at deps/openssl, is licensed as follows:
627638
"""
628639
Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved.

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,14 @@ $(PKG): release-only
10201020
# Builds the macOS installer for releases.
10211021
pkg: $(PKG)
10221022

1023+
corepack-update:
1024+
rm -rf /tmp/node-corepack-clone
1025+
git clone 'https://github.com/nodejs/corepack.git' /tmp/node-corepack-clone
1026+
cd /tmp/node-corepack-clone && yarn pack
1027+
rm -rf deps/corepack && mkdir -p deps/corepack
1028+
cd deps/corepack && tar xf /tmp/node-corepack-clone/package.tgz --strip-components=1
1029+
chmod +x deps/corepack/shims/*
1030+
10231031
# Note: this is strictly for release builds on release machines only.
10241032
pkg-upload: pkg
10251033
ssh $(STAGINGSERVER) "mkdir -p nodejs/$(DISTTYPEDIR)/$(FULLVERSION)"

deps/corepack/LICENSE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**Copyright © Corepack contributors**
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

deps/corepack/README.md

Lines changed: 147 additions & 0 deletions

0 commit comments

Comments
 (0)