pnpm 10.18.0 → 10.18.1
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.
|
@@ -16,9 +16,9 @@ hoistedLocations:
|
|
|
16
16
|
agent-base@7.1.4:
|
|
17
17
|
- node_modules/agent-base
|
|
18
18
|
ansi-regex@5.0.1:
|
|
19
|
-
- node_modules/string-width-cjs/node_modules/ansi-regex
|
|
20
|
-
- node_modules/wrap-ansi-cjs/node_modules/ansi-regex
|
|
21
19
|
- node_modules/strip-ansi-cjs/node_modules/ansi-regex
|
|
20
|
+
- node_modules/wrap-ansi-cjs/node_modules/ansi-regex
|
|
21
|
+
- node_modules/string-width-cjs/node_modules/ansi-regex
|
|
22
22
|
ansi-regex@6.2.2:
|
|
23
23
|
- node_modules/ansi-regex
|
|
24
24
|
ansi-styles@4.3.0:
|
|
@@ -44,8 +44,8 @@ hoistedLocations:
|
|
|
44
44
|
eastasianwidth@0.2.0:
|
|
45
45
|
- node_modules/eastasianwidth
|
|
46
46
|
emoji-regex@8.0.0:
|
|
47
|
-
- node_modules/string-width-cjs/node_modules/emoji-regex
|
|
48
47
|
- node_modules/wrap-ansi-cjs/node_modules/emoji-regex
|
|
48
|
+
- node_modules/string-width-cjs/node_modules/emoji-regex
|
|
49
49
|
emoji-regex@9.2.2:
|
|
50
50
|
- node_modules/emoji-regex
|
|
51
51
|
encoding@0.1.13:
|
|
@@ -154,8 +154,8 @@ hoistedLocations:
|
|
|
154
154
|
string-width@5.1.2:
|
|
155
155
|
- node_modules/string-width
|
|
156
156
|
strip-ansi@6.0.1:
|
|
157
|
-
- node_modules/string-width-cjs/node_modules/strip-ansi
|
|
158
157
|
- node_modules/wrap-ansi-cjs/node_modules/strip-ansi
|
|
158
|
+
- node_modules/string-width-cjs/node_modules/strip-ansi
|
|
159
159
|
- node_modules/strip-ansi-cjs
|
|
160
160
|
strip-ansi@7.1.2:
|
|
161
161
|
- node_modules/strip-ansi
|
|
@@ -190,7 +190,7 @@ layoutVersion: 5
|
|
|
190
190
|
nodeLinker: hoisted
|
|
191
191
|
packageManager: pnpm@10.16.1
|
|
192
192
|
pendingBuilds: []
|
|
193
|
-
prunedAt:
|
|
193
|
+
prunedAt: Mon, 06 Oct 2025 12:26:34 GMT
|
|
194
194
|
publicHoistPattern: []
|
|
195
195
|
registries:
|
|
196
196
|
'@jsr': https://npm.jsr.io/
|
package/dist/pnpm.cjs
CHANGED
|
@@ -5754,7 +5754,7 @@ var require_lib4 = __commonJS({
|
|
|
5754
5754
|
var load_json_file_1 = __importDefault2(require_load_json_file());
|
|
5755
5755
|
var defaultManifest = {
|
|
5756
5756
|
name: true ? "pnpm" : "pnpm",
|
|
5757
|
-
version: true ? "10.18.
|
|
5757
|
+
version: true ? "10.18.1" : "0.0.0"
|
|
5758
5758
|
};
|
|
5759
5759
|
var pkgJson;
|
|
5760
5760
|
if (require.main == null) {
|
|
@@ -153279,12 +153279,15 @@ var require_resolveDependencyTree = __commonJS({
|
|
|
153279
153279
|
for (const directDependencies of pkgAddressesByImporters) {
|
|
153280
153280
|
for (const directDep of directDependencies) {
|
|
153281
153281
|
const { alias, normalizedBareSpecifier, version: version2, saveCatalogName } = directDep;
|
|
153282
|
+
if (saveCatalogName == null) {
|
|
153283
|
+
continue;
|
|
153284
|
+
}
|
|
153282
153285
|
const existingCatalog = opts.catalogs?.default?.[alias];
|
|
153283
153286
|
if (existingCatalog != null) {
|
|
153284
153287
|
if (existingCatalog !== normalizedBareSpecifier) {
|
|
153285
153288
|
(0, logger_1.globalWarn)(`Skip adding ${alias} to the default catalog because it already exists as ${existingCatalog}. Please use \`pnpm update\` to update the catalogs.`);
|
|
153286
153289
|
}
|
|
153287
|
-
} else if (
|
|
153290
|
+
} else if (normalizedBareSpecifier != null && version2 != null) {
|
|
153288
153291
|
const userSpecifiedBareSpecifier = `catalog:${saveCatalogName === "default" ? "" : saveCatalogName}`;
|
|
153289
153292
|
directDep.catalogLookup = {
|
|
153290
153293
|
catalogName: saveCatalogName,
|
|
@@ -159738,12 +159741,6 @@ Note that in CI environments, this setting is enabled by default.`
|
|
|
159738
159741
|
ignoredBuilds
|
|
159739
159742
|
};
|
|
159740
159743
|
}
|
|
159741
|
-
if (opts.lockfileOnly && ctx.existsCurrentLockfile) {
|
|
159742
|
-
logger_1.logger.warn({
|
|
159743
|
-
message: "`node_modules` is present. Lockfile only installation will make it out-of-date",
|
|
159744
|
-
prefix: ctx.lockfileDir
|
|
159745
|
-
});
|
|
159746
|
-
}
|
|
159747
159744
|
return await _installInContext(projects, ctx, opts);
|
|
159748
159745
|
} catch (error) {
|
|
159749
159746
|
if (!BROKEN_LOCKFILE_INTEGRITY_ERRORS.has(error.code) || !ctx.existsNonEmptyWantedLockfile && !ctx.existsCurrentLockfile)
|
|
@@ -196421,6 +196418,7 @@ var require_setup = __commonJS({
|
|
|
196421
196418
|
var os_env_path_extender_1 = require_dist31();
|
|
196422
196419
|
var render_help_1 = __importDefault2(require_lib108());
|
|
196423
196420
|
var rimraf_1 = __importDefault2(require_rimraf());
|
|
196421
|
+
var cmd_shim_1 = __importDefault2(require_cmd_shim());
|
|
196424
196422
|
var rcOptionsTypes = () => ({});
|
|
196425
196423
|
exports2.rcOptionsTypes = rcOptionsTypes;
|
|
196426
196424
|
var cliOptionsTypes = () => ({
|
|
@@ -196454,17 +196452,21 @@ var require_setup = __commonJS({
|
|
|
196454
196452
|
}
|
|
196455
196453
|
return require.main != null ? require.main.filename : process.cwd();
|
|
196456
196454
|
}
|
|
196457
|
-
function copyCli(currentLocation, targetDir) {
|
|
196458
|
-
const
|
|
196455
|
+
async function copyCli(currentLocation, targetDir) {
|
|
196456
|
+
const toolsDir = path_1.default.join(targetDir, ".tools/pnpm-exe", cli_meta_1.packageManager.version);
|
|
196457
|
+
const newExecPath = path_1.default.join(toolsDir, path_1.default.basename(currentLocation));
|
|
196459
196458
|
if (path_1.default.relative(newExecPath, currentLocation) === "")
|
|
196460
196459
|
return;
|
|
196461
196460
|
logger_1.logger.info({
|
|
196462
196461
|
message: `Copying pnpm CLI from ${currentLocation} to ${newExecPath}`,
|
|
196463
196462
|
prefix: process.cwd()
|
|
196464
196463
|
});
|
|
196465
|
-
fs_1.default.mkdirSync(
|
|
196464
|
+
fs_1.default.mkdirSync(toolsDir, { recursive: true });
|
|
196466
196465
|
rimraf_1.default.sync(newExecPath);
|
|
196467
196466
|
fs_1.default.copyFileSync(currentLocation, newExecPath);
|
|
196467
|
+
await (0, cmd_shim_1.default)(newExecPath, path_1.default.join(targetDir, "pnpm"), {
|
|
196468
|
+
createPwshFile: false
|
|
196469
|
+
});
|
|
196468
196470
|
}
|
|
196469
196471
|
function createPnpxScripts(targetDir) {
|
|
196470
196472
|
fs_1.default.mkdirSync(targetDir, { recursive: true });
|
|
@@ -196486,7 +196488,7 @@ var require_setup = __commonJS({
|
|
|
196486
196488
|
async function handler(opts) {
|
|
196487
196489
|
const execPath = getExecPath();
|
|
196488
196490
|
if (execPath.match(/\.[cm]?js$/) == null) {
|
|
196489
|
-
copyCli(execPath, opts.pnpmHomeDir);
|
|
196491
|
+
await copyCli(execPath, opts.pnpmHomeDir);
|
|
196490
196492
|
createPnpxScripts(opts.pnpmHomeDir);
|
|
196491
196493
|
}
|
|
196492
196494
|
try {
|