@yarnpkg/cli 3.2.0-rc.6 → 3.2.0

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 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
- if (process.env.YARN_IGNORE_NODE !== `1` && !core_1.semverUtils.satisfiesWithPrereleases(version, range))
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)
@@ -2,16 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getDynamicLibs = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const cli = (0, tslib_1.__importStar)(require("@yarnpkg/cli"));
6
- const core = (0, tslib_1.__importStar)(require("@yarnpkg/core"));
7
- const fslib = (0, tslib_1.__importStar)(require("@yarnpkg/fslib"));
8
- const libzip = (0, tslib_1.__importStar)(require("@yarnpkg/libzip"));
9
- const parsers = (0, tslib_1.__importStar)(require("@yarnpkg/parsers"));
10
- const shell = (0, tslib_1.__importStar)(require("@yarnpkg/shell"));
11
- const clipanion = (0, tslib_1.__importStar)(require("clipanion"));
12
- const semver = (0, tslib_1.__importStar)(require("semver"));
13
- const typanion = (0, tslib_1.__importStar)(require("typanion"));
14
- const yup = (0, tslib_1.__importStar)(require("yup"));
5
+ const cli = tslib_1.__importStar(require("@yarnpkg/cli"));
6
+ const core = tslib_1.__importStar(require("@yarnpkg/core"));
7
+ const fslib = tslib_1.__importStar(require("@yarnpkg/fslib"));
8
+ const libzip = tslib_1.__importStar(require("@yarnpkg/libzip"));
9
+ const parsers = tslib_1.__importStar(require("@yarnpkg/parsers"));
10
+ const shell = tslib_1.__importStar(require("@yarnpkg/shell"));
11
+ const clipanion = tslib_1.__importStar(require("clipanion"));
12
+ const semver = tslib_1.__importStar(require("semver"));
13
+ const typanion = tslib_1.__importStar(require("typanion"));
14
+ const yup = tslib_1.__importStar(require("yup"));
15
15
  const getDynamicLibs = () => new Map([
16
16
  [`@yarnpkg/cli`, cli],
17
17
  [`@yarnpkg/core`, core],
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPluginConfiguration = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  // @ts-expect-error
6
- const package_json_1 = (0, tslib_1.__importDefault)(require("@yarnpkg/cli/package.json"));
6
+ const package_json_1 = tslib_1.__importDefault(require("@yarnpkg/cli/package.json"));
7
7
  const getDynamicLibs_1 = require("./getDynamicLibs");
8
8
  function getPluginConfiguration() {
9
9
  const plugins = new Set();
package/package.json CHANGED
@@ -1,33 +1,33 @@
1
1
  {
2
2
  "name": "@yarnpkg/cli",
3
- "version": "3.2.0-rc.6",
3
+ "version": "3.2.0",
4
4
  "license": "BSD-2-Clause",
5
5
  "main": "./lib/index.js",
6
6
  "dependencies": {
7
- "@yarnpkg/core": "^3.2.0-rc.6",
8
- "@yarnpkg/fslib": "^2.6.1-rc.1",
9
- "@yarnpkg/libzip": "^2.2.3-rc.1",
10
- "@yarnpkg/parsers": "^2.5.0-rc.4",
11
- "@yarnpkg/plugin-compat": "^3.1.2-rc.2",
7
+ "@yarnpkg/core": "^3.2.0",
8
+ "@yarnpkg/fslib": "^2.6.1",
9
+ "@yarnpkg/libzip": "^2.2.3",
10
+ "@yarnpkg/parsers": "^2.5.0",
11
+ "@yarnpkg/plugin-compat": "^3.1.2",
12
12
  "@yarnpkg/plugin-dlx": "^3.1.1",
13
- "@yarnpkg/plugin-essentials": "^3.2.0-rc.4",
13
+ "@yarnpkg/plugin-essentials": "^3.2.0",
14
14
  "@yarnpkg/plugin-file": "^2.3.0",
15
- "@yarnpkg/plugin-git": "^2.6.0-rc.6",
15
+ "@yarnpkg/plugin-git": "^2.6.0",
16
16
  "@yarnpkg/plugin-github": "^2.3.0",
17
17
  "@yarnpkg/plugin-http": "^2.2.0",
18
- "@yarnpkg/plugin-init": "^3.1.1",
18
+ "@yarnpkg/plugin-init": "^3.1.2",
19
19
  "@yarnpkg/plugin-link": "^2.2.0",
20
- "@yarnpkg/plugin-nm": "^3.1.1-rc.6",
21
- "@yarnpkg/plugin-npm": "^2.6.1-rc.5",
22
- "@yarnpkg/plugin-npm-cli": "^3.1.0",
23
- "@yarnpkg/plugin-pack": "^3.1.0",
24
- "@yarnpkg/plugin-patch": "^3.1.1-rc.4",
25
- "@yarnpkg/plugin-pnp": "^3.1.2-rc.6",
26
- "@yarnpkg/plugin-pnpm": "^1.1.0-rc.4",
27
- "@yarnpkg/shell": "^3.2.0-rc.4",
20
+ "@yarnpkg/plugin-nm": "^3.1.1",
21
+ "@yarnpkg/plugin-npm": "^2.7.0",
22
+ "@yarnpkg/plugin-npm-cli": "^3.2.0",
23
+ "@yarnpkg/plugin-pack": "^3.1.1",
24
+ "@yarnpkg/plugin-patch": "^3.2.0",
25
+ "@yarnpkg/plugin-pnp": "^3.2.0",
26
+ "@yarnpkg/plugin-pnpm": "^1.1.0",
27
+ "@yarnpkg/shell": "^3.2.0",
28
28
  "chalk": "^3.0.0",
29
29
  "ci-info": "^3.2.0",
30
- "clipanion": "^3.0.1",
30
+ "clipanion": "^3.2.0-rc.4",
31
31
  "semver": "^7.1.2",
32
32
  "tslib": "^1.13.0",
33
33
  "typanion": "^3.3.0",
@@ -36,14 +36,13 @@
36
36
  "devDependencies": {
37
37
  "@types/semver": "^7.1.0",
38
38
  "@types/yup": "^0",
39
- "@yarnpkg/builder": "^3.1.0",
39
+ "@yarnpkg/builder": "^3.2.0",
40
40
  "@yarnpkg/monorepo": "^0.0.0",
41
- "@yarnpkg/pnpify": "^3.1.1-rc.6",
42
- "micromatch": "^4.0.2",
43
- "typescript": "^4.5.2"
41
+ "@yarnpkg/pnpify": "^3.1.1",
42
+ "micromatch": "^4.0.2"
44
43
  },
45
44
  "peerDependencies": {
46
- "@yarnpkg/core": "^3.2.0-rc.6"
45
+ "@yarnpkg/core": "^3.2.0"
47
46
  },
48
47
  "scripts": {
49
48
  "postpack": "rm -rf lib",
@@ -93,6 +92,5 @@
93
92
  "engines": {
94
93
  "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
95
94
  },
96
- "stableVersion": "3.1.0",
97
95
  "types": "./lib/index.d.ts"
98
96
  }