pnpm 8.3.0-0 → 8.3.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.
- package/README.md +11 -0
- package/dist/node_modules/.modules.yaml +1 -1
- package/dist/pnpm.cjs +24 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -105,6 +105,17 @@ To quote the [Rush](https://rushjs.io/) team:
|
|
|
105
105
|
</a>
|
|
106
106
|
</td>
|
|
107
107
|
</tr>
|
|
108
|
+
<tr>
|
|
109
|
+
<td align="center" valign="middle">
|
|
110
|
+
<a href="https://www.thinkmill.com.au/?utm_source=pnpm&utm_medium=readme" target="_blank">
|
|
111
|
+
<picture>
|
|
112
|
+
<source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/thinkmill.svg" />
|
|
113
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/thinkmill_light.svg" />
|
|
114
|
+
<img src="https://pnpm.io/img/users/thinkmill.svg" width="200" />
|
|
115
|
+
</picture>
|
|
116
|
+
</a>
|
|
117
|
+
</td>
|
|
118
|
+
</tr>
|
|
108
119
|
</tbody>
|
|
109
120
|
</table>
|
|
110
121
|
|
package/dist/pnpm.cjs
CHANGED
|
@@ -3249,7 +3249,7 @@ var require_lib4 = __commonJS({
|
|
|
3249
3249
|
var load_json_file_1 = __importDefault3(require_load_json_file());
|
|
3250
3250
|
var defaultManifest = {
|
|
3251
3251
|
name: true ? "pnpm" : "pnpm",
|
|
3252
|
-
version: true ? "8.3.0
|
|
3252
|
+
version: true ? "8.3.0" : "0.0.0"
|
|
3253
3253
|
};
|
|
3254
3254
|
var pkgJson;
|
|
3255
3255
|
if (require.main == null) {
|
|
@@ -45178,11 +45178,14 @@ var require_reportSummary = __commonJS({
|
|
|
45178
45178
|
function reportSummary(log$, opts) {
|
|
45179
45179
|
const pkgsDiff$ = (0, pkgsDiff_1.getPkgsDiff)(log$, { prefix: opts.cwd });
|
|
45180
45180
|
const summaryLog$ = log$.summary.pipe((0, operators_1.take)(1));
|
|
45181
|
-
const _printDiffs = printDiffs.bind(null, { prefix: opts.cwd
|
|
45181
|
+
const _printDiffs = printDiffs.bind(null, { prefix: opts.cwd });
|
|
45182
45182
|
return Rx.combineLatest(pkgsDiff$, summaryLog$).pipe((0, operators_1.take)(1), (0, operators_1.map)(([pkgsDiff]) => {
|
|
45183
45183
|
let msg = "";
|
|
45184
45184
|
for (const depType of ["prod", "optional", "peer", "dev", "nodeModulesOnly"]) {
|
|
45185
|
-
|
|
45185
|
+
let diffs = Object.values(pkgsDiff[depType]);
|
|
45186
|
+
if (opts.filterPkgsDiff) {
|
|
45187
|
+
diffs = diffs.filter((pkgDiff) => opts.filterPkgsDiff(pkgDiff));
|
|
45188
|
+
}
|
|
45186
45189
|
if (diffs.length > 0) {
|
|
45187
45190
|
msg += constants_1.EOL;
|
|
45188
45191
|
if (opts.pnpmConfig?.global) {
|
|
@@ -45207,9 +45210,6 @@ var require_reportSummary = __commonJS({
|
|
|
45207
45210
|
}
|
|
45208
45211
|
exports2.reportSummary = reportSummary;
|
|
45209
45212
|
function printDiffs(opts, pkgsDiff) {
|
|
45210
|
-
if (opts.filterPkgsDiff) {
|
|
45211
|
-
pkgsDiff = pkgsDiff.filter((pkgDiff) => opts.filterPkgsDiff(pkgDiff));
|
|
45212
|
-
}
|
|
45213
45213
|
pkgsDiff.sort((a, b) => a.name.localeCompare(b.name) * 10 + (Number(!b.added) - Number(!a.added)));
|
|
45214
45214
|
const msg = pkgsDiff.map((pkg) => {
|
|
45215
45215
|
let result2 = pkg.added ? outputConstants_1.ADDED_CHAR : outputConstants_1.REMOVED_CHAR;
|
|
@@ -114191,10 +114191,12 @@ var require_satisfiesPackageManifest = __commonJS({
|
|
|
114191
114191
|
};
|
|
114192
114192
|
}
|
|
114193
114193
|
const pickNonLinkedDeps = (0, pickBy_1.default)((spec) => !spec.startsWith("link:"));
|
|
114194
|
+
let specs = importer.specifiers;
|
|
114194
114195
|
if (opts?.excludeLinksFromLockfile) {
|
|
114195
114196
|
existingDeps = pickNonLinkedDeps(existingDeps);
|
|
114197
|
+
specs = pickNonLinkedDeps(specs);
|
|
114196
114198
|
}
|
|
114197
|
-
if (!(0, equals_1.default)(existingDeps,
|
|
114199
|
+
if (!(0, equals_1.default)(existingDeps, specs) || importer.publishDirectory !== pkg.publishConfig?.directory) {
|
|
114198
114200
|
return false;
|
|
114199
114201
|
}
|
|
114200
114202
|
if (!(0, equals_1.default)(pkg.dependenciesMeta ?? {}, importer.dependenciesMeta ?? {}))
|
|
@@ -180705,7 +180707,7 @@ var require_lib131 = __commonJS({
|
|
|
180705
180707
|
if (!filteredLockfile.importers[id][depType]) {
|
|
180706
180708
|
filteredLockfile.importers[id][depType] = {};
|
|
180707
180709
|
}
|
|
180708
|
-
filteredLockfile.importers[id][depType][depName] = spec
|
|
180710
|
+
filteredLockfile.importers[id][depType][depName] = `link:${path_1.default.relative(opts.lockfileDir, spec.substring(5))}`;
|
|
180709
180711
|
}
|
|
180710
180712
|
}
|
|
180711
180713
|
}
|
|
@@ -186439,6 +186441,7 @@ var require_extendInstallOptions = __commonJS({
|
|
|
186439
186441
|
enablePnp: false,
|
|
186440
186442
|
engineStrict: false,
|
|
186441
186443
|
force: false,
|
|
186444
|
+
forceFullResolution: false,
|
|
186442
186445
|
forceSharedLockfile: false,
|
|
186443
186446
|
frozenLockfile: false,
|
|
186444
186447
|
hoistPattern: void 0,
|
|
@@ -187147,7 +187150,7 @@ var require_install = __commonJS({
|
|
|
187147
187150
|
onlyBuiltDependencies: opts.onlyBuiltDependencies,
|
|
187148
187151
|
packageExtensionsChecksum,
|
|
187149
187152
|
patchedDependencies
|
|
187150
|
-
}) || opts.fixLockfile || !ctx.wantedLockfile.lockfileVersion.toString().startsWith("6.");
|
|
187153
|
+
}) || opts.fixLockfile || !ctx.wantedLockfile.lockfileVersion.toString().startsWith("6.") || opts.forceFullResolution;
|
|
187151
187154
|
if (needsFullResolution) {
|
|
187152
187155
|
ctx.wantedLockfile.overrides = opts.overrides;
|
|
187153
187156
|
ctx.wantedLockfile.neverBuiltDependencies = opts.neverBuiltDependencies;
|
|
@@ -189509,6 +189512,7 @@ var require_install2 = __commonJS({
|
|
|
189509
189512
|
...rcOptionsTypes(),
|
|
189510
189513
|
...(0, pick_1.default)(["force"], config_1.types),
|
|
189511
189514
|
"fix-lockfile": Boolean,
|
|
189515
|
+
"resolution-only": Boolean,
|
|
189512
189516
|
recursive: Boolean
|
|
189513
189517
|
});
|
|
189514
189518
|
exports2.cliOptionsTypes = cliOptionsTypes;
|
|
@@ -189654,6 +189658,10 @@ var require_install2 = __commonJS({
|
|
|
189654
189658
|
description: "Only use the side effects cache if present, do not create it for new packages",
|
|
189655
189659
|
name: "--side-effects-cache-readonly"
|
|
189656
189660
|
},
|
|
189661
|
+
{
|
|
189662
|
+
description: "Re-runs resolution: useful for printing out peer dependency issues",
|
|
189663
|
+
name: "--resolution-only"
|
|
189664
|
+
},
|
|
189657
189665
|
...common_cli_options_help_1.UNIVERSAL_OPTIONS
|
|
189658
189666
|
]
|
|
189659
189667
|
},
|
|
@@ -189671,12 +189679,17 @@ var require_install2 = __commonJS({
|
|
|
189671
189679
|
devDependencies: opts.dev !== false,
|
|
189672
189680
|
optionalDependencies: opts.optional !== false
|
|
189673
189681
|
};
|
|
189674
|
-
|
|
189682
|
+
const installDepsOptions = {
|
|
189675
189683
|
...opts,
|
|
189676
189684
|
frozenLockfileIfExists: ci_info_1.isCI && !opts.lockfileOnly && typeof opts.rawLocalConfig["frozen-lockfile"] === "undefined" && typeof opts.rawLocalConfig["prefer-frozen-lockfile"] === "undefined",
|
|
189677
189685
|
include,
|
|
189678
189686
|
includeDirect: include
|
|
189679
|
-
}
|
|
189687
|
+
};
|
|
189688
|
+
if (opts.resolutionOnly) {
|
|
189689
|
+
installDepsOptions.lockfileOnly = true;
|
|
189690
|
+
installDepsOptions.forceFullResolution = true;
|
|
189691
|
+
}
|
|
189692
|
+
return (0, installDeps_1.installDeps)(installDepsOptions, []);
|
|
189680
189693
|
}
|
|
189681
189694
|
exports2.handler = handler;
|
|
189682
189695
|
}
|