Skip to content

Commit fa6c276

Browse files
arcanisdanielleadams
authored andcommittedOct 1, 2022
deps: update Corepack to 0.11.2
PR-URL: #43402 Backport-PR-URL: #43760 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
1 parent 4f83d75 commit fa6c276

37 files changed

+55821
-12834
lines changed
 

‎deps/corepack/CHANGELOG.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Changelog
2+
3+
## [0.11.2](https://github.com/nodejs/corepack/compare/v0.11.1...v0.11.2) (2022-06-13)
4+
5+
### Bug Fixes
6+
7+
* only set bins on pack ([#127](https://github.com/nodejs/corepack/issues/127)) ([7ae489a](https://github.com/nodejs/corepack/commit/7ae489a86c3fe584b9915f4ec57deb7c316c1a25))
8+
9+
## [0.11.1](https://github.com/nodejs/corepack/compare/v0.11.0...v0.11.1) (2022-06-12)
10+
11+
12+
### Bug Fixes
13+
14+
* **ci:** YAML formatting in publish workflow ([#124](https://github.com/nodejs/corepack/issues/124)) ([01c7d63](https://github.com/nodejs/corepack/commit/01c7d638b04a1340b3939a7985e24b586e344995))
15+
16+
## 0.11.0 (2022-06-12)
17+
18+
19+
### Features
20+
21+
* auto setup proxy for http requests ([#69](https://github.com/nodejs/corepack/issues/69)) ([876ce02](https://github.com/nodejs/corepack/commit/876ce02fe7385ea5bc896b2dc93d1fb320361c64))
22+
23+
24+
### Bug Fixes
25+
26+
* avoid symlinks to work on Windows ([#13](https://github.com/nodejs/corepack/issues/13)) ([b56df30](https://github.com/nodejs/corepack/commit/b56df30796da9c7cb0ba5e1bb7152c81582abba6))
27+
* avoid using eval to get the corepack version ([#45](https://github.com/nodejs/corepack/issues/45)) ([78d94eb](https://github.com/nodejs/corepack/commit/78d94eb297444d7558e8b4395f0108c97117f8ab))
28+
* bin file name for pnpm >=6.0 ([#35](https://github.com/nodejs/corepack/issues/35)) ([8ff2499](https://github.com/nodejs/corepack/commit/8ff2499e831c8cf2dea604ea985d830afc8a479e))
29+
* generate cmd shim files ([a900b4d](https://github.com/nodejs/corepack/commit/a900b4db12fcd4d99c0a4d011b426cdc6485d323))
30+
* handle package managers with a bin array correctly ([#20](https://github.com/nodejs/corepack/issues/20)) ([1836d17](https://github.com/nodejs/corepack/commit/1836d17b4fc4c0164df2fe1ccaca4d2f16f6f2d1))
31+
* handle parallel installs ([#84](https://github.com/nodejs/corepack/issues/84)) ([5cfc6c9](https://github.com/nodejs/corepack/commit/5cfc6c9df0dbec8e4de4324be37aa0a54a300552))
32+
* handle prereleases ([#32](https://github.com/nodejs/corepack/issues/32)) ([2a46b6d](https://github.com/nodejs/corepack/commit/2a46b6d13adae139141012254ef670d6ddcb5d11))
33+
34+
35+
### Performance Improvements
36+
37+
* load binaries in the same process ([#97](https://github.com/nodejs/corepack/issues/97)) ([5ff6e82](https://github.com/nodejs/corepack/commit/5ff6e82028e58448ba5ba986854b61ecdc69885b))

‎deps/corepack/README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Corepack is a zero-runtime-dependency Node.js script that acts as a bridge betwe
88

99
### Default Installs
1010

11-
Corepack is distributed by default with Node.js 16.9, but is opt-in for the time being. Run `corepack enable` to install the required shims.
11+
Corepack is distributed by default with Node.js 14.19.0 and 16.9.0, but is opt-in for the time being. Run `corepack enable` to install the required shims.
1212

1313
### Manual Installs
1414

@@ -104,8 +104,14 @@ This command will retrieve the given package manager from the specified archive
104104

105105
## Environment Variables
106106

107+
- `COREPACK_ENABLE_NETWORK` can be set to `0` to prevent Corepack from accessing the network (in which case you'll be responsible for hydrating the package manager versions that will be required for the projects you'll run, using `corepack hydrate`).
108+
109+
- `COREPACK_HOME` can be set in order to define where Corepack should install the package managers. By default it is set to `$HOME/.node/corepack`.
110+
107111
- `COREPACK_ROOT` has no functional impact on Corepack itself; it's automatically being set in your environment by Corepack when it shells out to the underlying package managers, so that they can feature-detect its presence (useful for commands like `yarn init`).
108112

113+
- `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` are supported through [`node-proxy-agent`](https://github.com/TooTallNate/node-proxy-agent).
114+
109115
## Contributing
110116

111117
If you want to build corepack yourself, you can build the project like this:

‎deps/corepack/dist/corepack.js

+14,848-12,710
Large diffs are not rendered by default.

‎deps/corepack/dist/vcc.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
/******/ (() => { // webpackBootstrap
44
/******/ var __webpack_modules__ = ({
55

6-
/***/ "./.yarn/cache/v8-compile-cache-npm-2.3.0-961375f150-adb0a271ea.zip/node_modules/v8-compile-cache/v8-compile-cache.js":
7-
/*!****************************************************************************************************************************!*\
8-
!*** ./.yarn/cache/v8-compile-cache-npm-2.3.0-961375f150-adb0a271ea.zip/node_modules/v8-compile-cache/v8-compile-cache.js ***!
9-
\****************************************************************************************************************************/
6+
/***/ "../../../.yarn/berry/cache/v8-compile-cache-npm-2.3.0-961375f150-9.zip/node_modules/v8-compile-cache/v8-compile-cache.js":
7+
/*!********************************************************************************************************************************!*\
8+
!*** ../../../.yarn/berry/cache/v8-compile-cache-npm-2.3.0-961375f150-9.zip/node_modules/v8-compile-cache/v8-compile-cache.js ***!
9+
\********************************************************************************************************************************/
1010
/***/ (function(module, exports) {
1111

1212
'use strict';
@@ -415,7 +415,7 @@ module.exports.__TEST__ = {
415415
/******/ // startup
416416
/******/ // Load entry module and return exports
417417
/******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
418-
/******/ var __webpack_exports__ = __webpack_require__("./.yarn/cache/v8-compile-cache-npm-2.3.0-961375f150-adb0a271ea.zip/node_modules/v8-compile-cache/v8-compile-cache.js");
418+
/******/ var __webpack_exports__ = __webpack_require__("../../../.yarn/berry/cache/v8-compile-cache-npm-2.3.0-961375f150-9.zip/node_modules/v8-compile-cache/v8-compile-cache.js");
419419
/******/ var __webpack_export_target__ = exports;
420420
/******/ for(var i in __webpack_exports__) __webpack_export_target__[i] = __webpack_exports__[i];
421421
/******/ if(__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", { value: true });

‎deps/corepack/dist/vendors-_yarn_berry_cache_proxy-agent-npm-5_0_0-41772f4b01-9_zip_node_modules_proxy-agent_index_js.js

+40,843
Large diffs are not rendered by default.

‎deps/corepack/package.json

+39-29
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "corepack",
3-
"version": "0.10.0",
3+
"version": "0.11.2",
44
"homepage": "https://github.com/nodejs/corepack#readme",
55
"bugs": {
66
"url": "https://github.com/nodejs/corepack/issues"
@@ -10,56 +10,49 @@
1010
"url": "https://github.com/nodejs/corepack.git"
1111
},
1212
"license": "MIT",
13-
"bin": {
14-
"corepack": "./dist/corepack.js",
15-
"pnpm": "./dist/pnpm.js",
16-
"pnpx": "./dist/pnpx.js",
17-
"yarn": "./dist/yarn.js",
18-
"yarnpkg": "./dist/yarnpkg.js"
19-
},
20-
"packageManager": "yarn@3.0.0",
13+
"packageManager": "yarn@4.0.0-rc.6",
2114
"devDependencies": {
2215
"@babel/core": "^7.14.3",
23-
"@babel/plugin-proposal-class-properties": "^7.13.0",
24-
"@babel/plugin-proposal-decorators": "^7.14.2",
25-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
2616
"@babel/plugin-transform-modules-commonjs": "^7.14.0",
2717
"@babel/preset-typescript": "^7.13.0",
2818
"@types/debug": "^4.1.5",
29-
"@types/jest": "^26.0.23",
30-
"@types/node": "^13.9.2",
19+
"@types/jest": "^27.0.0",
20+
"@types/node": "^17.0.10",
3121
"@types/semver": "^7.1.0",
32-
"@types/tar": "^4.0.3",
33-
"@types/which": "^1.3.2",
34-
"@typescript-eslint/eslint-plugin": "^2.0.0",
35-
"@typescript-eslint/parser": "^4.2.0",
36-
"@yarnpkg/eslint-config": "^0.1.0",
22+
"@types/tar": "^6.0.0",
23+
"@types/which": "^2.0.0",
24+
"@typescript-eslint/eslint-plugin": "^5.0.0",
25+
"@typescript-eslint/parser": "^5.0.0",
26+
"@yarnpkg/eslint-config": "^1.0.0-rc.5",
3727
"@yarnpkg/fslib": "^2.1.0",
3828
"@zkochan/cmd-shim": "^5.0.0",
3929
"babel-plugin-dynamic-import-node": "^2.3.3",
4030
"clipanion": "^3.0.1",
4131
"debug": "^4.1.1",
42-
"eslint": "^7.10.0",
43-
"eslint-plugin-arca": "^0.9.5",
44-
"jest": "^26.0.0",
32+
"eslint": "^8.0.0",
33+
"eslint-plugin-arca": "^0.15.0",
34+
"jest": "^28.0.0",
4535
"nock": "^13.0.4",
36+
"proxy-agent": "^5.0.0",
4637
"semver": "^7.1.3",
47-
"supports-color": "^7.1.0",
38+
"supports-color": "^9.0.0",
4839
"tar": "^6.0.1",
4940
"terser-webpack-plugin": "^5.1.2",
50-
"ts-loader": "^8.0.2",
51-
"ts-node": "^8.10.2",
41+
"ts-loader": "^9.0.0",
42+
"ts-node": "^10.0.0",
5243
"typescript": "^4.3.2",
5344
"v8-compile-cache": "^2.3.0",
5445
"webpack": "^5.38.1",
55-
"webpack-cli": "^3.3.11",
46+
"webpack-cli": "^4.0.0",
5647
"which": "^2.0.2"
5748
},
5849
"scripts": {
59-
"build": "rm -rf dist && webpack && ts-node ./mkshims.ts",
60-
"corepack": "ts-node ./sources/main.ts",
61-
"prepack": "node ./.yarn/releases/*.*js build",
50+
"build": "rm -rf dist shims && webpack && ts-node ./mkshims.ts",
51+
"corepack": "ts-node ./sources/_entryPoint.ts",
52+
"lint": "yarn eslint",
53+
"prepack": "yarn build",
6254
"postpack": "rm -rf dist shims",
55+
"typecheck": "tsc --noEmit",
6356
"test": "yarn jest"
6457
},
6558
"files": [
@@ -68,6 +61,13 @@
6861
"LICENSE.md"
6962
],
7063
"publishConfig": {
64+
"bin": {
65+
"corepack": "./dist/corepack.js",
66+
"pnpm": "./dist/pnpm.js",
67+
"pnpx": "./dist/pnpx.js",
68+
"yarn": "./dist/yarn.js",
69+
"yarnpkg": "./dist/yarnpkg.js"
70+
},
7171
"executableFiles": [
7272
"./dist/npm.js",
7373
"./dist/npx.js",
@@ -89,5 +89,15 @@
8989
"./shims/yarnpkg",
9090
"./shims/yarnpkg.ps1"
9191
]
92+
},
93+
"resolutions": {
94+
"vm2": "patch:vm2@npm:3.9.9#.yarn/patches/vm2-npm-3.9.9-03fd1f4dc5.patch"
95+
},
96+
"bin": {
97+
"corepack": "./dist/corepack.js",
98+
"pnpm": "./dist/pnpm.js",
99+
"pnpx": "./dist/pnpx.js",
100+
"yarn": "./dist/yarn.js",
101+
"yarnpkg": "./dist/yarnpkg.js"
92102
}
93103
}

‎deps/corepack/shims/corepack

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/../dist/corepack.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/../dist/corepack.js" "$@"
1212
fi

‎deps/corepack/shims/corepack.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\..\dist\corepack.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\..\dist\corepack.js" %*
7-
)
7+
)

‎deps/corepack/shims/nodewin/corepack

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/node_modules/corepack/dist/corepack.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/node_modules/corepack/dist/corepack.js" "$@"
1212
fi
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\node_modules\corepack\dist\corepack.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\node_modules\corepack\dist\corepack.js" %*
7-
)
7+
)

‎deps/corepack/shims/nodewin/npm

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/node_modules/corepack/dist/npm.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/node_modules/corepack/dist/npm.js" "$@"
1212
fi

‎deps/corepack/shims/nodewin/npm.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\node_modules\corepack\dist\npm.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\node_modules\corepack\dist\npm.js" %*
7-
)
7+
)

‎deps/corepack/shims/nodewin/npx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/node_modules/corepack/dist/npx.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/node_modules/corepack/dist/npx.js" "$@"
1212
fi

‎deps/corepack/shims/nodewin/npx.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\node_modules\corepack\dist\npx.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\node_modules\corepack\dist\npx.js" %*
7-
)
7+
)

‎deps/corepack/shims/nodewin/pnpm

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/node_modules/corepack/dist/pnpm.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/node_modules/corepack/dist/pnpm.js" "$@"
1212
fi

‎deps/corepack/shims/nodewin/pnpm.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\node_modules\corepack\dist\pnpm.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\node_modules\corepack\dist\pnpm.js" %*
7-
)
7+
)

‎deps/corepack/shims/nodewin/pnpx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/node_modules/corepack/dist/pnpx.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/node_modules/corepack/dist/pnpx.js" "$@"
1212
fi

‎deps/corepack/shims/nodewin/pnpx.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\node_modules\corepack\dist\pnpx.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\node_modules\corepack\dist\pnpx.js" %*
7-
)
7+
)

‎deps/corepack/shims/nodewin/vcc

-12
This file was deleted.

‎deps/corepack/shims/nodewin/vcc.cmd

-7
This file was deleted.

‎deps/corepack/shims/nodewin/vcc.ps1

-28
This file was deleted.

‎deps/corepack/shims/nodewin/yarn

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/node_modules/corepack/dist/yarn.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/node_modules/corepack/dist/yarn.js" "$@"
1212
fi

‎deps/corepack/shims/nodewin/yarn.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\node_modules\corepack\dist\yarn.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\node_modules\corepack\dist\yarn.js" %*
7-
)
7+
)

‎deps/corepack/shims/nodewin/yarnpkg

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/node_modules/corepack/dist/yarnpkg.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/node_modules/corepack/dist/yarnpkg.js" "$@"
1212
fi
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\node_modules\corepack\dist\yarnpkg.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\node_modules\corepack\dist\yarnpkg.js" %*
7-
)
7+
)

‎deps/corepack/shims/npm

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/../dist/npm.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/../dist/npm.js" "$@"
1212
fi

‎deps/corepack/shims/npm.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\..\dist\npm.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\..\dist\npm.js" %*
7-
)
7+
)

‎deps/corepack/shims/npx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/../dist/npx.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/../dist/npx.js" "$@"
1212
fi

‎deps/corepack/shims/npx.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\..\dist\npx.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\..\dist\npx.js" %*
7-
)
7+
)

‎deps/corepack/shims/pnpm

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/../dist/pnpm.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/../dist/pnpm.js" "$@"
1212
fi

‎deps/corepack/shims/pnpm.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\..\dist\pnpm.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\..\dist\pnpm.js" %*
7-
)
7+
)

‎deps/corepack/shims/pnpx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/../dist/pnpx.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/../dist/pnpx.js" "$@"
1212
fi

‎deps/corepack/shims/pnpx.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\..\dist\pnpx.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\..\dist\pnpx.js" %*
7-
)
7+
)

‎deps/corepack/shims/yarn

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/../dist/yarn.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/../dist/yarn.js" "$@"
1212
fi

‎deps/corepack/shims/yarn.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\..\dist\yarn.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\..\dist\yarn.js" %*
7-
)
7+
)

‎deps/corepack/shims/yarnpkg

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ esac
77

88
if [ -x "$basedir/node" ]; then
99
exec "$basedir/node" "$basedir/../dist/yarnpkg.js" "$@"
10-
else
10+
else
1111
exec node "$basedir/../dist/yarnpkg.js" "$@"
1212
fi

‎deps/corepack/shims/yarnpkg.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
@SETLOCAL
12
@IF EXIST "%~dp0\node.exe" (
23
"%~dp0\node.exe" "%~dp0\..\dist\yarnpkg.js" %*
34
) ELSE (
4-
@SETLOCAL
55
@SET PATHEXT=%PATHEXT:;.JS;=;%
66
node "%~dp0\..\dist\yarnpkg.js" %*
7-
)
7+
)

0 commit comments

Comments
 (0)
Please sign in to comment.