pnpm 6.22.2 → 6.23.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.
|
@@ -3,8 +3,22 @@
|
|
|
3
3
|
// ignored, since we can never get coverage for them.
|
|
4
4
|
// grab a reference to node's real process object right away
|
|
5
5
|
var process = global.process
|
|
6
|
+
|
|
7
|
+
const processOk = function (process) {
|
|
8
|
+
return process &&
|
|
9
|
+
typeof process === 'object' &&
|
|
10
|
+
typeof process.removeListener === 'function' &&
|
|
11
|
+
typeof process.emit === 'function' &&
|
|
12
|
+
typeof process.reallyExit === 'function' &&
|
|
13
|
+
typeof process.listeners === 'function' &&
|
|
14
|
+
typeof process.kill === 'function' &&
|
|
15
|
+
typeof process.pid === 'number' &&
|
|
16
|
+
typeof process.on === 'function'
|
|
17
|
+
}
|
|
18
|
+
|
|
6
19
|
// some kind of non-node environment, just no-op
|
|
7
|
-
|
|
20
|
+
/* istanbul ignore if */
|
|
21
|
+
if (!processOk(process)) {
|
|
8
22
|
module.exports = function () {}
|
|
9
23
|
} else {
|
|
10
24
|
var assert = require('assert')
|
|
@@ -36,7 +50,8 @@ if (typeof process !== 'object' || !process) {
|
|
|
36
50
|
}
|
|
37
51
|
|
|
38
52
|
module.exports = function (cb, opts) {
|
|
39
|
-
|
|
53
|
+
/* istanbul ignore if */
|
|
54
|
+
if (!processOk(global.process)) {
|
|
40
55
|
return
|
|
41
56
|
}
|
|
42
57
|
assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
|
|
@@ -63,7 +78,7 @@ if (typeof process !== 'object' || !process) {
|
|
|
63
78
|
}
|
|
64
79
|
|
|
65
80
|
var unload = function unload () {
|
|
66
|
-
if (!loaded || global.process
|
|
81
|
+
if (!loaded || !processOk(global.process)) {
|
|
67
82
|
return
|
|
68
83
|
}
|
|
69
84
|
loaded = false
|
|
@@ -80,6 +95,7 @@ if (typeof process !== 'object' || !process) {
|
|
|
80
95
|
module.exports.unload = unload
|
|
81
96
|
|
|
82
97
|
var emit = function emit (event, code, signal) {
|
|
98
|
+
/* istanbul ignore if */
|
|
83
99
|
if (emitter.emitted[event]) {
|
|
84
100
|
return
|
|
85
101
|
}
|
|
@@ -91,7 +107,8 @@ if (typeof process !== 'object' || !process) {
|
|
|
91
107
|
var sigListeners = {}
|
|
92
108
|
signals.forEach(function (sig) {
|
|
93
109
|
sigListeners[sig] = function listener () {
|
|
94
|
-
|
|
110
|
+
/* istanbul ignore if */
|
|
111
|
+
if (!processOk(global.process)) {
|
|
95
112
|
return
|
|
96
113
|
}
|
|
97
114
|
// If there are no other listeners, an exit is coming!
|
|
@@ -110,6 +127,7 @@ if (typeof process !== 'object' || !process) {
|
|
|
110
127
|
// so use a supported signal instead
|
|
111
128
|
sig = 'SIGINT'
|
|
112
129
|
}
|
|
130
|
+
/* istanbul ignore next */
|
|
113
131
|
process.kill(process.pid, sig)
|
|
114
132
|
}
|
|
115
133
|
}
|
|
@@ -122,7 +140,7 @@ if (typeof process !== 'object' || !process) {
|
|
|
122
140
|
var loaded = false
|
|
123
141
|
|
|
124
142
|
var load = function load () {
|
|
125
|
-
if (loaded ||
|
|
143
|
+
if (loaded || !processOk(global.process)) {
|
|
126
144
|
return
|
|
127
145
|
}
|
|
128
146
|
loaded = true
|
|
@@ -149,10 +167,11 @@ if (typeof process !== 'object' || !process) {
|
|
|
149
167
|
|
|
150
168
|
var originalProcessReallyExit = process.reallyExit
|
|
151
169
|
var processReallyExit = function processReallyExit (code) {
|
|
152
|
-
|
|
170
|
+
/* istanbul ignore if */
|
|
171
|
+
if (!processOk(global.process)) {
|
|
153
172
|
return
|
|
154
173
|
}
|
|
155
|
-
process.exitCode = code || 0
|
|
174
|
+
process.exitCode = code || /* istanbul ignore next */ 0
|
|
156
175
|
emit('exit', process.exitCode, null)
|
|
157
176
|
/* istanbul ignore next */
|
|
158
177
|
emit('afterexit', process.exitCode, null)
|
|
@@ -162,14 +181,17 @@ if (typeof process !== 'object' || !process) {
|
|
|
162
181
|
|
|
163
182
|
var originalProcessEmit = process.emit
|
|
164
183
|
var processEmit = function processEmit (ev, arg) {
|
|
165
|
-
if (ev === 'exit' &&
|
|
184
|
+
if (ev === 'exit' && processOk(global.process)) {
|
|
185
|
+
/* istanbul ignore else */
|
|
166
186
|
if (arg !== undefined) {
|
|
167
187
|
process.exitCode = arg
|
|
168
188
|
}
|
|
169
189
|
var ret = originalProcessEmit.apply(this, arguments)
|
|
190
|
+
/* istanbul ignore next */
|
|
170
191
|
emit('exit', process.exitCode, null)
|
|
171
192
|
/* istanbul ignore next */
|
|
172
193
|
emit('afterexit', process.exitCode, null)
|
|
194
|
+
/* istanbul ignore next */
|
|
173
195
|
return ret
|
|
174
196
|
} else {
|
|
175
197
|
return originalProcessEmit.apply(this, arguments)
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "signal-exit",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "when you want to fire an event no matter how a process exits.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "tap
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"test": "tap",
|
|
8
|
+
"snap": "tap",
|
|
9
|
+
"preversion": "npm test",
|
|
10
|
+
"postversion": "npm publish",
|
|
11
|
+
"prepublishOnly": "git push origin --follow-tags"
|
|
10
12
|
},
|
|
11
13
|
"files": [
|
|
12
14
|
"index.js",
|
|
@@ -31,6 +33,6 @@
|
|
|
31
33
|
"coveralls": "^3.1.1",
|
|
32
34
|
"nyc": "^15.1.0",
|
|
33
35
|
"standard-version": "^9.3.1",
|
|
34
|
-
"tap": "^15.
|
|
36
|
+
"tap": "^15.1.1"
|
|
35
37
|
}
|
|
36
38
|
}
|
package/dist/pnpm.cjs
CHANGED
|
@@ -3165,7 +3165,7 @@ var require_lib4 = __commonJS({
|
|
|
3165
3165
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
3166
3166
|
var defaultManifest = {
|
|
3167
3167
|
name: "pnpm" != null && true ? "pnpm" : "pnpm",
|
|
3168
|
-
version: "6.
|
|
3168
|
+
version: "6.23.0" != null && true ? "6.23.0" : "0.0.0"
|
|
3169
3169
|
};
|
|
3170
3170
|
var pkgJson;
|
|
3171
3171
|
if (require.main == null) {
|
|
@@ -12444,9 +12444,9 @@ var require_err = __commonJS({
|
|
|
12444
12444
|
}
|
|
12445
12445
|
});
|
|
12446
12446
|
|
|
12447
|
-
// ../../node_modules/.pnpm/signal-exit@3.0.
|
|
12447
|
+
// ../../node_modules/.pnpm/signal-exit@3.0.6/node_modules/signal-exit/signals.js
|
|
12448
12448
|
var require_signals = __commonJS({
|
|
12449
|
-
"../../node_modules/.pnpm/signal-exit@3.0.
|
|
12449
|
+
"../../node_modules/.pnpm/signal-exit@3.0.6/node_modules/signal-exit/signals.js"(exports2, module2) {
|
|
12450
12450
|
module2.exports = [
|
|
12451
12451
|
"SIGABRT",
|
|
12452
12452
|
"SIGALRM",
|
|
@@ -12463,11 +12463,14 @@ var require_signals = __commonJS({
|
|
|
12463
12463
|
}
|
|
12464
12464
|
});
|
|
12465
12465
|
|
|
12466
|
-
// ../../node_modules/.pnpm/signal-exit@3.0.
|
|
12466
|
+
// ../../node_modules/.pnpm/signal-exit@3.0.6/node_modules/signal-exit/index.js
|
|
12467
12467
|
var require_signal_exit = __commonJS({
|
|
12468
|
-
"../../node_modules/.pnpm/signal-exit@3.0.
|
|
12468
|
+
"../../node_modules/.pnpm/signal-exit@3.0.6/node_modules/signal-exit/index.js"(exports2, module2) {
|
|
12469
12469
|
var process2 = global.process;
|
|
12470
|
-
|
|
12470
|
+
var processOk = function(process3) {
|
|
12471
|
+
return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
|
|
12472
|
+
};
|
|
12473
|
+
if (!processOk(process2)) {
|
|
12471
12474
|
module2.exports = function() {
|
|
12472
12475
|
};
|
|
12473
12476
|
} else {
|
|
@@ -12490,7 +12493,7 @@ var require_signal_exit = __commonJS({
|
|
|
12490
12493
|
emitter.infinite = true;
|
|
12491
12494
|
}
|
|
12492
12495
|
module2.exports = function(cb, opts) {
|
|
12493
|
-
if (global.process
|
|
12496
|
+
if (!processOk(global.process)) {
|
|
12494
12497
|
return;
|
|
12495
12498
|
}
|
|
12496
12499
|
assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
|
@@ -12511,7 +12514,7 @@ var require_signal_exit = __commonJS({
|
|
|
12511
12514
|
return remove;
|
|
12512
12515
|
};
|
|
12513
12516
|
unload = function unload2() {
|
|
12514
|
-
if (!loaded || global.process
|
|
12517
|
+
if (!loaded || !processOk(global.process)) {
|
|
12515
12518
|
return;
|
|
12516
12519
|
}
|
|
12517
12520
|
loaded = false;
|
|
@@ -12536,7 +12539,7 @@ var require_signal_exit = __commonJS({
|
|
|
12536
12539
|
sigListeners = {};
|
|
12537
12540
|
signals.forEach(function(sig) {
|
|
12538
12541
|
sigListeners[sig] = function listener() {
|
|
12539
|
-
if (
|
|
12542
|
+
if (!processOk(global.process)) {
|
|
12540
12543
|
return;
|
|
12541
12544
|
}
|
|
12542
12545
|
var listeners = process2.listeners(sig);
|
|
@@ -12556,7 +12559,7 @@ var require_signal_exit = __commonJS({
|
|
|
12556
12559
|
};
|
|
12557
12560
|
loaded = false;
|
|
12558
12561
|
load = function load2() {
|
|
12559
|
-
if (loaded ||
|
|
12562
|
+
if (loaded || !processOk(global.process)) {
|
|
12560
12563
|
return;
|
|
12561
12564
|
}
|
|
12562
12565
|
loaded = true;
|
|
@@ -12575,7 +12578,7 @@ var require_signal_exit = __commonJS({
|
|
|
12575
12578
|
module2.exports.load = load;
|
|
12576
12579
|
originalProcessReallyExit = process2.reallyExit;
|
|
12577
12580
|
processReallyExit = function processReallyExit2(code) {
|
|
12578
|
-
if (
|
|
12581
|
+
if (!processOk(global.process)) {
|
|
12579
12582
|
return;
|
|
12580
12583
|
}
|
|
12581
12584
|
process2.exitCode = code || 0;
|
|
@@ -12585,7 +12588,7 @@ var require_signal_exit = __commonJS({
|
|
|
12585
12588
|
};
|
|
12586
12589
|
originalProcessEmit = process2.emit;
|
|
12587
12590
|
processEmit = function processEmit2(ev, arg) {
|
|
12588
|
-
if (ev === "exit" &&
|
|
12591
|
+
if (ev === "exit" && processOk(global.process)) {
|
|
12589
12592
|
if (arg !== void 0) {
|
|
12590
12593
|
process2.exitCode = arg;
|
|
12591
12594
|
}
|
|
@@ -15066,23 +15069,31 @@ var require_lib11 = __commonJS({
|
|
|
15066
15069
|
}
|
|
15067
15070
|
});
|
|
15068
15071
|
|
|
15069
|
-
// ../../node_modules/.pnpm/camelcase@6.2.
|
|
15072
|
+
// ../../node_modules/.pnpm/camelcase@6.2.1/node_modules/camelcase/index.js
|
|
15070
15073
|
var require_camelcase = __commonJS({
|
|
15071
|
-
"../../node_modules/.pnpm/camelcase@6.2.
|
|
15072
|
-
"use strict";
|
|
15074
|
+
"../../node_modules/.pnpm/camelcase@6.2.1/node_modules/camelcase/index.js"(exports2, module2) {
|
|
15075
|
+
"use strict";
|
|
15076
|
+
var UPPERCASE = /[\p{Lu}]/u;
|
|
15077
|
+
var LOWERCASE = /[\p{Ll}]/u;
|
|
15078
|
+
var LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu;
|
|
15079
|
+
var IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u;
|
|
15080
|
+
var SEPARATORS = /[_.\- ]+/;
|
|
15081
|
+
var LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source);
|
|
15082
|
+
var SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
|
|
15083
|
+
var NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu");
|
|
15073
15084
|
var preserveCamelCase = (string, locale) => {
|
|
15074
15085
|
let isLastCharLower = false;
|
|
15075
15086
|
let isLastCharUpper = false;
|
|
15076
15087
|
let isLastLastCharUpper = false;
|
|
15077
15088
|
for (let i = 0; i < string.length; i++) {
|
|
15078
15089
|
const character = string[i];
|
|
15079
|
-
if (isLastCharLower &&
|
|
15090
|
+
if (isLastCharLower && UPPERCASE.test(character)) {
|
|
15080
15091
|
string = string.slice(0, i) + "-" + string.slice(i);
|
|
15081
15092
|
isLastCharLower = false;
|
|
15082
15093
|
isLastLastCharUpper = isLastCharUpper;
|
|
15083
15094
|
isLastCharUpper = true;
|
|
15084
15095
|
i++;
|
|
15085
|
-
} else if (isLastCharUpper && isLastLastCharUpper &&
|
|
15096
|
+
} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character)) {
|
|
15086
15097
|
string = string.slice(0, i - 1) + "-" + string.slice(i - 1);
|
|
15087
15098
|
isLastLastCharUpper = isLastCharUpper;
|
|
15088
15099
|
isLastCharUpper = false;
|
|
@@ -15096,10 +15107,13 @@ var require_camelcase = __commonJS({
|
|
|
15096
15107
|
return string;
|
|
15097
15108
|
};
|
|
15098
15109
|
var preserveConsecutiveUppercase = (input) => {
|
|
15099
|
-
|
|
15110
|
+
LEADING_CAPITAL.lastIndex = 0;
|
|
15111
|
+
return input.replace(LEADING_CAPITAL, (m1) => m1.toLowerCase());
|
|
15100
15112
|
};
|
|
15101
15113
|
var postProcess = (input, options) => {
|
|
15102
|
-
|
|
15114
|
+
SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
|
|
15115
|
+
NUMBERS_AND_IDENTIFIER.lastIndex = 0;
|
|
15116
|
+
return input.replace(SEPARATORS_AND_IDENTIFIER, (_, identifier) => identifier.toLocaleUpperCase(options.locale)).replace(NUMBERS_AND_IDENTIFIER, (m) => m.toLocaleUpperCase(options.locale));
|
|
15103
15117
|
};
|
|
15104
15118
|
var camelCase = (input, options) => {
|
|
15105
15119
|
if (!(typeof input === "string" || Array.isArray(input))) {
|
|
@@ -15125,7 +15139,7 @@ var require_camelcase = __commonJS({
|
|
|
15125
15139
|
if (hasUpperCase) {
|
|
15126
15140
|
input = preserveCamelCase(input, options.locale);
|
|
15127
15141
|
}
|
|
15128
|
-
input = input.replace(
|
|
15142
|
+
input = input.replace(LEADING_SEPARATORS, "");
|
|
15129
15143
|
if (options.preserveConsecutiveUppercase) {
|
|
15130
15144
|
input = preserveConsecutiveUppercase(input);
|
|
15131
15145
|
} else {
|
|
@@ -16987,6 +17001,7 @@ var require_lib12 = __commonJS({
|
|
|
16987
17001
|
registry: npmDefaults.registry,
|
|
16988
17002
|
"save-peer": false,
|
|
16989
17003
|
"save-workspace-protocol": true,
|
|
17004
|
+
"scripts-prepend-node-path": false,
|
|
16990
17005
|
symlink: true,
|
|
16991
17006
|
"shared-workspace-lockfile": true,
|
|
16992
17007
|
"shared-workspace-shrinkwrap": true,
|
|
@@ -52351,7 +52366,7 @@ var require_fetch = __commonJS({
|
|
|
52351
52366
|
var _a2;
|
|
52352
52367
|
try {
|
|
52353
52368
|
const res = await (0, node_fetch_1.default)(url, opts);
|
|
52354
|
-
if (res.status >= 500 && res.status < 600 || res.status
|
|
52369
|
+
if (res.status >= 500 && res.status < 600 || [408, 409, 420, 429].includes(res.status)) {
|
|
52355
52370
|
throw new ResponseError(res);
|
|
52356
52371
|
} else {
|
|
52357
52372
|
resolve(res);
|
|
@@ -68416,9 +68431,9 @@ var require_lib32 = __commonJS({
|
|
|
68416
68431
|
}
|
|
68417
68432
|
});
|
|
68418
68433
|
|
|
68419
|
-
// ../../node_modules/.pnpm/spdx-license-ids@3.0.
|
|
68434
|
+
// ../../node_modules/.pnpm/spdx-license-ids@3.0.11/node_modules/spdx-license-ids/index.json
|
|
68420
68435
|
var require_spdx_license_ids = __commonJS({
|
|
68421
|
-
"../../node_modules/.pnpm/spdx-license-ids@3.0.
|
|
68436
|
+
"../../node_modules/.pnpm/spdx-license-ids@3.0.11/node_modules/spdx-license-ids/index.json"(exports2, module2) {
|
|
68422
68437
|
module2.exports = [
|
|
68423
68438
|
"0BSD",
|
|
68424
68439
|
"AAL",
|
|
@@ -68556,12 +68571,14 @@ var require_spdx_license_ids = __commonJS({
|
|
|
68556
68571
|
"CNRI-Jython",
|
|
68557
68572
|
"CNRI-Python",
|
|
68558
68573
|
"CNRI-Python-GPL-Compatible",
|
|
68574
|
+
"COIL-1.0",
|
|
68559
68575
|
"CPAL-1.0",
|
|
68560
68576
|
"CPL-1.0",
|
|
68561
68577
|
"CPOL-1.02",
|
|
68562
68578
|
"CUA-OPL-1.0",
|
|
68563
68579
|
"Caldera",
|
|
68564
68580
|
"ClArtistic",
|
|
68581
|
+
"Community-Spec-1.0",
|
|
68565
68582
|
"Condor-1.1",
|
|
68566
68583
|
"Crossword",
|
|
68567
68584
|
"CrystalStacker",
|
|
@@ -68585,6 +68602,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
68585
68602
|
"Entessa",
|
|
68586
68603
|
"ErlPL-1.1",
|
|
68587
68604
|
"Eurosym",
|
|
68605
|
+
"FDK-AAC",
|
|
68588
68606
|
"FSFAP",
|
|
68589
68607
|
"FSFUL",
|
|
68590
68608
|
"FSFULLR",
|
|
@@ -68666,6 +68684,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
68666
68684
|
"LiLiQ-Rplus-1.1",
|
|
68667
68685
|
"Libpng",
|
|
68668
68686
|
"Linux-OpenIB",
|
|
68687
|
+
"Linux-man-pages-copyleft",
|
|
68669
68688
|
"MIT",
|
|
68670
68689
|
"MIT-0",
|
|
68671
68690
|
"MIT-CMU",
|
|
@@ -68868,9 +68887,9 @@ var require_spdx_license_ids = __commonJS({
|
|
|
68868
68887
|
}
|
|
68869
68888
|
});
|
|
68870
68889
|
|
|
68871
|
-
// ../../node_modules/.pnpm/spdx-license-ids@3.0.
|
|
68890
|
+
// ../../node_modules/.pnpm/spdx-license-ids@3.0.11/node_modules/spdx-license-ids/deprecated.json
|
|
68872
68891
|
var require_deprecated = __commonJS({
|
|
68873
|
-
"../../node_modules/.pnpm/spdx-license-ids@3.0.
|
|
68892
|
+
"../../node_modules/.pnpm/spdx-license-ids@3.0.11/node_modules/spdx-license-ids/deprecated.json"(exports2, module2) {
|
|
68874
68893
|
module2.exports = [
|
|
68875
68894
|
"AGPL-1.0",
|
|
68876
68895
|
"AGPL-3.0",
|
|
@@ -83398,6 +83417,24 @@ var require_tempy = __commonJS({
|
|
|
83398
83417
|
}
|
|
83399
83418
|
});
|
|
83400
83419
|
|
|
83420
|
+
// ../plugin-commands-env/lib/normalizeArch.js
|
|
83421
|
+
var require_normalizeArch = __commonJS({
|
|
83422
|
+
"../plugin-commands-env/lib/normalizeArch.js"(exports2) {
|
|
83423
|
+
"use strict";
|
|
83424
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
83425
|
+
function getNormalizedArch(platform, arch) {
|
|
83426
|
+
if (platform === "win32" && arch === "ia32") {
|
|
83427
|
+
return "x86";
|
|
83428
|
+
}
|
|
83429
|
+
if (arch === "arm") {
|
|
83430
|
+
return "armv7l";
|
|
83431
|
+
}
|
|
83432
|
+
return arch;
|
|
83433
|
+
}
|
|
83434
|
+
exports2.default = getNormalizedArch;
|
|
83435
|
+
}
|
|
83436
|
+
});
|
|
83437
|
+
|
|
83401
83438
|
// ../plugin-commands-env/lib/node.js
|
|
83402
83439
|
var require_node3 = __commonJS({
|
|
83403
83440
|
"../plugin-commands-env/lib/node.js"(exports2) {
|
|
@@ -83446,6 +83483,7 @@ var require_node3 = __commonJS({
|
|
|
83446
83483
|
var tempy_1 = __importDefault(require_tempy());
|
|
83447
83484
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
83448
83485
|
var write_json_file_1 = __importDefault(require_write_json_file());
|
|
83486
|
+
var normalizeArch_1 = __importDefault(require_normalizeArch());
|
|
83449
83487
|
async function getNodeBinDir(opts) {
|
|
83450
83488
|
const fetch = (0, fetch_1.createFetchFromRegistry)(opts);
|
|
83451
83489
|
const nodeDir = await getNodeDir(fetch, opts);
|
|
@@ -83521,7 +83559,7 @@ var require_node3 = __commonJS({
|
|
|
83521
83559
|
}
|
|
83522
83560
|
function getNodeJSTarball(nodeVersion, releaseDir) {
|
|
83523
83561
|
const platform = process.platform === "win32" ? "win" : process.platform;
|
|
83524
|
-
const arch =
|
|
83562
|
+
const arch = (0, normalizeArch_1.default)(process.platform, process.arch);
|
|
83525
83563
|
const extension = platform === "win" ? "zip" : "tar.gz";
|
|
83526
83564
|
const pkgName = `node-v${nodeVersion}-${platform}-${arch}`;
|
|
83527
83565
|
return {
|
|
@@ -91278,9 +91316,9 @@ var require_lib65 = __commonJS({
|
|
|
91278
91316
|
}
|
|
91279
91317
|
});
|
|
91280
91318
|
|
|
91281
|
-
// ../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.
|
|
91319
|
+
// ../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.3/node_modules/@pnpm/npm-lifecycle/lib/spawn.js
|
|
91282
91320
|
var require_spawn = __commonJS({
|
|
91283
|
-
"../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.
|
|
91321
|
+
"../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.3/node_modules/@pnpm/npm-lifecycle/lib/spawn.js"(exports2, module2) {
|
|
91284
91322
|
"use strict";
|
|
91285
91323
|
module2.exports = spawn;
|
|
91286
91324
|
var _spawn = require("child_process").spawn;
|
|
@@ -103107,9 +103145,9 @@ var require_resolve_from = __commonJS({
|
|
|
103107
103145
|
}
|
|
103108
103146
|
});
|
|
103109
103147
|
|
|
103110
|
-
// ../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.
|
|
103148
|
+
// ../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.3/node_modules/@pnpm/npm-lifecycle/lib/extendPath.js
|
|
103111
103149
|
var require_extendPath = __commonJS({
|
|
103112
|
-
"../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.
|
|
103150
|
+
"../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.3/node_modules/@pnpm/npm-lifecycle/lib/extendPath.js"(exports2, module2) {
|
|
103113
103151
|
var path = require("path");
|
|
103114
103152
|
var which = require_which();
|
|
103115
103153
|
module2.exports = (wd, originalPath, nodeGyp, opts) => {
|
|
@@ -103147,9 +103185,9 @@ var require_extendPath = __commonJS({
|
|
|
103147
103185
|
if (cfgsetting === "warn-only") {
|
|
103148
103186
|
if (isDifferentNodeInPath && !shouldPrependCurrentNodeDirToPATH.hasWarned) {
|
|
103149
103187
|
if (foundExecPath) {
|
|
103150
|
-
opts.log.warn("lifecycle",
|
|
103188
|
+
opts.log.warn("lifecycle", `The node binary used for scripts is ${foundExecPath} but pnpm is using ${process.execPath} itself. Use the \`--scripts-prepend-node-path\` option to include the path for the node binary pnpm was executed with.`);
|
|
103151
103189
|
} else {
|
|
103152
|
-
opts.log.warn("lifecycle",
|
|
103190
|
+
opts.log.warn("lifecycle", `pnpm is using ${process.execPath} but there is no node binary in the current PATH. Use the \`--scripts-prepend-node-path\` option to include the path for the node binary pnpm was executed with.`);
|
|
103153
103191
|
}
|
|
103154
103192
|
shouldPrependCurrentNodeDirToPATH.hasWarned = true;
|
|
103155
103193
|
}
|
|
@@ -103160,9 +103198,9 @@ var require_extendPath = __commonJS({
|
|
|
103160
103198
|
}
|
|
103161
103199
|
});
|
|
103162
103200
|
|
|
103163
|
-
// ../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.
|
|
103201
|
+
// ../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.3/node_modules/@pnpm/npm-lifecycle/index.js
|
|
103164
103202
|
var require_npm_lifecycle = __commonJS({
|
|
103165
|
-
"../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.
|
|
103203
|
+
"../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.3/node_modules/@pnpm/npm-lifecycle/index.js"(exports2, module2) {
|
|
103166
103204
|
"use strict";
|
|
103167
103205
|
exports2 = module2.exports = lifecycle;
|
|
103168
103206
|
exports2.makeEnv = makeEnv;
|
|
@@ -103612,6 +103650,7 @@ var require_runLifecycleHook = __commonJS({
|
|
|
103612
103650
|
warn: (...msg) => (0, logger_1.globalWarn)(msg.join(" "))
|
|
103613
103651
|
},
|
|
103614
103652
|
runConcurrently: true,
|
|
103653
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
103615
103654
|
scriptShell: opts.scriptShell,
|
|
103616
103655
|
shellEmulator: opts.shellEmulator,
|
|
103617
103656
|
stdio: (_e = opts.stdio) !== null && _e !== void 0 ? _e : "pipe",
|
|
@@ -106873,6 +106912,7 @@ var require_extendRebuildOptions = __commonJS({
|
|
|
106873
106912
|
production: true,
|
|
106874
106913
|
rawConfig: {},
|
|
106875
106914
|
registries: normalize_registries_1.DEFAULT_REGISTRIES,
|
|
106915
|
+
scriptsPrependNodePath: false,
|
|
106876
106916
|
shamefullyHoist: false,
|
|
106877
106917
|
shellEmulator: false,
|
|
106878
106918
|
sideEffectsCacheRead: false,
|
|
@@ -107035,6 +107075,7 @@ var require_implementation4 = __commonJS({
|
|
|
107035
107075
|
const scriptsOpts = {
|
|
107036
107076
|
extraBinPaths: ctx.extraBinPaths,
|
|
107037
107077
|
rawConfig: opts.rawConfig,
|
|
107078
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
107038
107079
|
scriptShell: opts.scriptShell,
|
|
107039
107080
|
shellEmulator: opts.shellEmulator,
|
|
107040
107081
|
storeController: store.ctrl,
|
|
@@ -107121,6 +107162,7 @@ var require_implementation4 = __commonJS({
|
|
|
107121
107162
|
pkgRoot,
|
|
107122
107163
|
rawConfig: opts.rawConfig,
|
|
107123
107164
|
rootModulesDir: ctx.rootModulesDir,
|
|
107165
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
107124
107166
|
shellEmulator: opts.shellEmulator,
|
|
107125
107167
|
unsafePerm: opts.unsafePerm || false
|
|
107126
107168
|
});
|
|
@@ -108515,6 +108557,7 @@ var require_lib84 = __commonJS({
|
|
|
108515
108557
|
pkgRoot: depNode.dir,
|
|
108516
108558
|
rawConfig: opts.rawConfig,
|
|
108517
108559
|
rootModulesDir: opts.rootModulesDir,
|
|
108560
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
108518
108561
|
scriptShell: opts.scriptShell,
|
|
108519
108562
|
shellEmulator: opts.shellEmulator,
|
|
108520
108563
|
unsafePerm: opts.unsafePerm || false
|
|
@@ -111470,6 +111513,7 @@ var require_lib88 = __commonJS({
|
|
|
111470
111513
|
optional: false,
|
|
111471
111514
|
extraBinPaths: opts.extraBinPaths,
|
|
111472
111515
|
rawConfig: opts.rawConfig,
|
|
111516
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
111473
111517
|
scriptShell: opts.scriptShell,
|
|
111474
111518
|
shellEmulator: opts.shellEmulator,
|
|
111475
111519
|
stdio: (_e = opts.ownLifecycleHooksStdio) !== null && _e !== void 0 ? _e : "inherit",
|
|
@@ -111618,6 +111662,7 @@ var require_lib88 = __commonJS({
|
|
|
111618
111662
|
optional: opts.include.optionalDependencies,
|
|
111619
111663
|
rawConfig: opts.rawConfig,
|
|
111620
111664
|
rootModulesDir: virtualStoreDir,
|
|
111665
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
111621
111666
|
scriptShell: opts.scriptShell,
|
|
111622
111667
|
shellEmulator: opts.shellEmulator,
|
|
111623
111668
|
sideEffectsCacheWrite: opts.sideEffectsCacheWrite,
|
|
@@ -114484,6 +114529,7 @@ var require_extendInstallOptions = __commonJS({
|
|
|
114484
114529
|
rawConfig: {},
|
|
114485
114530
|
registries: normalize_registries_1.DEFAULT_REGISTRIES,
|
|
114486
114531
|
saveWorkspaceProtocol: true,
|
|
114532
|
+
scriptsPrependNodePath: false,
|
|
114487
114533
|
shamefullyHoist: false,
|
|
114488
114534
|
shellEmulator: false,
|
|
114489
114535
|
sideEffectsCacheRead: false,
|
|
@@ -115135,6 +115181,7 @@ var require_install = __commonJS({
|
|
|
115135
115181
|
const scriptsOpts = {
|
|
115136
115182
|
extraBinPaths: opts.extraBinPaths,
|
|
115137
115183
|
rawConfig: opts.rawConfig,
|
|
115184
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
115138
115185
|
scriptShell: opts.scriptShell,
|
|
115139
115186
|
shellEmulator: opts.shellEmulator,
|
|
115140
115187
|
stdio: opts.ownLifecycleHooksStdio,
|
|
@@ -115629,6 +115676,7 @@ var require_install = __commonJS({
|
|
|
115629
115676
|
optional: opts.include.optionalDependencies,
|
|
115630
115677
|
rawConfig: opts.rawConfig,
|
|
115631
115678
|
rootModulesDir: ctx.virtualStoreDir,
|
|
115679
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
115632
115680
|
scriptShell: opts.scriptShell,
|
|
115633
115681
|
shellEmulator: opts.shellEmulator,
|
|
115634
115682
|
sideEffectsCacheWrite: opts.sideEffectsCacheWrite,
|
|
@@ -116546,6 +116594,7 @@ var require_rebuild = __commonJS({
|
|
|
116546
116594
|
...(0, pick_1.default)([
|
|
116547
116595
|
"npm-path",
|
|
116548
116596
|
"reporter",
|
|
116597
|
+
"scripts-prepend-node-path",
|
|
116549
116598
|
"unsafe-perm"
|
|
116550
116599
|
], config_1.types)
|
|
116551
116600
|
};
|
|
@@ -117645,6 +117694,7 @@ var require_install2 = __commonJS({
|
|
|
117645
117694
|
"registry",
|
|
117646
117695
|
"reporter",
|
|
117647
117696
|
"save-workspace-protocol",
|
|
117697
|
+
"scripts-prepend-node-path",
|
|
117648
117698
|
"shamefully-flatten",
|
|
117649
117699
|
"shamefully-hoist",
|
|
117650
117700
|
"shared-workspace-lockfile",
|
|
@@ -118778,9 +118828,9 @@ var require_lib96 = __commonJS({
|
|
|
118778
118828
|
}
|
|
118779
118829
|
});
|
|
118780
118830
|
|
|
118781
|
-
// ../../node_modules/.pnpm/@pnpm+semver-diff@1.0
|
|
118831
|
+
// ../../node_modules/.pnpm/@pnpm+semver-diff@1.1.0/node_modules/@pnpm/semver-diff/lib/index.js
|
|
118782
118832
|
var require_lib97 = __commonJS({
|
|
118783
|
-
"../../node_modules/.pnpm/@pnpm+semver-diff@1.0
|
|
118833
|
+
"../../node_modules/.pnpm/@pnpm+semver-diff@1.1.0/node_modules/@pnpm/semver-diff/lib/index.js"(exports2) {
|
|
118784
118834
|
"use strict";
|
|
118785
118835
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
118786
118836
|
var SEMVER_CHANGE_BY_TUPLE_NUMBER = ["breaking", "feature", "fix"];
|
|
@@ -118791,6 +118841,15 @@ var require_lib97 = __commonJS({
|
|
|
118791
118841
|
diff: [parseVersion(version1), []]
|
|
118792
118842
|
};
|
|
118793
118843
|
}
|
|
118844
|
+
const [version1Prefix, version1Semver] = parsePrefix(version1);
|
|
118845
|
+
const [version2Prefix, version2Semver] = parsePrefix(version2);
|
|
118846
|
+
if (version1Prefix !== version2Prefix) {
|
|
118847
|
+
const { change: change2 } = semverDiff(version1Semver, version2Semver);
|
|
118848
|
+
return {
|
|
118849
|
+
change: change2,
|
|
118850
|
+
diff: [[], parseVersion(version2)]
|
|
118851
|
+
};
|
|
118852
|
+
}
|
|
118794
118853
|
const version1Tuples = parseVersion(version1);
|
|
118795
118854
|
const version2Tuples = parseVersion(version2);
|
|
118796
118855
|
const same = [];
|
|
@@ -118816,6 +118875,12 @@ var require_lib97 = __commonJS({
|
|
|
118816
118875
|
};
|
|
118817
118876
|
}
|
|
118818
118877
|
exports2.default = semverDiff;
|
|
118878
|
+
function parsePrefix(version) {
|
|
118879
|
+
if (version.startsWith("~") || version.startsWith("^")) {
|
|
118880
|
+
return [version[0], version.substr(1)];
|
|
118881
|
+
}
|
|
118882
|
+
return ["", version];
|
|
118883
|
+
}
|
|
118819
118884
|
function parseVersion(version) {
|
|
118820
118885
|
const dashIndex = version.indexOf("-");
|
|
118821
118886
|
let normalVersion;
|
|
@@ -118986,6 +119051,7 @@ var require_update = __commonJS({
|
|
|
118986
119051
|
"save-exact",
|
|
118987
119052
|
"save-prefix",
|
|
118988
119053
|
"save-workspace-protocol",
|
|
119054
|
+
"scripts-prepend-node-path",
|
|
118989
119055
|
"shamefully-flatten",
|
|
118990
119056
|
"shamefully-hoist",
|
|
118991
119057
|
"shared-workspace-lockfile",
|
|
@@ -129722,6 +129788,7 @@ var require_runRecursive = __commonJS({
|
|
|
129722
129788
|
pkgRoot: prefix,
|
|
129723
129789
|
rawConfig: opts.rawConfig,
|
|
129724
129790
|
rootModulesDir: await (0, realpath_missing_1.default)(path_1.default.join(prefix, "node_modules")),
|
|
129791
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
129725
129792
|
scriptShell: opts.scriptShell,
|
|
129726
129793
|
shellEmulator: opts.shellEmulator,
|
|
129727
129794
|
stdio,
|
|
@@ -129853,7 +129920,8 @@ var require_run = __commonJS({
|
|
|
129853
129920
|
"bail",
|
|
129854
129921
|
"sort",
|
|
129855
129922
|
"unsafe-perm",
|
|
129856
|
-
"workspace-concurrency"
|
|
129923
|
+
"workspace-concurrency",
|
|
129924
|
+
"scripts-prepend-node-path"
|
|
129857
129925
|
], config_1.types),
|
|
129858
129926
|
...exports2.IF_PRESENT_OPTION,
|
|
129859
129927
|
recursive: Boolean,
|
|
@@ -129945,6 +130013,7 @@ so you may run "pnpm -w run ${scriptName}"`
|
|
|
129945
130013
|
pkgRoot: dir,
|
|
129946
130014
|
rawConfig: opts.rawConfig,
|
|
129947
130015
|
rootModulesDir: await (0, realpath_missing_1.default)(path_1.default.join(dir, "node_modules")),
|
|
130016
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
129948
130017
|
scriptShell: opts.scriptShell,
|
|
129949
130018
|
silent: opts.reporter === "silent",
|
|
129950
130019
|
shellEmulator: opts.shellEmulator,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pnpm",
|
|
3
3
|
"description": "Fast, disk space efficient package manager",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.23.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pnpm": "bin/pnpm.cjs",
|
|
7
7
|
"pnpx": "bin/pnpx.cjs"
|
|
@@ -22,35 +22,35 @@
|
|
|
22
22
|
"@pnpm/assert-project": "workspace:*",
|
|
23
23
|
"@pnpm/byline": "^1.0.0",
|
|
24
24
|
"@pnpm/cli-meta": "workspace:2.0.0",
|
|
25
|
-
"@pnpm/cli-utils": "workspace:0.6.
|
|
26
|
-
"@pnpm/client": "workspace:6.0.
|
|
25
|
+
"@pnpm/cli-utils": "workspace:0.6.32",
|
|
26
|
+
"@pnpm/client": "workspace:6.0.5",
|
|
27
27
|
"@pnpm/command": "workspace:2.0.0",
|
|
28
28
|
"@pnpm/common-cli-options-help": "workspace:0.7.1",
|
|
29
|
-
"@pnpm/config": "workspace:13.
|
|
29
|
+
"@pnpm/config": "workspace:13.5.0",
|
|
30
30
|
"@pnpm/constants": "workspace:5.0.0",
|
|
31
31
|
"@pnpm/core-loggers": "workspace:6.0.6",
|
|
32
|
-
"@pnpm/default-reporter": "workspace:8.3.
|
|
32
|
+
"@pnpm/default-reporter": "workspace:8.3.7",
|
|
33
33
|
"@pnpm/file-reporter": "workspace:2.0.0",
|
|
34
|
-
"@pnpm/filter-workspace-packages": "workspace:4.4.
|
|
34
|
+
"@pnpm/filter-workspace-packages": "workspace:4.4.4",
|
|
35
35
|
"@pnpm/find-workspace-dir": "workspace:3.0.1",
|
|
36
|
-
"@pnpm/find-workspace-packages": "workspace:3.1.
|
|
36
|
+
"@pnpm/find-workspace-packages": "workspace:3.1.24",
|
|
37
37
|
"@pnpm/lockfile-types": "workspace:3.1.1",
|
|
38
38
|
"@pnpm/logger": "^4.0.0",
|
|
39
39
|
"@pnpm/modules-yaml": "workspace:9.0.6",
|
|
40
40
|
"@pnpm/nopt": "^0.2.1",
|
|
41
41
|
"@pnpm/parse-cli-args": "workspace:4.3.0",
|
|
42
42
|
"@pnpm/pick-registry-for-package": "workspace:2.0.6",
|
|
43
|
-
"@pnpm/plugin-commands-audit": "workspace:5.1.
|
|
44
|
-
"@pnpm/plugin-commands-env": "workspace:1.2.
|
|
45
|
-
"@pnpm/plugin-commands-installation": "workspace:7.
|
|
46
|
-
"@pnpm/plugin-commands-listing": "workspace:4.0.
|
|
47
|
-
"@pnpm/plugin-commands-outdated": "workspace:5.0.
|
|
48
|
-
"@pnpm/plugin-commands-publishing": "workspace:4.2.
|
|
49
|
-
"@pnpm/plugin-commands-rebuild": "workspace:5.
|
|
50
|
-
"@pnpm/plugin-commands-script-runners": "workspace:4.
|
|
51
|
-
"@pnpm/plugin-commands-server": "workspace:3.0.
|
|
52
|
-
"@pnpm/plugin-commands-setup": "workspace:1.1.
|
|
53
|
-
"@pnpm/plugin-commands-store": "workspace:4.0.
|
|
43
|
+
"@pnpm/plugin-commands-audit": "workspace:5.1.22",
|
|
44
|
+
"@pnpm/plugin-commands-env": "workspace:1.2.7",
|
|
45
|
+
"@pnpm/plugin-commands-installation": "workspace:7.3.0",
|
|
46
|
+
"@pnpm/plugin-commands-listing": "workspace:4.0.23",
|
|
47
|
+
"@pnpm/plugin-commands-outdated": "workspace:5.0.31",
|
|
48
|
+
"@pnpm/plugin-commands-publishing": "workspace:4.2.28",
|
|
49
|
+
"@pnpm/plugin-commands-rebuild": "workspace:5.3.0",
|
|
50
|
+
"@pnpm/plugin-commands-script-runners": "workspace:4.5.0",
|
|
51
|
+
"@pnpm/plugin-commands-server": "workspace:3.0.48",
|
|
52
|
+
"@pnpm/plugin-commands-setup": "workspace:1.1.16",
|
|
53
|
+
"@pnpm/plugin-commands-store": "workspace:4.0.32",
|
|
54
54
|
"@pnpm/prepare": "workspace:0.0.28",
|
|
55
55
|
"@pnpm/read-package-json": "workspace:5.0.6",
|
|
56
56
|
"@pnpm/read-project-manifest": "workspace:2.0.7",
|