@pnpm/plugin-commands-env 1000.0.12 → 1000.0.14
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.parseNodeSpecifier = parseNodeSpecifier;
|
|
4
4
|
const error_1 = require("@pnpm/error");
|
|
5
|
-
const isStableVersion = (version) =>
|
|
5
|
+
const isStableVersion = (version) => /^\d+\.\d+\.\d+$/.test(version);
|
|
6
6
|
const STABLE_RELEASE_ERROR_HINT = 'The correct syntax for stable release is strictly X.Y.Z or release/X.Y.Z';
|
|
7
7
|
function parseNodeSpecifier(specifier) {
|
|
8
8
|
if (specifier.includes('/')) {
|
|
@@ -19,7 +19,7 @@ function parseNodeSpecifier(specifier) {
|
|
|
19
19
|
}
|
|
20
20
|
return { releaseChannel, useNodeVersion };
|
|
21
21
|
}
|
|
22
|
-
const prereleaseMatch = specifier.match(
|
|
22
|
+
const prereleaseMatch = specifier.match(/^\d+\.\d+\.\d+-(nightly|rc|test|v8-canary)(\..+)$/);
|
|
23
23
|
if (prereleaseMatch != null) {
|
|
24
24
|
return { releaseChannel: prereleaseMatch[1], useNodeVersion: specifier };
|
|
25
25
|
}
|
|
@@ -30,7 +30,7 @@ function parseNodeSpecifier(specifier) {
|
|
|
30
30
|
if (['nightly', 'rc', 'test', 'v8-canary'].includes(specifier)) {
|
|
31
31
|
hint = `The correct syntax for ${specifier} release is strictly X.Y.Z-${specifier}.W`;
|
|
32
32
|
}
|
|
33
|
-
else if (
|
|
33
|
+
else if (/^\d+\.\d+$/.test(specifier) || /^\d+$/.test(specifier) || ['release', 'stable', 'latest'].includes(specifier)) {
|
|
34
34
|
hint = STABLE_RELEASE_ERROR_HINT;
|
|
35
35
|
}
|
|
36
36
|
throw new error_1.PnpmError('INVALID_NODE_VERSION', `"${specifier}" is not a valid Node.js version`, { hint });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseNodeSpecifier.js","sourceRoot":"","sources":["../src/parseNodeSpecifier.ts"],"names":[],"mappings":";;AAUA,gDAiCC;AA3CD,uCAAuC;AAOvC,MAAM,eAAe,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"parseNodeSpecifier.js","sourceRoot":"","sources":["../src/parseNodeSpecifier.ts"],"names":[],"mappings":";;AAUA,gDAiCC;AA3CD,uCAAuC;AAOvC,MAAM,eAAe,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;AAC5E,MAAM,yBAAyB,GAAG,0EAA0E,CAAA;AAE5G,SAAgB,kBAAkB,CAAE,SAAiB;IACnD,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5B,MAAM,CAAC,cAAc,EAAE,cAAc,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAE7D,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,CAAC;gBACrC,MAAM,IAAI,iBAAS,CAAC,sBAAsB,EAAE,IAAI,SAAS,kCAAkC,EAAE;oBAC3F,IAAI,EAAE,yBAAyB;iBAChC,CAAC,CAAA;YACJ,CAAC;QACH,CAAC;aAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;YACpD,MAAM,IAAI,iBAAS,CAAC,4BAA4B,EAAE,oBAAoB,cAAc,uCAAuC,cAAc,GAAG,CAAC,CAAA;QAC/I,CAAC;QAED,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA;IAC3C,CAAC;IAED,MAAM,eAAe,GAAG,SAAS,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAA;IAC5F,IAAI,eAAe,IAAI,IAAI,EAAE,CAAC;QAC5B,OAAO,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,SAAS,EAAE,CAAA;IAC1E,CAAC;IAED,IAAI,eAAe,CAAC,SAAS,CAAC,EAAE,CAAC;QAC/B,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,CAAA;IACjE,CAAC;IAED,IAAI,IAAwB,CAAA;IAC5B,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QAC/D,IAAI,GAAG,0BAA0B,SAAS,8BAA8B,SAAS,IAAI,CAAA;IACvF,CAAC;SAAM,IAAI,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QAC1H,IAAI,GAAG,yBAAyB,CAAA;IAClC,CAAC;IACD,MAAM,IAAI,iBAAS,CAAC,sBAAsB,EAAE,IAAI,SAAS,kCAAkC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;AACxG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,30 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/plugin-commands-env",
|
|
3
|
-
"version": "1000.0.
|
|
3
|
+
"version": "1000.0.14",
|
|
4
4
|
"description": "pnpm commands for managing Node.js",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"types": "lib/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"lib",
|
|
9
|
-
"!*.map"
|
|
10
|
-
],
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=18.12"
|
|
13
|
-
},
|
|
14
|
-
"repository": "https://github.com/pnpm/pnpm/blob/main/env/plugin-commands-env",
|
|
15
5
|
"keywords": [
|
|
16
|
-
"pnpm10",
|
|
17
6
|
"pnpm",
|
|
7
|
+
"pnpm10",
|
|
18
8
|
"env"
|
|
19
9
|
],
|
|
20
10
|
"license": "MIT",
|
|
11
|
+
"funding": "https://opencollective.com/pnpm",
|
|
12
|
+
"repository": "https://github.com/pnpm/pnpm/blob/main/env/plugin-commands-env",
|
|
13
|
+
"homepage": "https://github.com/pnpm/pnpm/blob/main/env/plugin-commands-env#readme",
|
|
21
14
|
"bugs": {
|
|
22
15
|
"url": "https://github.com/pnpm/pnpm/issues"
|
|
23
16
|
},
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
17
|
+
"main": "lib/index.js",
|
|
18
|
+
"types": "lib/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": "./lib/index.js"
|
|
27
21
|
},
|
|
22
|
+
"files": [
|
|
23
|
+
"lib",
|
|
24
|
+
"!*.map"
|
|
25
|
+
],
|
|
28
26
|
"dependencies": {
|
|
29
27
|
"@zkochan/cmd-shim": "^6.0.0",
|
|
30
28
|
"@zkochan/rimraf": "^3.0.2",
|
|
@@ -32,39 +30,41 @@
|
|
|
32
30
|
"is-windows": "^1.0.2",
|
|
33
31
|
"load-json-file": "^6.2.0",
|
|
34
32
|
"render-help": "^1.0.3",
|
|
35
|
-
"semver": "^7.
|
|
36
|
-
"symlink-dir": "^6.0.
|
|
33
|
+
"semver": "^7.7.1",
|
|
34
|
+
"symlink-dir": "^6.0.5",
|
|
37
35
|
"write-json-file": "^4.3.0",
|
|
38
|
-
"@pnpm/cli-utils": "1000.0.
|
|
39
|
-
"@pnpm/
|
|
36
|
+
"@pnpm/cli-utils": "1000.0.14",
|
|
37
|
+
"@pnpm/env.system-node-version": "1000.0.4",
|
|
38
|
+
"@pnpm/config": "1002.5.1",
|
|
40
39
|
"@pnpm/error": "1000.0.2",
|
|
41
|
-
"@pnpm/
|
|
42
|
-
"@pnpm/
|
|
43
|
-
"@pnpm/node.fetcher": "1000.0.7",
|
|
44
|
-
"@pnpm/node.resolver": "1000.0.7",
|
|
45
|
-
"@pnpm/remove-bins": "1000.0.5",
|
|
40
|
+
"@pnpm/fetch": "1000.1.5",
|
|
41
|
+
"@pnpm/node.fetcher": "1000.0.8",
|
|
46
42
|
"@pnpm/store-path": "1000.0.2",
|
|
47
|
-
"@pnpm/
|
|
43
|
+
"@pnpm/node.resolver": "1000.0.8",
|
|
44
|
+
"@pnpm/types": "1000.2.1",
|
|
45
|
+
"@pnpm/remove-bins": "1000.0.6"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@pnpm/logger": ">=5.1.0 <1001.0.0"
|
|
48
49
|
},
|
|
49
|
-
"funding": "https://opencollective.com/pnpm",
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@types/adm-zip": "^0.5.
|
|
51
|
+
"@types/adm-zip": "^0.5.7",
|
|
52
52
|
"@types/graceful-fs": "^4.1.9",
|
|
53
53
|
"@types/is-windows": "^1.0.2",
|
|
54
54
|
"@types/semver": "7.5.3",
|
|
55
55
|
"@types/tar-stream": "^2.2.3",
|
|
56
|
-
"adm-zip": "^0.5.
|
|
56
|
+
"adm-zip": "^0.5.16",
|
|
57
57
|
"execa": "npm:safe-execa@0.1.2",
|
|
58
58
|
"nock": "13.3.4",
|
|
59
59
|
"node-fetch": "npm:@pnpm/node-fetch@1.0.0",
|
|
60
60
|
"path-name": "^1.0.0",
|
|
61
61
|
"tar-stream": "^2.2.0",
|
|
62
|
+
"@pnpm/plugin-commands-env": "1000.0.14",
|
|
62
63
|
"@pnpm/logger": "1000.0.0",
|
|
63
|
-
"@pnpm/
|
|
64
|
-
"@pnpm/prepare": "0.0.112"
|
|
64
|
+
"@pnpm/prepare": "0.0.113"
|
|
65
65
|
},
|
|
66
|
-
"
|
|
67
|
-
"
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">=18.12"
|
|
68
68
|
},
|
|
69
69
|
"jest": {
|
|
70
70
|
"preset": "@pnpm/jest-config"
|