pnpm 7.9.3 → 7.9.5
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/dist/node_modules/.modules.yaml +2 -2
- package/dist/node_modules/.pnpm/lock.yaml +10 -9
- package/dist/node_modules/cacache/package.json +2 -2
- package/dist/node_modules/minipass-fetch/lib/body.js +13 -11
- package/dist/node_modules/minipass-fetch/package.json +4 -3
- package/dist/node_modules/unique-filename/{index.js → lib/index.js} +0 -1
- package/dist/node_modules/unique-filename/package.json +29 -8
- package/dist/pnpm.cjs +132 -83
- package/package.json +3 -2
|
@@ -7,11 +7,11 @@ included:
|
|
|
7
7
|
injectedDeps: {}
|
|
8
8
|
layoutVersion: 5
|
|
9
9
|
nodeLinker: hoisted
|
|
10
|
-
packageManager: pnpm@7.9.
|
|
10
|
+
packageManager: pnpm@7.9.4
|
|
11
11
|
pendingBuilds:
|
|
12
12
|
- /node-gyp/9.1.0
|
|
13
13
|
- /encoding/0.1.13
|
|
14
|
-
prunedAt: Wed,
|
|
14
|
+
prunedAt: Wed, 24 Aug 2022 12:08:52 GMT
|
|
15
15
|
publicHoistPattern:
|
|
16
16
|
- '*eslint*'
|
|
17
17
|
- '*prettier*'
|
|
@@ -113,8 +113,8 @@ packages:
|
|
|
113
113
|
dev: false
|
|
114
114
|
optional: true
|
|
115
115
|
|
|
116
|
-
/cacache/16.1.
|
|
117
|
-
resolution: {integrity: sha512
|
|
116
|
+
/cacache/16.1.3:
|
|
117
|
+
resolution: {integrity: sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==}
|
|
118
118
|
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
|
|
119
119
|
dependencies:
|
|
120
120
|
'@npmcli/fs': 2.1.2
|
|
@@ -134,7 +134,7 @@ packages:
|
|
|
134
134
|
rimraf: 3.0.2
|
|
135
135
|
ssri: 9.0.1
|
|
136
136
|
tar: 6.1.11
|
|
137
|
-
unique-filename:
|
|
137
|
+
unique-filename: 2.0.0
|
|
138
138
|
transitivePeerDependencies:
|
|
139
139
|
- bluebird
|
|
140
140
|
dev: false
|
|
@@ -391,7 +391,7 @@ packages:
|
|
|
391
391
|
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
|
|
392
392
|
dependencies:
|
|
393
393
|
agentkeepalive: 4.2.1
|
|
394
|
-
cacache: 16.1.
|
|
394
|
+
cacache: 16.1.3
|
|
395
395
|
http-cache-semantics: 4.1.0
|
|
396
396
|
http-proxy-agent: 5.0.0
|
|
397
397
|
https-proxy-agent: 5.0.1
|
|
@@ -399,7 +399,7 @@ packages:
|
|
|
399
399
|
lru-cache: 7.14.0
|
|
400
400
|
minipass: 3.3.4
|
|
401
401
|
minipass-collect: 1.0.2
|
|
402
|
-
minipass-fetch: 2.1.
|
|
402
|
+
minipass-fetch: 2.1.2
|
|
403
403
|
minipass-flush: 1.0.5
|
|
404
404
|
minipass-pipeline: 1.2.4
|
|
405
405
|
negotiator: 0.6.3
|
|
@@ -435,8 +435,8 @@ packages:
|
|
|
435
435
|
dev: false
|
|
436
436
|
optional: true
|
|
437
437
|
|
|
438
|
-
/minipass-fetch/2.1.
|
|
439
|
-
resolution: {integrity: sha512-
|
|
438
|
+
/minipass-fetch/2.1.2:
|
|
439
|
+
resolution: {integrity: sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==}
|
|
440
440
|
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
|
|
441
441
|
dependencies:
|
|
442
442
|
minipass: 3.3.4
|
|
@@ -719,8 +719,9 @@ packages:
|
|
|
719
719
|
dev: false
|
|
720
720
|
optional: true
|
|
721
721
|
|
|
722
|
-
/unique-filename/
|
|
723
|
-
resolution: {integrity: sha512-
|
|
722
|
+
/unique-filename/2.0.0:
|
|
723
|
+
resolution: {integrity: sha512-tpzoz2RpZ//6Zt4GPpOFTyrnfZuSvjIfe8lvx6Thp4yTQwJtAFwPlssEBE62VhGA2We5/COyNpcIu+OABu3/Yg==}
|
|
724
|
+
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
|
|
724
725
|
dependencies:
|
|
725
726
|
unique-slug: 2.0.2
|
|
726
727
|
dev: false
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cacache",
|
|
3
|
-
"version": "16.1.
|
|
3
|
+
"version": "16.1.3",
|
|
4
4
|
"cache-version": {
|
|
5
5
|
"content": "2",
|
|
6
6
|
"index": "5"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"rimraf": "^3.0.2",
|
|
66
66
|
"ssri": "^9.0.0",
|
|
67
67
|
"tar": "^6.1.11",
|
|
68
|
-
"unique-filename": "^
|
|
68
|
+
"unique-filename": "^2.0.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@npmcli/eslint-config": "^3.0.1",
|
|
@@ -10,7 +10,9 @@ const FetchError = require('./fetch-error.js')
|
|
|
10
10
|
let convert
|
|
11
11
|
try {
|
|
12
12
|
convert = require('encoding').convert
|
|
13
|
-
} catch (e) {
|
|
13
|
+
} catch (e) {
|
|
14
|
+
// defer error until textConverted is called
|
|
15
|
+
}
|
|
14
16
|
|
|
15
17
|
const INTERNALS = Symbol('Body internals')
|
|
16
18
|
const CONSUME_BODY = Symbol('consumeBody')
|
|
@@ -69,16 +71,16 @@ class Body {
|
|
|
69
71
|
))
|
|
70
72
|
}
|
|
71
73
|
|
|
72
|
-
json () {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
74
|
+
async json () {
|
|
75
|
+
const buf = await this[CONSUME_BODY]()
|
|
76
|
+
try {
|
|
77
|
+
return JSON.parse(buf.toString())
|
|
78
|
+
} catch (er) {
|
|
79
|
+
throw new FetchError(
|
|
80
|
+
`invalid json response body at ${this.url} reason: ${er.message}`,
|
|
81
|
+
'invalid-json'
|
|
82
|
+
)
|
|
83
|
+
}
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
text () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "minipass-fetch",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "An implementation of window.fetch in Node.js using Minipass streams",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -23,10 +23,11 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@npmcli/eslint-config": "^3.0.1",
|
|
26
|
-
"@npmcli/template-oss": "3.
|
|
26
|
+
"@npmcli/template-oss": "3.5.0",
|
|
27
27
|
"@ungap/url-search-params": "^0.2.2",
|
|
28
28
|
"abort-controller": "^3.0.0",
|
|
29
29
|
"abortcontroller-polyfill": "~1.7.3",
|
|
30
|
+
"encoding": "^0.1.13",
|
|
30
31
|
"form-data": "^4.0.0",
|
|
31
32
|
"nock": "^13.2.4",
|
|
32
33
|
"parted": "^0.1.1",
|
|
@@ -61,6 +62,6 @@
|
|
|
61
62
|
"author": "GitHub Inc.",
|
|
62
63
|
"templateOSS": {
|
|
63
64
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
64
|
-
"version": "3.
|
|
65
|
+
"version": "3.5.0"
|
|
65
66
|
}
|
|
66
67
|
}
|
|
@@ -1,27 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unique-filename",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Generate a unique filename for use in temporary directories or caches.",
|
|
5
|
-
"main": "index.js",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "
|
|
7
|
+
"test": "tap",
|
|
8
|
+
"lint": "eslint \"**/*.js\"",
|
|
9
|
+
"postlint": "template-oss-check",
|
|
10
|
+
"template-oss-apply": "template-oss-apply --force",
|
|
11
|
+
"lintfix": "npm run lint -- --fix",
|
|
12
|
+
"preversion": "npm test",
|
|
13
|
+
"postversion": "npm publish",
|
|
14
|
+
"prepublishOnly": "git push origin --follow-tags",
|
|
15
|
+
"snap": "tap",
|
|
16
|
+
"posttest": "npm run lint"
|
|
8
17
|
},
|
|
9
18
|
"repository": {
|
|
10
19
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/
|
|
20
|
+
"url": "https://github.com/npm/unique-filename.git"
|
|
12
21
|
},
|
|
13
22
|
"keywords": [],
|
|
14
|
-
"author": "
|
|
23
|
+
"author": "GitHub Inc.",
|
|
15
24
|
"license": "ISC",
|
|
16
25
|
"bugs": {
|
|
17
26
|
"url": "https://github.com/iarna/unique-filename/issues"
|
|
18
27
|
},
|
|
19
28
|
"homepage": "https://github.com/iarna/unique-filename",
|
|
20
29
|
"devDependencies": {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
30
|
+
"@npmcli/eslint-config": "^3.1.0",
|
|
31
|
+
"@npmcli/template-oss": "3.5.0",
|
|
32
|
+
"tap": "^16.3.0"
|
|
23
33
|
},
|
|
24
34
|
"dependencies": {
|
|
25
|
-
"unique-slug": "^2.0.
|
|
35
|
+
"unique-slug": "^2.0.2"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"bin/",
|
|
39
|
+
"lib/"
|
|
40
|
+
],
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
|
|
43
|
+
},
|
|
44
|
+
"templateOSS": {
|
|
45
|
+
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
46
|
+
"version": "3.5.0"
|
|
26
47
|
}
|
|
27
48
|
}
|
package/dist/pnpm.cjs
CHANGED
|
@@ -3206,7 +3206,7 @@ var require_lib4 = __commonJS({
|
|
|
3206
3206
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
3207
3207
|
var defaultManifest = {
|
|
3208
3208
|
name: "pnpm" != null && true ? "pnpm" : "pnpm",
|
|
3209
|
-
version: "7.9.
|
|
3209
|
+
version: "7.9.5" != null && true ? "7.9.5" : "0.0.0"
|
|
3210
3210
|
};
|
|
3211
3211
|
var pkgJson;
|
|
3212
3212
|
if (require.main == null) {
|
|
@@ -23591,9 +23591,11 @@ var require_lib18 = __commonJS({
|
|
|
23591
23591
|
var git_utils_1 = require_lib16();
|
|
23592
23592
|
var matcher_1 = __importDefault(require_lib17());
|
|
23593
23593
|
var camelcase_1 = __importDefault(require_camelcase());
|
|
23594
|
+
var is_windows_1 = __importDefault(require_is_windows());
|
|
23594
23595
|
var normalize_registry_url_1 = __importDefault(require_normalize_registry_url());
|
|
23595
23596
|
var fromPairs_1 = __importDefault(require_fromPairs());
|
|
23596
23597
|
var realpath_missing_1 = __importDefault(require_realpath_missing());
|
|
23598
|
+
var path_absolute_1 = __importDefault(require_path_absolute());
|
|
23597
23599
|
var which_1 = __importDefault(require_which2());
|
|
23598
23600
|
var checkGlobalBinDir_1 = require_checkGlobalBinDir();
|
|
23599
23601
|
var getScopeRegistries_1 = __importDefault(require_getScopeRegistries());
|
|
@@ -23931,6 +23933,13 @@ var require_lib18 = __commonJS({
|
|
|
23931
23933
|
} else {
|
|
23932
23934
|
pnpmConfig.extraBinPaths = [];
|
|
23933
23935
|
}
|
|
23936
|
+
if (pnpmConfig.preferSymlinkedExecutables && !(0, is_windows_1.default)()) {
|
|
23937
|
+
const cwd2 = pnpmConfig.lockfileDir ?? pnpmConfig.dir;
|
|
23938
|
+
const virtualStoreDir = pnpmConfig.virtualStoreDir ? pnpmConfig.virtualStoreDir : pnpmConfig.modulesDir ? path_1.default.join(pnpmConfig.modulesDir, ".pnpm") : "node_modules/.pnpm";
|
|
23939
|
+
pnpmConfig.extraEnv = {
|
|
23940
|
+
NODE_PATH: (0, path_absolute_1.default)(path_1.default.join(virtualStoreDir, "node_modules"), cwd2)
|
|
23941
|
+
};
|
|
23942
|
+
}
|
|
23934
23943
|
if (pnpmConfig["shamefullyFlatten"]) {
|
|
23935
23944
|
warnings.push(`The "shamefully-flatten" setting has been renamed to "shamefully-hoist". Also, in most cases you won't need "shamefully-hoist". Since v4, a semistrict node_modules structure is on by default (via hoist-pattern=[*]).`);
|
|
23936
23945
|
pnpmConfig.shamefullyHoist = true;
|
|
@@ -72668,7 +72677,8 @@ var require_lib36 = __commonJS({
|
|
|
72668
72677
|
return {
|
|
72669
72678
|
addFilesFromDir: addFilesFromDir_1.default.bind(null, { addBuffer, addStream }),
|
|
72670
72679
|
addFilesFromTarball: addFilesFromTarball_1.default.bind(null, addStream, ignore ?? null),
|
|
72671
|
-
getFilePathInCafs: getFilePathInCafs_1.default.bind(null, cafsDir)
|
|
72680
|
+
getFilePathInCafs: getFilePathInCafs_1.default.bind(null, cafsDir),
|
|
72681
|
+
getFilePathByModeInCafs: getFilePathInCafs_1.getFilePathByModeInCafs.bind(null, cafsDir)
|
|
72672
72682
|
};
|
|
72673
72683
|
}
|
|
72674
72684
|
exports2.default = createCafs;
|
|
@@ -74861,9 +74871,9 @@ var require_git_host2 = __commonJS({
|
|
|
74861
74871
|
}
|
|
74862
74872
|
});
|
|
74863
74873
|
|
|
74864
|
-
// ../../node_modules/.pnpm/lru-cache@7.
|
|
74874
|
+
// ../../node_modules/.pnpm/lru-cache@7.13.2/node_modules/lru-cache/index.js
|
|
74865
74875
|
var require_lru_cache3 = __commonJS({
|
|
74866
|
-
"../../node_modules/.pnpm/lru-cache@7.
|
|
74876
|
+
"../../node_modules/.pnpm/lru-cache@7.13.2/node_modules/lru-cache/index.js"(exports2, module2) {
|
|
74867
74877
|
var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
74868
74878
|
var hasAbortController = typeof AbortController === "function";
|
|
74869
74879
|
var AC = hasAbortController ? AbortController : class AbortController {
|
|
@@ -74973,7 +74983,6 @@ var require_lru_cache3 = __commonJS({
|
|
|
74973
74983
|
noDisposeOnSet,
|
|
74974
74984
|
noUpdateTTL,
|
|
74975
74985
|
maxSize = 0,
|
|
74976
|
-
maxEntrySize = 0,
|
|
74977
74986
|
sizeCalculation,
|
|
74978
74987
|
fetchMethod,
|
|
74979
74988
|
fetchContext,
|
|
@@ -74990,12 +74999,11 @@ var require_lru_cache3 = __commonJS({
|
|
|
74990
74999
|
}
|
|
74991
75000
|
this.max = max;
|
|
74992
75001
|
this.maxSize = maxSize;
|
|
74993
|
-
this.maxEntrySize = maxEntrySize || this.maxSize;
|
|
74994
75002
|
this.sizeCalculation = sizeCalculation || length;
|
|
74995
75003
|
if (this.sizeCalculation) {
|
|
74996
|
-
if (!this.maxSize
|
|
75004
|
+
if (!this.maxSize) {
|
|
74997
75005
|
throw new TypeError(
|
|
74998
|
-
"cannot set sizeCalculation without setting maxSize
|
|
75006
|
+
"cannot set sizeCalculation without setting maxSize"
|
|
74999
75007
|
);
|
|
75000
75008
|
}
|
|
75001
75009
|
if (typeof this.sizeCalculation !== "function") {
|
|
@@ -75037,17 +75045,10 @@ var require_lru_cache3 = __commonJS({
|
|
|
75037
75045
|
this.noDisposeOnSet = !!noDisposeOnSet;
|
|
75038
75046
|
this.noUpdateTTL = !!noUpdateTTL;
|
|
75039
75047
|
this.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection;
|
|
75040
|
-
if (this.
|
|
75041
|
-
if (this.maxSize
|
|
75042
|
-
if (!isPosInt(this.maxSize)) {
|
|
75043
|
-
throw new TypeError(
|
|
75044
|
-
"maxSize must be a positive integer if specified"
|
|
75045
|
-
);
|
|
75046
|
-
}
|
|
75047
|
-
}
|
|
75048
|
-
if (!isPosInt(this.maxEntrySize)) {
|
|
75048
|
+
if (this.maxSize !== 0) {
|
|
75049
|
+
if (!isPosInt(this.maxSize)) {
|
|
75049
75050
|
throw new TypeError(
|
|
75050
|
-
"
|
|
75051
|
+
"maxSize must be a positive integer if specified"
|
|
75051
75052
|
);
|
|
75052
75053
|
}
|
|
75053
75054
|
this.initializeSizeTracking();
|
|
@@ -75189,7 +75190,7 @@ var require_lru_cache3 = __commonJS({
|
|
|
75189
75190
|
requireSize(k, v, size, sizeCalculation) {
|
|
75190
75191
|
if (size || sizeCalculation) {
|
|
75191
75192
|
throw new TypeError(
|
|
75192
|
-
"cannot set size without setting maxSize
|
|
75193
|
+
"cannot set size without setting maxSize on cache"
|
|
75193
75194
|
);
|
|
75194
75195
|
}
|
|
75195
75196
|
}
|
|
@@ -75334,7 +75335,7 @@ var require_lru_cache3 = __commonJS({
|
|
|
75334
75335
|
noUpdateTTL = this.noUpdateTTL
|
|
75335
75336
|
} = {}) {
|
|
75336
75337
|
size = this.requireSize(k, v, size, sizeCalculation);
|
|
75337
|
-
if (this.
|
|
75338
|
+
if (this.maxSize && size > this.maxSize) {
|
|
75338
75339
|
return this;
|
|
75339
75340
|
}
|
|
75340
75341
|
let index = this.size === 0 ? void 0 : this.keyMap.get(k);
|
|
@@ -76154,9 +76155,9 @@ var require_is_core_module = __commonJS({
|
|
|
76154
76155
|
}
|
|
76155
76156
|
});
|
|
76156
76157
|
|
|
76157
|
-
// ../../node_modules/.pnpm/normalize-package-data@4.0.
|
|
76158
|
+
// ../../node_modules/.pnpm/normalize-package-data@4.0.0/node_modules/normalize-package-data/lib/extract_description.js
|
|
76158
76159
|
var require_extract_description = __commonJS({
|
|
76159
|
-
"../../node_modules/.pnpm/normalize-package-data@4.0.
|
|
76160
|
+
"../../node_modules/.pnpm/normalize-package-data@4.0.0/node_modules/normalize-package-data/lib/extract_description.js"(exports2, module2) {
|
|
76160
76161
|
module2.exports = extractDescription;
|
|
76161
76162
|
function extractDescription(d) {
|
|
76162
76163
|
if (!d) {
|
|
@@ -76166,23 +76167,21 @@ var require_extract_description = __commonJS({
|
|
|
76166
76167
|
return;
|
|
76167
76168
|
}
|
|
76168
76169
|
d = d.trim().split("\n");
|
|
76169
|
-
|
|
76170
|
-
|
|
76171
|
-
s++;
|
|
76170
|
+
for (var s = 0; d[s] && d[s].trim().match(/^(#|$)/); s++) {
|
|
76171
|
+
;
|
|
76172
76172
|
}
|
|
76173
|
-
|
|
76174
|
-
|
|
76175
|
-
|
|
76176
|
-
e++;
|
|
76173
|
+
var l = d.length;
|
|
76174
|
+
for (var e = s + 1; e < l && d[e].trim(); e++) {
|
|
76175
|
+
;
|
|
76177
76176
|
}
|
|
76178
76177
|
return d.slice(s, e).join(" ").trim();
|
|
76179
76178
|
}
|
|
76180
76179
|
}
|
|
76181
76180
|
});
|
|
76182
76181
|
|
|
76183
|
-
// ../../node_modules/.pnpm/normalize-package-data@4.0.
|
|
76182
|
+
// ../../node_modules/.pnpm/normalize-package-data@4.0.0/node_modules/normalize-package-data/lib/typos.json
|
|
76184
76183
|
var require_typos = __commonJS({
|
|
76185
|
-
"../../node_modules/.pnpm/normalize-package-data@4.0.
|
|
76184
|
+
"../../node_modules/.pnpm/normalize-package-data@4.0.0/node_modules/normalize-package-data/lib/typos.json"(exports2, module2) {
|
|
76186
76185
|
module2.exports = {
|
|
76187
76186
|
topLevel: {
|
|
76188
76187
|
dependancies: "dependencies",
|
|
@@ -76211,9 +76210,9 @@ var require_typos = __commonJS({
|
|
|
76211
76210
|
}
|
|
76212
76211
|
});
|
|
76213
76212
|
|
|
76214
|
-
// ../../node_modules/.pnpm/normalize-package-data@4.0.
|
|
76213
|
+
// ../../node_modules/.pnpm/normalize-package-data@4.0.0/node_modules/normalize-package-data/lib/fixer.js
|
|
76215
76214
|
var require_fixer = __commonJS({
|
|
76216
|
-
"../../node_modules/.pnpm/normalize-package-data@4.0.
|
|
76215
|
+
"../../node_modules/.pnpm/normalize-package-data@4.0.0/node_modules/normalize-package-data/lib/fixer.js"(exports2, module2) {
|
|
76217
76216
|
var isValidSemver = require_valid();
|
|
76218
76217
|
var cleanSemver = require_clean();
|
|
76219
76218
|
var validateLicense = require_validate_npm_package_license();
|
|
@@ -76327,17 +76326,17 @@ var require_fixer = __commonJS({
|
|
|
76327
76326
|
this.warn("nonArrayBundleDependencies");
|
|
76328
76327
|
delete data[bd];
|
|
76329
76328
|
} else if (data[bd]) {
|
|
76330
|
-
data[bd] = data[bd].filter(function(
|
|
76331
|
-
if (!
|
|
76332
|
-
this.warn("nonStringBundleDependency",
|
|
76329
|
+
data[bd] = data[bd].filter(function(bd2) {
|
|
76330
|
+
if (!bd2 || typeof bd2 !== "string") {
|
|
76331
|
+
this.warn("nonStringBundleDependency", bd2);
|
|
76333
76332
|
return false;
|
|
76334
76333
|
} else {
|
|
76335
76334
|
if (!data.dependencies) {
|
|
76336
76335
|
data.dependencies = {};
|
|
76337
76336
|
}
|
|
76338
|
-
if (!Object.prototype.hasOwnProperty.call(data.dependencies,
|
|
76339
|
-
this.warn("nonDependencyBundleDependency",
|
|
76340
|
-
data.dependencies[
|
|
76337
|
+
if (!Object.prototype.hasOwnProperty.call(data.dependencies, bd2)) {
|
|
76338
|
+
this.warn("nonDependencyBundleDependency", bd2);
|
|
76339
|
+
data.dependencies[bd2] = "*";
|
|
76341
76340
|
}
|
|
76342
76341
|
return true;
|
|
76343
76342
|
}
|
|
@@ -76560,27 +76559,27 @@ var require_fixer = __commonJS({
|
|
|
76560
76559
|
}
|
|
76561
76560
|
var name = person.name || "";
|
|
76562
76561
|
var u = person.url || person.web;
|
|
76563
|
-
var
|
|
76562
|
+
var url2 = u ? " (" + u + ")" : "";
|
|
76564
76563
|
var e = person.email || person.mail;
|
|
76565
|
-
var
|
|
76566
|
-
return name +
|
|
76564
|
+
var email = e ? " <" + e + ">" : "";
|
|
76565
|
+
return name + email + url2;
|
|
76567
76566
|
}
|
|
76568
76567
|
function parsePerson(person) {
|
|
76569
76568
|
if (typeof person !== "string") {
|
|
76570
76569
|
return person;
|
|
76571
76570
|
}
|
|
76572
|
-
var
|
|
76573
|
-
var
|
|
76574
|
-
var
|
|
76571
|
+
var name = person.match(/^([^(<]+)/);
|
|
76572
|
+
var url2 = person.match(/\(([^()]+)\)/);
|
|
76573
|
+
var email = person.match(/<([^<>]+)>/);
|
|
76575
76574
|
var obj = {};
|
|
76576
|
-
if (
|
|
76577
|
-
obj.name =
|
|
76575
|
+
if (name && name[0].trim()) {
|
|
76576
|
+
obj.name = name[0].trim();
|
|
76578
76577
|
}
|
|
76579
|
-
if (
|
|
76580
|
-
obj.email =
|
|
76578
|
+
if (email) {
|
|
76579
|
+
obj.email = email[1];
|
|
76581
76580
|
}
|
|
76582
|
-
if (
|
|
76583
|
-
obj.url =
|
|
76581
|
+
if (url2) {
|
|
76582
|
+
obj.url = url2[1];
|
|
76584
76583
|
}
|
|
76585
76584
|
return obj;
|
|
76586
76585
|
}
|
|
@@ -76642,9 +76641,9 @@ var require_fixer = __commonJS({
|
|
|
76642
76641
|
}
|
|
76643
76642
|
});
|
|
76644
76643
|
|
|
76645
|
-
// ../../node_modules/.pnpm/normalize-package-data@4.0.
|
|
76644
|
+
// ../../node_modules/.pnpm/normalize-package-data@4.0.0/node_modules/normalize-package-data/lib/warning_messages.json
|
|
76646
76645
|
var require_warning_messages = __commonJS({
|
|
76647
|
-
"../../node_modules/.pnpm/normalize-package-data@4.0.
|
|
76646
|
+
"../../node_modules/.pnpm/normalize-package-data@4.0.0/node_modules/normalize-package-data/lib/warning_messages.json"(exports2, module2) {
|
|
76648
76647
|
module2.exports = {
|
|
76649
76648
|
repositories: "'repositories' (plural) Not supported. Please pick one as the 'repository' field",
|
|
76650
76649
|
missingRepository: "No repository field.",
|
|
@@ -76678,9 +76677,9 @@ var require_warning_messages = __commonJS({
|
|
|
76678
76677
|
}
|
|
76679
76678
|
});
|
|
76680
76679
|
|
|
76681
|
-
// ../../node_modules/.pnpm/normalize-package-data@4.0.
|
|
76680
|
+
// ../../node_modules/.pnpm/normalize-package-data@4.0.0/node_modules/normalize-package-data/lib/make_warning.js
|
|
76682
76681
|
var require_make_warning = __commonJS({
|
|
76683
|
-
"../../node_modules/.pnpm/normalize-package-data@4.0.
|
|
76682
|
+
"../../node_modules/.pnpm/normalize-package-data@4.0.0/node_modules/normalize-package-data/lib/make_warning.js"(exports2, module2) {
|
|
76684
76683
|
var util = require("util");
|
|
76685
76684
|
var messages = require_warning_messages();
|
|
76686
76685
|
module2.exports = function() {
|
|
@@ -76704,9 +76703,9 @@ var require_make_warning = __commonJS({
|
|
|
76704
76703
|
}
|
|
76705
76704
|
});
|
|
76706
76705
|
|
|
76707
|
-
// ../../node_modules/.pnpm/normalize-package-data@4.0.
|
|
76706
|
+
// ../../node_modules/.pnpm/normalize-package-data@4.0.0/node_modules/normalize-package-data/lib/normalize.js
|
|
76708
76707
|
var require_normalize = __commonJS({
|
|
76709
|
-
"../../node_modules/.pnpm/normalize-package-data@4.0.
|
|
76708
|
+
"../../node_modules/.pnpm/normalize-package-data@4.0.0/node_modules/normalize-package-data/lib/normalize.js"(exports2, module2) {
|
|
76710
76709
|
module2.exports = normalize;
|
|
76711
76710
|
var fixer = require_fixer();
|
|
76712
76711
|
normalize.fixer = fixer;
|
|
@@ -83553,7 +83552,13 @@ var require_normalizeArch = __commonJS({
|
|
|
83553
83552
|
"../node.fetcher/lib/normalizeArch.js"(exports2) {
|
|
83554
83553
|
"use strict";
|
|
83555
83554
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
83556
|
-
function getNormalizedArch(platform, arch) {
|
|
83555
|
+
function getNormalizedArch(platform, arch, nodeVersion) {
|
|
83556
|
+
if (nodeVersion) {
|
|
83557
|
+
const nodeMajorVersion = +nodeVersion.split(".")[0];
|
|
83558
|
+
if (platform === "darwin" && arch === "arm64" && nodeMajorVersion < 16) {
|
|
83559
|
+
return "x64";
|
|
83560
|
+
}
|
|
83561
|
+
}
|
|
83557
83562
|
if (platform === "win32" && arch === "ia32") {
|
|
83558
83563
|
return "x86";
|
|
83559
83564
|
}
|
|
@@ -83578,7 +83583,7 @@ var require_getNodeTarball = __commonJS({
|
|
|
83578
83583
|
var normalizeArch_1 = __importDefault(require_normalizeArch());
|
|
83579
83584
|
function getNodeTarball(nodeVersion, nodeMirror, processPlatform, processArch) {
|
|
83580
83585
|
const platform = processPlatform === "win32" ? "win" : processPlatform;
|
|
83581
|
-
const arch = (0, normalizeArch_1.default)(processPlatform, processArch);
|
|
83586
|
+
const arch = (0, normalizeArch_1.default)(processPlatform, processArch, nodeVersion);
|
|
83582
83587
|
const extension = platform === "win" ? "zip" : "tar.gz";
|
|
83583
83588
|
const pkgName = `node-v${nodeVersion}-${platform}-${arch}`;
|
|
83584
83589
|
return {
|
|
@@ -85451,6 +85456,7 @@ var require_node3 = __commonJS({
|
|
|
85451
85456
|
var fs_1 = __importDefault(require("fs"));
|
|
85452
85457
|
var path_1 = __importDefault(require("path"));
|
|
85453
85458
|
var fetch_1 = require_lib31();
|
|
85459
|
+
var logger_1 = require_lib6();
|
|
85454
85460
|
var node_fetcher_1 = require_lib43();
|
|
85455
85461
|
var store_path_1 = __importDefault(require_lib44());
|
|
85456
85462
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
@@ -85495,6 +85501,7 @@ var require_node3 = __commonJS({
|
|
|
85495
85501
|
pnpmHomeDir: opts.pnpmHomeDir
|
|
85496
85502
|
});
|
|
85497
85503
|
const cafsDir = path_1.default.join(storeDir, "files");
|
|
85504
|
+
(0, logger_1.globalInfo)(`Fetching Node.js ${opts.useNodeVersion} ...`);
|
|
85498
85505
|
await (0, node_fetcher_1.fetchNode)(fetch, opts.useNodeVersion, versionDir, {
|
|
85499
85506
|
...opts,
|
|
85500
85507
|
cafsDir,
|
|
@@ -91234,6 +91241,7 @@ var require_lib67 = __commonJS({
|
|
|
91234
91241
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
91235
91242
|
};
|
|
91236
91243
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
91244
|
+
exports2.AuditEndpointNotExistsError = void 0;
|
|
91237
91245
|
var error_1 = __importDefault(require_lib8());
|
|
91238
91246
|
var fetch_1 = require_lib31();
|
|
91239
91247
|
var lockfileToAuditTree_1 = __importDefault(require_lockfileToAuditTree());
|
|
@@ -91254,6 +91262,9 @@ var require_lib67 = __commonJS({
|
|
|
91254
91262
|
retry: opts.retry,
|
|
91255
91263
|
timeout: opts.timeout
|
|
91256
91264
|
});
|
|
91265
|
+
if (res.status === 404) {
|
|
91266
|
+
throw new AuditEndpointNotExistsError(auditUrl);
|
|
91267
|
+
}
|
|
91257
91268
|
if (res.status !== 200) {
|
|
91258
91269
|
throw new error_1.default("AUDIT_BAD_RESPONSE", `The audit endpoint (at ${auditUrl}) responded with ${res.status}: ${await res.text()}`);
|
|
91259
91270
|
}
|
|
@@ -91267,6 +91278,15 @@ var require_lib67 = __commonJS({
|
|
|
91267
91278
|
}
|
|
91268
91279
|
return headers;
|
|
91269
91280
|
}
|
|
91281
|
+
var AuditEndpointNotExistsError = class extends error_1.default {
|
|
91282
|
+
constructor(endpoint) {
|
|
91283
|
+
const message2 = `The audit endpoint (at ${endpoint}) is doesn't exist.`;
|
|
91284
|
+
super("AUDIT_ENDPOINT_NOT_EXISTS", message2, {
|
|
91285
|
+
hint: "This issue is probably because you are using a private npm registry and that endpoint doesn't have an implementation of audit."
|
|
91286
|
+
});
|
|
91287
|
+
}
|
|
91288
|
+
};
|
|
91289
|
+
exports2.AuditEndpointNotExistsError = AuditEndpointNotExistsError;
|
|
91270
91290
|
}
|
|
91271
91291
|
});
|
|
91272
91292
|
|
|
@@ -97811,6 +97831,7 @@ var require_audit2 = __commonJS({
|
|
|
97811
97831
|
output: err.message
|
|
97812
97832
|
};
|
|
97813
97833
|
}
|
|
97834
|
+
throw err;
|
|
97814
97835
|
}
|
|
97815
97836
|
if (opts.fix) {
|
|
97816
97837
|
const newOverrides = await (0, fix_1.default)(opts.dir, auditReport);
|
|
@@ -116207,9 +116228,9 @@ var require_dist14 = __commonJS({
|
|
|
116207
116228
|
}
|
|
116208
116229
|
});
|
|
116209
116230
|
|
|
116210
|
-
// ../../node_modules/.pnpm/write-file-atomic@4.0.
|
|
116231
|
+
// ../../node_modules/.pnpm/write-file-atomic@4.0.1/node_modules/write-file-atomic/lib/index.js
|
|
116211
116232
|
var require_lib93 = __commonJS({
|
|
116212
|
-
"../../node_modules/.pnpm/write-file-atomic@4.0.
|
|
116233
|
+
"../../node_modules/.pnpm/write-file-atomic@4.0.1/node_modules/write-file-atomic/lib/index.js"(exports2, module2) {
|
|
116213
116234
|
"use strict";
|
|
116214
116235
|
module2.exports = writeFile;
|
|
116215
116236
|
module2.exports.sync = writeFileSync;
|
|
@@ -116237,7 +116258,7 @@ var require_lib93 = __commonJS({
|
|
|
116237
116258
|
return () => {
|
|
116238
116259
|
try {
|
|
116239
116260
|
fs2.unlinkSync(typeof tmpfile === "function" ? tmpfile() : tmpfile);
|
|
116240
|
-
} catch {
|
|
116261
|
+
} catch (_) {
|
|
116241
116262
|
}
|
|
116242
116263
|
};
|
|
116243
116264
|
}
|
|
@@ -116335,19 +116356,14 @@ var require_lib93 = __commonJS({
|
|
|
116335
116356
|
}
|
|
116336
116357
|
}
|
|
116337
116358
|
}
|
|
116338
|
-
|
|
116359
|
+
function writeFile(filename, data, options, callback) {
|
|
116339
116360
|
if (options instanceof Function) {
|
|
116340
116361
|
callback = options;
|
|
116341
116362
|
options = {};
|
|
116342
116363
|
}
|
|
116343
116364
|
const promise = writeFileAsync(filename, data, options);
|
|
116344
116365
|
if (callback) {
|
|
116345
|
-
|
|
116346
|
-
const result2 = await promise;
|
|
116347
|
-
return callback(result2);
|
|
116348
|
-
} catch (err) {
|
|
116349
|
-
return callback(err);
|
|
116350
|
-
}
|
|
116366
|
+
promise.then(callback, callback);
|
|
116351
116367
|
}
|
|
116352
116368
|
return promise;
|
|
116353
116369
|
}
|
|
@@ -116974,6 +116990,7 @@ var require_implementation2 = __commonJS({
|
|
|
116974
116990
|
const store = await (0, store_connection_manager_1.createOrConnectStoreController)(opts);
|
|
116975
116991
|
const scriptsOpts = {
|
|
116976
116992
|
extraBinPaths: ctx.extraBinPaths,
|
|
116993
|
+
extraEnv: opts.extraEnv,
|
|
116977
116994
|
rawConfig: opts.rawConfig,
|
|
116978
116995
|
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
116979
116996
|
scriptShell: opts.scriptShell,
|
|
@@ -117056,6 +117073,7 @@ var require_implementation2 = __commonJS({
|
|
|
117056
117073
|
await (0, lifecycle_1.runPostinstallHooks)({
|
|
117057
117074
|
depPath,
|
|
117058
117075
|
extraBinPaths: ctx.extraBinPaths,
|
|
117076
|
+
extraEnv: opts.extraEnv,
|
|
117059
117077
|
optional: pkgSnapshot.optional === true,
|
|
117060
117078
|
pkgRoot,
|
|
117061
117079
|
rawConfig: opts.rawConfig,
|
|
@@ -118071,7 +118089,7 @@ var require_symlinkDirectRootDependency = __commonJS({
|
|
|
118071
118089
|
if (err.code !== "ENOENT")
|
|
118072
118090
|
throw err;
|
|
118073
118091
|
(0, logger_1.globalWarn)(`Local dependency not found at ${dependencyLocation}`);
|
|
118074
|
-
|
|
118092
|
+
dependencyRealLocation = dependencyLocation;
|
|
118075
118093
|
}
|
|
118076
118094
|
const dest = path_1.default.join(destModulesDirReal, importAs);
|
|
118077
118095
|
const { reused } = await (0, symlink_dir_1.default)(dependencyRealLocation, dest);
|
|
@@ -122930,11 +122948,7 @@ var require_filterLockfileByImportersAndEngine = __commonJS({
|
|
|
122930
122948
|
const nextRelDepPaths = Object.entries({
|
|
122931
122949
|
...pkgSnapshot.dependencies,
|
|
122932
122950
|
...opts.include.optionalDependencies ? pkgSnapshot.optionalDependencies : {}
|
|
122933
|
-
}).map(([pkgName, ref]) =>
|
|
122934
|
-
if (pkgSnapshot.peerDependencies?.[pkgName])
|
|
122935
|
-
return null;
|
|
122936
|
-
return dp.refToRelative(ref, pkgName);
|
|
122937
|
-
}).filter((nodeId) => nodeId !== null);
|
|
122951
|
+
}).map(([pkgName, ref]) => dp.refToRelative(ref, pkgName)).filter((nodeId) => nodeId !== null);
|
|
122938
122952
|
pkgAllDeps(ctx, nextRelDepPaths, installable, opts);
|
|
122939
122953
|
}
|
|
122940
122954
|
}
|
|
@@ -127799,6 +127813,7 @@ var require_lib109 = __commonJS({
|
|
|
127799
127813
|
const scriptsOpts = {
|
|
127800
127814
|
optional: false,
|
|
127801
127815
|
extraBinPaths: opts.extraBinPaths,
|
|
127816
|
+
extraEnv: opts.extraEnv,
|
|
127802
127817
|
rawConfig: opts.rawConfig,
|
|
127803
127818
|
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
127804
127819
|
scriptShell: opts.scriptShell,
|
|
@@ -127981,9 +127996,12 @@ var require_lib109 = __commonJS({
|
|
|
127981
127996
|
if (opts.hoistPattern != null) {
|
|
127982
127997
|
extraBinPaths.unshift(path_1.default.join(virtualStoreDir, "node_modules/.bin"));
|
|
127983
127998
|
}
|
|
127984
|
-
let extraEnv;
|
|
127999
|
+
let extraEnv = opts.extraEnv;
|
|
127985
128000
|
if (opts.enablePnp) {
|
|
127986
|
-
extraEnv =
|
|
128001
|
+
extraEnv = {
|
|
128002
|
+
...extraEnv,
|
|
128003
|
+
...(0, lifecycle_1.makeNodeRequireOption)(path_1.default.join(opts.lockfileDir, ".pnp.cjs"))
|
|
128004
|
+
};
|
|
127987
128005
|
}
|
|
127988
128006
|
await (0, build_modules_1.default)(graph, Array.from(directNodes), {
|
|
127989
128007
|
childConcurrency: opts.childConcurrency,
|
|
@@ -135269,6 +135287,7 @@ var require_install = __commonJS({
|
|
|
135269
135287
|
async function _install() {
|
|
135270
135288
|
const scriptsOpts = {
|
|
135271
135289
|
extraBinPaths: opts.extraBinPaths,
|
|
135290
|
+
extraEnv: opts.extraEnv,
|
|
135272
135291
|
rawConfig: opts.rawConfig,
|
|
135273
135292
|
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
135274
135293
|
scriptShell: opts.scriptShell,
|
|
@@ -135344,6 +135363,18 @@ var require_install = __commonJS({
|
|
|
135344
135363
|
pruneVirtualStore,
|
|
135345
135364
|
wantedLockfile: maybeOpts.ignorePackageManifest ? void 0 : ctx.wantedLockfile
|
|
135346
135365
|
});
|
|
135366
|
+
if (opts.useLockfile && opts.saveLockfile && opts.mergeGitBranchLockfiles) {
|
|
135367
|
+
await (0, lockfile_file_1.writeLockfiles)({
|
|
135368
|
+
currentLockfile: ctx.currentLockfile,
|
|
135369
|
+
currentLockfileDir: ctx.virtualStoreDir,
|
|
135370
|
+
wantedLockfile: ctx.wantedLockfile,
|
|
135371
|
+
wantedLockfileDir: ctx.lockfileDir,
|
|
135372
|
+
forceSharedFormat: opts.forceSharedLockfile,
|
|
135373
|
+
useInlineSpecifiersFormat: opts.useInlineSpecifiersLockfileFormat,
|
|
135374
|
+
useGitBranchLockfile: opts.useGitBranchLockfile,
|
|
135375
|
+
mergeGitBranchLockfiles: opts.mergeGitBranchLockfiles
|
|
135376
|
+
});
|
|
135377
|
+
}
|
|
135347
135378
|
return projects;
|
|
135348
135379
|
} catch (error) {
|
|
135349
135380
|
if (frozenLockfile || error.code !== "ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY" && !BROKEN_LOCKFILE_INTEGRITY_ERRORS.has(error.code))
|
|
@@ -135746,9 +135777,12 @@ var require_install = __commonJS({
|
|
|
135746
135777
|
if (!opts.ignoreScripts || Object.keys(opts.patchedDependencies ?? {}).length > 0) {
|
|
135747
135778
|
const depPaths = Object.keys(dependenciesGraph);
|
|
135748
135779
|
const rootNodes = depPaths.filter((depPath) => dependenciesGraph[depPath].depth === 0);
|
|
135749
|
-
let extraEnv;
|
|
135780
|
+
let extraEnv = opts.scriptsOpts.extraEnv;
|
|
135750
135781
|
if (opts.enablePnp) {
|
|
135751
|
-
extraEnv =
|
|
135782
|
+
extraEnv = {
|
|
135783
|
+
...extraEnv,
|
|
135784
|
+
...(0, lifecycle_1.makeNodeRequireOption)(path_1.default.join(opts.lockfileDir, ".pnp.cjs"))
|
|
135785
|
+
};
|
|
135752
135786
|
}
|
|
135753
135787
|
await (0, build_modules_1.default)(dependenciesGraph, rootNodes, {
|
|
135754
135788
|
childConcurrency: opts.childConcurrency,
|
|
@@ -135872,7 +135906,10 @@ var require_install = __commonJS({
|
|
|
135872
135906
|
]);
|
|
135873
135907
|
if (!opts.ignoreScripts) {
|
|
135874
135908
|
if (opts.enablePnp) {
|
|
135875
|
-
opts.scriptsOpts.extraEnv =
|
|
135909
|
+
opts.scriptsOpts.extraEnv = {
|
|
135910
|
+
...opts.scriptsOpts.extraEnv,
|
|
135911
|
+
...(0, lifecycle_1.makeNodeRequireOption)(path_1.default.join(opts.lockfileDir, ".pnp.cjs"))
|
|
135912
|
+
};
|
|
135876
135913
|
}
|
|
135877
135914
|
const projectsToBeBuilt = projectsWithTargetDirs.filter(({ mutation }) => mutation === "install");
|
|
135878
135915
|
await (0, lifecycle_1.runLifecycleHooksConcurrently)(["preinstall", "install", "postinstall", "prepare"], projectsToBeBuilt, opts.childConcurrency, opts.scriptsOpts);
|
|
@@ -191097,6 +191134,7 @@ var require_publish2 = __commonJS({
|
|
|
191097
191134
|
const _runScriptsIfPresent = runScriptsIfPresent.bind(null, {
|
|
191098
191135
|
depPath: dir,
|
|
191099
191136
|
extraBinPaths: opts.extraBinPaths,
|
|
191137
|
+
extraEnv: opts.extraEnv,
|
|
191100
191138
|
pkgRoot: dir,
|
|
191101
191139
|
rawConfig: opts.rawConfig,
|
|
191102
191140
|
rootModulesDir: await (0, realpath_missing_1.default)(path_1.default.join(dir, "node_modules")),
|
|
@@ -191922,6 +191960,7 @@ var require_runRecursive = __commonJS({
|
|
|
191922
191960
|
const lifecycleOpts = {
|
|
191923
191961
|
depPath: prefix,
|
|
191924
191962
|
extraBinPaths: opts.extraBinPaths,
|
|
191963
|
+
extraEnv: opts.extraEnv,
|
|
191925
191964
|
pkgRoot: prefix,
|
|
191926
191965
|
rawConfig: opts.rawConfig,
|
|
191927
191966
|
rootModulesDir: await (0, realpath_missing_1.default)(path_1.default.join(prefix, "node_modules")),
|
|
@@ -191933,7 +191972,10 @@ var require_runRecursive = __commonJS({
|
|
|
191933
191972
|
};
|
|
191934
191973
|
const pnpPath = workspacePnpPath ?? await existsPnp(prefix);
|
|
191935
191974
|
if (pnpPath) {
|
|
191936
|
-
lifecycleOpts.extraEnv =
|
|
191975
|
+
lifecycleOpts.extraEnv = {
|
|
191976
|
+
...lifecycleOpts.extraEnv,
|
|
191977
|
+
...(0, lifecycle_1.makeNodeRequireOption)(pnpPath)
|
|
191978
|
+
};
|
|
191937
191979
|
}
|
|
191938
191980
|
if (opts.enablePrePostScripts && pkg.package.manifest.scripts?.[`pre${scriptName}`] && !pkg.package.manifest.scripts[scriptName].includes(`pre${scriptName}`)) {
|
|
191939
191981
|
await (0, lifecycle_1.default)(`pre${scriptName}`, pkg.package.manifest, lifecycleOpts);
|
|
@@ -192151,6 +192193,7 @@ so you may run "pnpm -w run ${scriptName}"`
|
|
|
192151
192193
|
const lifecycleOpts = {
|
|
192152
192194
|
depPath: dir,
|
|
192153
192195
|
extraBinPaths: opts.extraBinPaths,
|
|
192196
|
+
extraEnv: opts.extraEnv,
|
|
192154
192197
|
pkgRoot: dir,
|
|
192155
192198
|
rawConfig: opts.rawConfig,
|
|
192156
192199
|
rootModulesDir: await (0, realpath_missing_1.default)(path_1.default.join(dir, "node_modules")),
|
|
@@ -192164,7 +192207,10 @@ so you may run "pnpm -w run ${scriptName}"`
|
|
|
192164
192207
|
const existsPnp = existsInDir_1.default.bind(null, ".pnp.cjs");
|
|
192165
192208
|
const pnpPath = (opts.workspaceDir && await existsPnp(opts.workspaceDir)) ?? await existsPnp(dir);
|
|
192166
192209
|
if (pnpPath) {
|
|
192167
|
-
lifecycleOpts.extraEnv =
|
|
192210
|
+
lifecycleOpts.extraEnv = {
|
|
192211
|
+
...lifecycleOpts.extraEnv,
|
|
192212
|
+
...(0, lifecycle_1.makeNodeRequireOption)(pnpPath)
|
|
192213
|
+
};
|
|
192168
192214
|
}
|
|
192169
192215
|
try {
|
|
192170
192216
|
if (opts.enablePrePostScripts && manifest.scripts?.[`pre${scriptName}`] && !manifest.scripts[scriptName].includes(`pre${scriptName}`)) {
|
|
@@ -192369,7 +192415,10 @@ var require_exec = __commonJS({
|
|
|
192369
192415
|
await Promise.all(chunk.map(async (prefix) => limitRun(async () => {
|
|
192370
192416
|
try {
|
|
192371
192417
|
const pnpPath = workspacePnpPath ?? await existsPnp(prefix);
|
|
192372
|
-
const extraEnv =
|
|
192418
|
+
const extraEnv = {
|
|
192419
|
+
...opts.extraEnv,
|
|
192420
|
+
...pnpPath ? (0, lifecycle_1.makeNodeRequireOption)(pnpPath) : {}
|
|
192421
|
+
};
|
|
192373
192422
|
const env = (0, makeEnv_1.makeEnv)({
|
|
192374
192423
|
extraEnv: {
|
|
192375
192424
|
...extraEnv,
|
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": "7.9.
|
|
4
|
+
"version": "7.9.5",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pnpm": "bin/pnpm.cjs",
|
|
7
7
|
"pnpx": "bin/pnpx.cjs"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@pnpm/prepare": "workspace:*",
|
|
57
57
|
"@pnpm/read-package-json": "workspace:*",
|
|
58
58
|
"@pnpm/read-project-manifest": "workspace:*",
|
|
59
|
-
"@pnpm/registry-mock": "3.0.0-
|
|
59
|
+
"@pnpm/registry-mock": "3.0.0-2",
|
|
60
60
|
"@pnpm/run-npm": "workspace:*",
|
|
61
61
|
"@pnpm/tabtab": "^0.1.2",
|
|
62
62
|
"@pnpm/types": "workspace:*",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"cross-var-no-babel": "^1.2.0",
|
|
76
76
|
"deep-require-cwd": "1.0.0",
|
|
77
77
|
"delay": "^5.0.0",
|
|
78
|
+
"dependency-path": "workspace:*",
|
|
78
79
|
"dir-is-case-sensitive": "^2.0.0",
|
|
79
80
|
"esbuild": "^0.15.2",
|
|
80
81
|
"execa": "npm:safe-execa@^0.1.2",
|