pnpm 8.10.3 → 8.10.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/README.md +1 -1
- package/dist/node_modules/.modules.yaml +2 -2
- package/dist/pnpm.cjs +28 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -136,7 +136,7 @@ To quote the [Rush](https://rushjs.io/) team:
|
|
|
136
136
|
<picture>
|
|
137
137
|
<source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/macpaw.svg" />
|
|
138
138
|
<source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/macpaw_light.svg" />
|
|
139
|
-
<img src="https://pnpm.io/img/users/
|
|
139
|
+
<img src="https://pnpm.io/img/users/macpaw.svg" width="200" />
|
|
140
140
|
</picture>
|
|
141
141
|
</a>
|
|
142
142
|
</td>
|
|
@@ -202,7 +202,7 @@ included:
|
|
|
202
202
|
injectedDeps: {}
|
|
203
203
|
layoutVersion: 5
|
|
204
204
|
nodeLinker: hoisted
|
|
205
|
-
packageManager: pnpm@8.10.
|
|
205
|
+
packageManager: pnpm@8.10.4
|
|
206
206
|
pendingBuilds:
|
|
207
207
|
- /node-gyp/9.4.1
|
|
208
208
|
- /env-paths/2.2.1
|
|
@@ -300,7 +300,7 @@ pendingBuilds:
|
|
|
300
300
|
- /imurmurhash/0.1.4
|
|
301
301
|
- /safer-buffer/2.1.2
|
|
302
302
|
- /safe-buffer/5.2.1
|
|
303
|
-
prunedAt:
|
|
303
|
+
prunedAt: Tue, 14 Nov 2023 12:08:39 GMT
|
|
304
304
|
publicHoistPattern:
|
|
305
305
|
- '*eslint*'
|
|
306
306
|
- '*prettier*'
|
package/dist/pnpm.cjs
CHANGED
|
@@ -3323,7 +3323,7 @@ var require_lib4 = __commonJS({
|
|
|
3323
3323
|
var load_json_file_1 = __importDefault3(require_load_json_file());
|
|
3324
3324
|
var defaultManifest = {
|
|
3325
3325
|
name: true ? "pnpm" : "pnpm",
|
|
3326
|
-
version: true ? "8.10.
|
|
3326
|
+
version: true ? "8.10.5" : "0.0.0"
|
|
3327
3327
|
};
|
|
3328
3328
|
var pkgJson;
|
|
3329
3329
|
if (require.main == null) {
|
|
@@ -49142,12 +49142,9 @@ var require_lib29 = __commonJS({
|
|
|
49142
49142
|
}
|
|
49143
49143
|
}
|
|
49144
49144
|
function validateWorkspaceManifest(manifest) {
|
|
49145
|
-
if (manifest === void 0) {
|
|
49145
|
+
if (manifest === void 0 || manifest === null) {
|
|
49146
49146
|
return true;
|
|
49147
49147
|
}
|
|
49148
|
-
if (manifest === null) {
|
|
49149
|
-
throw new InvalidWorkspaceManifestError("Expected object but found - null");
|
|
49150
|
-
}
|
|
49151
49148
|
if (typeof manifest !== "object") {
|
|
49152
49149
|
throw new InvalidWorkspaceManifestError(`Expected object but found - ${typeof manifest}`);
|
|
49153
49150
|
}
|
|
@@ -82729,7 +82726,7 @@ var require_lib53 = __commonJS({
|
|
|
82729
82726
|
}
|
|
82730
82727
|
exports2.finishWorkers = finishWorkers;
|
|
82731
82728
|
function createTarballWorkerPool() {
|
|
82732
|
-
const maxWorkers = Math.max(2, os_1.default.cpus().length - Math.abs(process.env.PNPM_WORKERS ? parseInt(process.env.PNPM_WORKERS) : 0)) - 1;
|
|
82729
|
+
const maxWorkers = Math.max(2, (os_1.default.availableParallelism?.() ?? os_1.default.cpus().length) - Math.abs(process.env.PNPM_WORKERS ? parseInt(process.env.PNPM_WORKERS) : 0)) - 1;
|
|
82733
82730
|
const workerPool2 = new WorkerPool_1.WorkerPool({
|
|
82734
82731
|
id: "pnpm",
|
|
82735
82732
|
maxWorkers,
|
|
@@ -111548,6 +111545,8 @@ var require_extendProjectsWithTargetDirs = __commonJS({
|
|
|
111548
111545
|
if (projectsById[importerId] == null)
|
|
111549
111546
|
return;
|
|
111550
111547
|
const localLocations = getLocalLocations(depPath, pkg.name);
|
|
111548
|
+
if (!localLocations)
|
|
111549
|
+
return;
|
|
111551
111550
|
projectsById[importerId].targetDirs.push(...localLocations);
|
|
111552
111551
|
projectsById[importerId].stages = ["preinstall", "install", "postinstall", "prepare", "prepublishOnly"];
|
|
111553
111552
|
});
|
|
@@ -123046,7 +123045,7 @@ var require_packageRequester = __commonJS({
|
|
|
123046
123045
|
}
|
|
123047
123046
|
function createPackageRequester(opts) {
|
|
123048
123047
|
opts = opts || {};
|
|
123049
|
-
const networkConcurrency = opts.networkConcurrency ?? Math.max(os_1.default.cpus().length, 16);
|
|
123048
|
+
const networkConcurrency = opts.networkConcurrency ?? Math.max(os_1.default.availableParallelism?.() ?? os_1.default.cpus().length, 16);
|
|
123050
123049
|
const requestsQueue = new p_queue_1.default({
|
|
123051
123050
|
concurrency: networkConcurrency
|
|
123052
123051
|
});
|
|
@@ -124870,7 +124869,9 @@ var require_lib114 = __commonJS({
|
|
|
124870
124869
|
await purgeModulesDirsOfImporters(opts, projects);
|
|
124871
124870
|
return { purged: true };
|
|
124872
124871
|
}
|
|
124873
|
-
throw new error_1.PnpmError("REGISTRIES_MISMATCH", `This modules directory was created using the following registries configuration: ${JSON.stringify(modules.registries)}. The current configuration is ${JSON.stringify(opts.registries)}
|
|
124872
|
+
throw new error_1.PnpmError("REGISTRIES_MISMATCH", `This modules directory was created using the following registries configuration: ${JSON.stringify(modules.registries)}. The current configuration is ${JSON.stringify(opts.registries)}.`, {
|
|
124873
|
+
hint: `To recreate the modules directory using the new settings, run "pnpm install${opts.global ? " -g" : ""}".`
|
|
124874
|
+
});
|
|
124874
124875
|
}
|
|
124875
124876
|
if (purged && rootProject == null) {
|
|
124876
124877
|
await purgeModulesDirsOfImporter(opts, {
|
|
@@ -181346,13 +181347,20 @@ var require_lib135 = __commonJS({
|
|
|
181346
181347
|
var nm_1 = require_lib134();
|
|
181347
181348
|
function hoist(lockfile, opts) {
|
|
181348
181349
|
const nodes = /* @__PURE__ */ new Map();
|
|
181350
|
+
const ctx = {
|
|
181351
|
+
autoInstallPeers: opts?.autoInstallPeers,
|
|
181352
|
+
nodes,
|
|
181353
|
+
lockfile,
|
|
181354
|
+
depPathByPkgId: /* @__PURE__ */ new Map()
|
|
181355
|
+
};
|
|
181356
|
+
const _toTree = toTree.bind(null, ctx);
|
|
181349
181357
|
const node = {
|
|
181350
181358
|
name: ".",
|
|
181351
181359
|
identName: ".",
|
|
181352
181360
|
reference: "",
|
|
181353
181361
|
peerNames: /* @__PURE__ */ new Set([]),
|
|
181354
181362
|
dependencyKind: nm_1.HoisterDependencyKind.WORKSPACE,
|
|
181355
|
-
dependencies:
|
|
181363
|
+
dependencies: _toTree({
|
|
181356
181364
|
...lockfile.importers["."]?.dependencies,
|
|
181357
181365
|
...lockfile.importers["."]?.devDependencies,
|
|
181358
181366
|
...lockfile.importers["."]?.optionalDependencies,
|
|
@@ -181360,7 +181368,7 @@ var require_lib135 = __commonJS({
|
|
|
181360
181368
|
acc[dep] = "link:";
|
|
181361
181369
|
return acc;
|
|
181362
181370
|
}, {})
|
|
181363
|
-
}
|
|
181371
|
+
})
|
|
181364
181372
|
};
|
|
181365
181373
|
for (const [importerId, importer] of Object.entries(lockfile.importers)) {
|
|
181366
181374
|
if (importerId === ".")
|
|
@@ -181371,11 +181379,11 @@ var require_lib135 = __commonJS({
|
|
|
181371
181379
|
reference: `workspace:${importerId}`,
|
|
181372
181380
|
peerNames: /* @__PURE__ */ new Set([]),
|
|
181373
181381
|
dependencyKind: nm_1.HoisterDependencyKind.WORKSPACE,
|
|
181374
|
-
dependencies:
|
|
181382
|
+
dependencies: _toTree({
|
|
181375
181383
|
...importer.dependencies,
|
|
181376
181384
|
...importer.devDependencies,
|
|
181377
181385
|
...importer.optionalDependencies
|
|
181378
|
-
}
|
|
181386
|
+
})
|
|
181379
181387
|
};
|
|
181380
181388
|
node.dependencies.add(importerNode);
|
|
181381
181389
|
}
|
|
@@ -181390,7 +181398,7 @@ var require_lib135 = __commonJS({
|
|
|
181390
181398
|
return hoisterResult;
|
|
181391
181399
|
}
|
|
181392
181400
|
exports2.hoist = hoist;
|
|
181393
|
-
function toTree(nodes, lockfile,
|
|
181401
|
+
function toTree({ nodes, lockfile, depPathByPkgId, autoInstallPeers }, deps) {
|
|
181394
181402
|
return new Set(Object.entries(deps).map(([alias, ref]) => {
|
|
181395
181403
|
const depPath = dp.refToRelative(ref, alias);
|
|
181396
181404
|
if (!depPath) {
|
|
@@ -181416,11 +181424,15 @@ var require_lib135 = __commonJS({
|
|
|
181416
181424
|
if (!pkgSnapshot) {
|
|
181417
181425
|
throw new error_1.LockfileMissingDependencyError(depPath);
|
|
181418
181426
|
}
|
|
181419
|
-
const pkgName = (0, lockfile_utils_1.nameVerFromPkgSnapshot)(depPath, pkgSnapshot)
|
|
181427
|
+
const { name: pkgName, version: version2 } = (0, lockfile_utils_1.nameVerFromPkgSnapshot)(depPath, pkgSnapshot);
|
|
181428
|
+
const id = `${pkgName}@${version2}`;
|
|
181429
|
+
if (!depPathByPkgId.has(id)) {
|
|
181430
|
+
depPathByPkgId.set(id, depPath);
|
|
181431
|
+
}
|
|
181420
181432
|
node = {
|
|
181421
181433
|
name: alias,
|
|
181422
181434
|
identName: pkgName,
|
|
181423
|
-
reference:
|
|
181435
|
+
reference: depPathByPkgId.get(id),
|
|
181424
181436
|
dependencyKind: nm_1.HoisterDependencyKind.REGULAR,
|
|
181425
181437
|
dependencies: /* @__PURE__ */ new Set(),
|
|
181426
181438
|
peerNames: new Set(autoInstallPeers ? [] : [
|
|
@@ -181429,7 +181441,7 @@ var require_lib135 = __commonJS({
|
|
|
181429
181441
|
])
|
|
181430
181442
|
};
|
|
181431
181443
|
nodes.set(key, node);
|
|
181432
|
-
node.dependencies = toTree(nodes, lockfile, { ...pkgSnapshot.dependencies, ...pkgSnapshot.optionalDependencies });
|
|
181444
|
+
node.dependencies = toTree({ nodes, lockfile, depPathByPkgId, autoInstallPeers }, { ...pkgSnapshot.dependencies, ...pkgSnapshot.optionalDependencies });
|
|
181433
181445
|
}
|
|
181434
181446
|
return node;
|
|
181435
181447
|
}));
|