@yarnpkg/cli 3.2.0-rc.12 → 3.2.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/main.js +5 -1
- package/package.json +20 -20
package/lib/main.js
CHANGED
|
@@ -57,7 +57,11 @@ async function main({ binaryVersion, pluginConfiguration }) {
|
|
|
57
57
|
var _a, _b, _c, _d, _e;
|
|
58
58
|
const version = process.versions.node;
|
|
59
59
|
const range = `>=12 <14 || 14.2 - 14.9 || >14.10.0`;
|
|
60
|
-
|
|
60
|
+
// YARN_IGNORE_NODE is special because this code needs to execute as early as possible.
|
|
61
|
+
// It's not a regular core setting because Configuration.find may use functions not available
|
|
62
|
+
// on older Node versions.
|
|
63
|
+
const ignoreNode = core_1.miscUtils.parseOptionalBoolean(process.env.YARN_IGNORE_NODE);
|
|
64
|
+
if (!ignoreNode && !core_1.semverUtils.satisfiesWithPrereleases(version, range))
|
|
61
65
|
throw new clipanion_1.UsageError(`This tool requires a Node version compatible with ${range} (got ${version}). Upgrade Node, or set \`YARN_IGNORE_NODE=1\` in your environment.`);
|
|
62
66
|
// Since we only care about a few very specific settings (yarn-path and ignore-path) we tolerate extra configuration key.
|
|
63
67
|
// If we didn't, we wouldn't even be able to run `yarn config` (which is recommended in the invalid config error message)
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarnpkg/cli",
|
|
3
|
-
"version": "3.2.0-rc.
|
|
3
|
+
"version": "3.2.0-rc.16",
|
|
4
4
|
"license": "BSD-2-Clause",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@yarnpkg/core": "^3.2.0-rc.
|
|
8
|
-
"@yarnpkg/fslib": "^2.6.1-rc.
|
|
9
|
-
"@yarnpkg/libzip": "^2.2.3-rc.
|
|
10
|
-
"@yarnpkg/parsers": "^2.5.0-rc.
|
|
11
|
-
"@yarnpkg/plugin-compat": "^3.1.2-rc.
|
|
7
|
+
"@yarnpkg/core": "^3.2.0-rc.16",
|
|
8
|
+
"@yarnpkg/fslib": "^2.6.1-rc.11",
|
|
9
|
+
"@yarnpkg/libzip": "^2.2.3-rc.11",
|
|
10
|
+
"@yarnpkg/parsers": "^2.5.0-rc.14",
|
|
11
|
+
"@yarnpkg/plugin-compat": "^3.1.2-rc.12",
|
|
12
12
|
"@yarnpkg/plugin-dlx": "^3.1.1",
|
|
13
|
-
"@yarnpkg/plugin-essentials": "^3.2.0-rc.
|
|
13
|
+
"@yarnpkg/plugin-essentials": "^3.2.0-rc.14",
|
|
14
14
|
"@yarnpkg/plugin-file": "^2.3.0",
|
|
15
|
-
"@yarnpkg/plugin-git": "^2.6.0-rc.
|
|
15
|
+
"@yarnpkg/plugin-git": "^2.6.0-rc.16",
|
|
16
16
|
"@yarnpkg/plugin-github": "^2.3.0",
|
|
17
17
|
"@yarnpkg/plugin-http": "^2.2.0",
|
|
18
|
-
"@yarnpkg/plugin-init": "^3.1.
|
|
18
|
+
"@yarnpkg/plugin-init": "^3.1.2-rc.3",
|
|
19
19
|
"@yarnpkg/plugin-link": "^2.2.0",
|
|
20
|
-
"@yarnpkg/plugin-nm": "^3.1.1-rc.
|
|
21
|
-
"@yarnpkg/plugin-npm": "^2.7.0-rc.
|
|
22
|
-
"@yarnpkg/plugin-npm-cli": "^3.2.0-rc.
|
|
23
|
-
"@yarnpkg/plugin-pack": "^3.1.
|
|
24
|
-
"@yarnpkg/plugin-patch": "^3.2.0-rc.
|
|
25
|
-
"@yarnpkg/plugin-pnp": "^3.2.0-rc.
|
|
26
|
-
"@yarnpkg/plugin-pnpm": "^1.1.0-rc.
|
|
27
|
-
"@yarnpkg/shell": "^3.2.0-rc.
|
|
20
|
+
"@yarnpkg/plugin-nm": "^3.1.1-rc.16",
|
|
21
|
+
"@yarnpkg/plugin-npm": "^2.7.0-rc.9",
|
|
22
|
+
"@yarnpkg/plugin-npm-cli": "^3.2.0-rc.9",
|
|
23
|
+
"@yarnpkg/plugin-pack": "^3.1.1-rc.2",
|
|
24
|
+
"@yarnpkg/plugin-patch": "^3.2.0-rc.7",
|
|
25
|
+
"@yarnpkg/plugin-pnp": "^3.2.0-rc.6",
|
|
26
|
+
"@yarnpkg/plugin-pnpm": "^1.1.0-rc.14",
|
|
27
|
+
"@yarnpkg/shell": "^3.2.0-rc.14",
|
|
28
28
|
"chalk": "^3.0.0",
|
|
29
29
|
"ci-info": "^3.2.0",
|
|
30
30
|
"clipanion": "^3.2.0-rc.4",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/semver": "^7.1.0",
|
|
38
38
|
"@types/yup": "^0",
|
|
39
|
-
"@yarnpkg/builder": "^3.
|
|
39
|
+
"@yarnpkg/builder": "^3.2.0-rc.3",
|
|
40
40
|
"@yarnpkg/monorepo": "^0.0.0",
|
|
41
|
-
"@yarnpkg/pnpify": "^3.1.1-rc.
|
|
41
|
+
"@yarnpkg/pnpify": "^3.1.1-rc.16",
|
|
42
42
|
"micromatch": "^4.0.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@yarnpkg/core": "^3.2.0-rc.
|
|
45
|
+
"@yarnpkg/core": "^3.2.0-rc.16"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"postpack": "rm -rf lib",
|