pnpm 7.32.5 → 7.33.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.
- package/dist/node_modules/.modules.yaml +1 -1
- package/dist/pnpm.cjs +165 -66
- package/package.json +1 -1
package/dist/pnpm.cjs
CHANGED
|
@@ -3244,7 +3244,7 @@ var require_lib4 = __commonJS({
|
|
|
3244
3244
|
var load_json_file_1 = __importDefault3(require_load_json_file());
|
|
3245
3245
|
var defaultManifest = {
|
|
3246
3246
|
name: true ? "pnpm" : "pnpm",
|
|
3247
|
-
version: true ? "7.
|
|
3247
|
+
version: true ? "7.33.1" : "0.0.0"
|
|
3248
3248
|
};
|
|
3249
3249
|
var pkgJson;
|
|
3250
3250
|
if (require.main == null) {
|
|
@@ -111940,13 +111940,15 @@ var require_lib69 = __commonJS({
|
|
|
111940
111940
|
});
|
|
111941
111941
|
} catch (err) {
|
|
111942
111942
|
if (workspacePackages != null && opts.projectDir) {
|
|
111943
|
-
|
|
111944
|
-
|
|
111945
|
-
|
|
111946
|
-
|
|
111947
|
-
|
|
111948
|
-
|
|
111949
|
-
|
|
111943
|
+
try {
|
|
111944
|
+
return tryResolveFromWorkspacePackages(workspacePackages, spec, {
|
|
111945
|
+
wantedDependency,
|
|
111946
|
+
projectDir: opts.projectDir,
|
|
111947
|
+
lockfileDir: opts.lockfileDir,
|
|
111948
|
+
hardLinkLocalPackages: wantedDependency.injected
|
|
111949
|
+
});
|
|
111950
|
+
} catch {
|
|
111951
|
+
}
|
|
111950
111952
|
}
|
|
111951
111953
|
throw err;
|
|
111952
111954
|
}
|
|
@@ -111954,13 +111956,15 @@ var require_lib69 = __commonJS({
|
|
|
111954
111956
|
const meta = pickResult.meta;
|
|
111955
111957
|
if (pickedPackage == null) {
|
|
111956
111958
|
if (workspacePackages != null && opts.projectDir) {
|
|
111957
|
-
|
|
111958
|
-
|
|
111959
|
-
|
|
111960
|
-
|
|
111961
|
-
|
|
111962
|
-
|
|
111963
|
-
|
|
111959
|
+
try {
|
|
111960
|
+
return tryResolveFromWorkspacePackages(workspacePackages, spec, {
|
|
111961
|
+
wantedDependency,
|
|
111962
|
+
projectDir: opts.projectDir,
|
|
111963
|
+
lockfileDir: opts.lockfileDir,
|
|
111964
|
+
hardLinkLocalPackages: wantedDependency.injected
|
|
111965
|
+
});
|
|
111966
|
+
} catch {
|
|
111967
|
+
}
|
|
111964
111968
|
}
|
|
111965
111969
|
throw new NoMatchingVersionError({ wantedDependency, packageMeta: meta });
|
|
111966
111970
|
}
|
|
@@ -112017,22 +112021,23 @@ var require_lib69 = __commonJS({
|
|
|
112017
112021
|
if (!opts.projectDir) {
|
|
112018
112022
|
throw new Error("Cannot resolve package from workspace because opts.projectDir is not defined");
|
|
112019
112023
|
}
|
|
112020
|
-
|
|
112024
|
+
return tryResolveFromWorkspacePackages(opts.workspacePackages, spec, {
|
|
112025
|
+
wantedDependency,
|
|
112021
112026
|
projectDir: opts.projectDir,
|
|
112022
112027
|
hardLinkLocalPackages: wantedDependency.injected,
|
|
112023
112028
|
lockfileDir: opts.lockfileDir
|
|
112024
112029
|
});
|
|
112025
|
-
if (resolvedFromLocal == null) {
|
|
112026
|
-
throw new error_1.PnpmError("NO_MATCHING_VERSION_INSIDE_WORKSPACE", `In ${path_1.default.relative(process.cwd(), opts.projectDir)}: No matching version found for ${wantedDependency.alias ?? ""}@${pref} inside the workspace`);
|
|
112027
|
-
}
|
|
112028
|
-
return resolvedFromLocal;
|
|
112029
112030
|
}
|
|
112030
112031
|
function tryResolveFromWorkspacePackages(workspacePackages, spec, opts) {
|
|
112031
|
-
if (!workspacePackages[spec.name])
|
|
112032
|
-
|
|
112032
|
+
if (!workspacePackages[spec.name]) {
|
|
112033
|
+
throw new error_1.PnpmError("WORKSPACE_PKG_NOT_FOUND", `In ${path_1.default.relative(process.cwd(), opts.projectDir)}: "${spec.name}@${opts.wantedDependency.pref ?? ""}" is in the dependencies but no package named "${spec.name}" is present in the workspace`, {
|
|
112034
|
+
hint: "Packages found in the workspace: " + Object.keys(workspacePackages).join(", ")
|
|
112035
|
+
});
|
|
112036
|
+
}
|
|
112033
112037
|
const localVersion = pickMatchingLocalVersionOrNull(workspacePackages[spec.name], spec);
|
|
112034
|
-
if (!localVersion)
|
|
112035
|
-
|
|
112038
|
+
if (!localVersion) {
|
|
112039
|
+
throw new error_1.PnpmError("NO_MATCHING_VERSION_INSIDE_WORKSPACE", `In ${path_1.default.relative(process.cwd(), opts.projectDir)}: No matching version found for ${opts.wantedDependency.alias ?? ""}@${opts.wantedDependency.pref ?? ""} inside the workspace`);
|
|
112040
|
+
}
|
|
112036
112041
|
return resolveFromLocalPackage(workspacePackages[spec.name][localVersion], spec.normalizedPref, opts);
|
|
112037
112042
|
}
|
|
112038
112043
|
function pickMatchingLocalVersionOrNull(versions, spec) {
|
|
@@ -113548,12 +113553,13 @@ var require_sortLockfileKeys = __commonJS({
|
|
|
113548
113553
|
};
|
|
113549
113554
|
var ROOT_KEYS_ORDER = {
|
|
113550
113555
|
lockfileVersion: 1,
|
|
113556
|
+
settings: 2,
|
|
113551
113557
|
// only and never are conflict options.
|
|
113552
|
-
neverBuiltDependencies:
|
|
113553
|
-
onlyBuiltDependencies:
|
|
113554
|
-
overrides:
|
|
113555
|
-
packageExtensionsChecksum:
|
|
113556
|
-
patchedDependencies:
|
|
113558
|
+
neverBuiltDependencies: 3,
|
|
113559
|
+
onlyBuiltDependencies: 3,
|
|
113560
|
+
overrides: 4,
|
|
113561
|
+
packageExtensionsChecksum: 5,
|
|
113562
|
+
patchedDependencies: 6,
|
|
113557
113563
|
specifiers: 10,
|
|
113558
113564
|
dependencies: 11,
|
|
113559
113565
|
optionalDependencies: 12,
|
|
@@ -113762,7 +113768,7 @@ var require_inlineSpecifiersLockfileConverters = __commonJS({
|
|
|
113762
113768
|
}
|
|
113763
113769
|
let revertedImporters = mapValues(importers, revertProjectSnapshot);
|
|
113764
113770
|
let packages = lockfile.packages;
|
|
113765
|
-
if (
|
|
113771
|
+
if (originalVersionStr.startsWith("6.")) {
|
|
113766
113772
|
revertedImporters = Object.fromEntries(Object.entries(revertedImporters ?? {}).map(([importerId, pkgSnapshot]) => {
|
|
113767
113773
|
const newSnapshot = { ...pkgSnapshot };
|
|
113768
113774
|
if (newSnapshot.dependencies != null) {
|
|
@@ -113793,7 +113799,7 @@ var require_inlineSpecifiersLockfileConverters = __commonJS({
|
|
|
113793
113799
|
packages,
|
|
113794
113800
|
importers: revertedImporters
|
|
113795
113801
|
};
|
|
113796
|
-
if (
|
|
113802
|
+
if (originalVersionStr.startsWith("6.") && newLockfile.time) {
|
|
113797
113803
|
newLockfile.time = Object.fromEntries(Object.entries(newLockfile.time).map(([depPath, time]) => [convertLockfileV6DepPathToV5DepPath(depPath), time]));
|
|
113798
113804
|
}
|
|
113799
113805
|
return newLockfile;
|
|
@@ -114012,8 +114018,12 @@ var require_write = __commonJS({
|
|
|
114012
114018
|
delete lockfileToSave.packages;
|
|
114013
114019
|
}
|
|
114014
114020
|
}
|
|
114021
|
+
const isLockfileV6 = lockfileToSave.lockfileVersion.toString().startsWith("6.");
|
|
114022
|
+
if (!isLockfileV6) {
|
|
114023
|
+
delete lockfileToSave["settings"];
|
|
114024
|
+
}
|
|
114015
114025
|
if (lockfileToSave.time) {
|
|
114016
|
-
lockfileToSave.time = (
|
|
114026
|
+
lockfileToSave.time = (isLockfileV6 ? pruneTimeInLockfileV6 : pruneTime)(lockfileToSave.time, lockfile.importers);
|
|
114017
114027
|
}
|
|
114018
114028
|
if (lockfileToSave.overrides != null && (0, isEmpty_1.default)(lockfileToSave.overrides)) {
|
|
114019
114029
|
delete lockfileToSave.overrides;
|
|
@@ -114466,7 +114476,7 @@ var require_read = __commonJS({
|
|
|
114466
114476
|
if (!opts.wantedVersions || opts.wantedVersions.length === 0 || opts.wantedVersions.some((wantedVersion) => {
|
|
114467
114477
|
if (semver_12.default.major(lockfileSemver) !== semver_12.default.major((0, comver_to_semver_1.default)(wantedVersion)))
|
|
114468
114478
|
return false;
|
|
114469
|
-
if (semver_12.default.gt(lockfileSemver, (0, comver_to_semver_1.default)(wantedVersion))) {
|
|
114479
|
+
if (lockfile.lockfileVersion !== "6.1" && semver_12.default.gt(lockfileSemver, (0, comver_to_semver_1.default)(wantedVersion))) {
|
|
114470
114480
|
logger_1.lockfileLogger.warn({
|
|
114471
114481
|
message: `Your ${constants_1.WANTED_LOCKFILE} was generated by a newer version of pnpm. It is a compatible version but it might get downgraded to version ${wantedVersion}`,
|
|
114472
114482
|
prefix
|
|
@@ -114496,7 +114506,11 @@ var require_read = __commonJS({
|
|
|
114496
114506
|
}, {});
|
|
114497
114507
|
return {
|
|
114498
114508
|
importers,
|
|
114499
|
-
lockfileVersion: opts.lockfileVersion || constants_1.LOCKFILE_VERSION
|
|
114509
|
+
lockfileVersion: opts.lockfileVersion || constants_1.LOCKFILE_VERSION,
|
|
114510
|
+
settings: {
|
|
114511
|
+
autoInstallPeers: opts.autoInstallPeers,
|
|
114512
|
+
excludeLinksFromLockfile: false
|
|
114513
|
+
}
|
|
114500
114514
|
};
|
|
114501
114515
|
}
|
|
114502
114516
|
exports2.createLockfileObject = createLockfileObject;
|
|
@@ -125765,7 +125779,10 @@ var require_readLockfiles = __commonJS({
|
|
|
125765
125779
|
}
|
|
125766
125780
|
})());
|
|
125767
125781
|
const files = await Promise.all(fileReads);
|
|
125768
|
-
const sopts = {
|
|
125782
|
+
const sopts = {
|
|
125783
|
+
autoInstallPeers: opts.autoInstallPeers,
|
|
125784
|
+
lockfileVersion: wantedLockfileVersion
|
|
125785
|
+
};
|
|
125769
125786
|
const importerIds = opts.projects.map((importer) => importer.id);
|
|
125770
125787
|
const currentLockfile = files[1] ?? (0, lockfile_file_1.createLockfileObject)(importerIds, sopts);
|
|
125771
125788
|
for (const importerId of importerIds) {
|
|
@@ -125899,6 +125916,7 @@ var require_lib107 = __commonJS({
|
|
|
125899
125916
|
storeDir: opts.storeDir,
|
|
125900
125917
|
virtualStoreDir,
|
|
125901
125918
|
...await (0, readLockfiles_1.readLockfiles)({
|
|
125919
|
+
autoInstallPeers: opts.autoInstallPeers,
|
|
125902
125920
|
force: opts.force,
|
|
125903
125921
|
forceSharedLockfile: opts.forceSharedLockfile,
|
|
125904
125922
|
frozenLockfile: opts.frozenLockfile === true,
|
|
@@ -126073,6 +126091,7 @@ var require_lib107 = __commonJS({
|
|
|
126073
126091
|
storeDir,
|
|
126074
126092
|
virtualStoreDir,
|
|
126075
126093
|
...await (0, readLockfiles_1.readLockfiles)({
|
|
126094
|
+
autoInstallPeers: opts.autoInstallPeers,
|
|
126076
126095
|
force: opts.force,
|
|
126077
126096
|
forceSharedLockfile: opts.forceSharedLockfile,
|
|
126078
126097
|
frozenLockfile: false,
|
|
@@ -180816,6 +180835,10 @@ var require_lib131 = __commonJS({
|
|
|
180816
180835
|
spec = spec.slice("workspace:".length);
|
|
180817
180836
|
if (spec === "*")
|
|
180818
180837
|
return isWorkspaceProtocol ? "patch" : "none";
|
|
180838
|
+
if (spec.startsWith("npm:")) {
|
|
180839
|
+
const index = spec.lastIndexOf("@");
|
|
180840
|
+
spec = spec.slice(index + 1);
|
|
180841
|
+
}
|
|
180819
180842
|
const parsedRange = (0, semver_utils_1.parseRange)(spec);
|
|
180820
180843
|
if (parsedRange.length !== 1)
|
|
180821
180844
|
return void 0;
|
|
@@ -193469,12 +193492,10 @@ var require_resolvePeers = __commonJS({
|
|
|
193469
193492
|
dependenciesByProjectId[id] = (0, map_1.default)((nodeId) => pathsByNodeId[nodeId], directNodeIdsByAlias);
|
|
193470
193493
|
}
|
|
193471
193494
|
if (opts.dedupePeerDependents) {
|
|
193472
|
-
const
|
|
193473
|
-
|
|
193474
|
-
node.children = (0, map_1.default)((childDepPath) => depPathsMap[childDepPath] ?? childDepPath, node.children);
|
|
193475
|
-
});
|
|
193495
|
+
const duplicates = Object.values(depPathsByPkgId).filter((item) => item.length > 1);
|
|
193496
|
+
const allDepPathsMap = deduplicateAll(depGraph, duplicates);
|
|
193476
193497
|
for (const { id } of opts.projects) {
|
|
193477
|
-
dependenciesByProjectId[id] = (0, map_1.default)((depPath) =>
|
|
193498
|
+
dependenciesByProjectId[id] = (0, map_1.default)((depPath) => allDepPathsMap[depPath] ?? depPath, dependenciesByProjectId[id]);
|
|
193478
193499
|
}
|
|
193479
193500
|
}
|
|
193480
193501
|
return {
|
|
@@ -193487,13 +193508,29 @@ var require_resolvePeers = __commonJS({
|
|
|
193487
193508
|
function nodeDepsCount(node) {
|
|
193488
193509
|
return Object.keys(node.children).length + node.resolvedPeerNames.length;
|
|
193489
193510
|
}
|
|
193490
|
-
function
|
|
193511
|
+
function deduplicateAll(depGraph, duplicates) {
|
|
193512
|
+
const { depPathsMap, remainingDuplicates } = deduplicateDepPaths(duplicates, depGraph);
|
|
193513
|
+
if (remainingDuplicates.length === duplicates.length) {
|
|
193514
|
+
return depPathsMap;
|
|
193515
|
+
}
|
|
193516
|
+
Object.values(depGraph).forEach((node) => {
|
|
193517
|
+
node.children = (0, map_1.default)((childDepPath) => depPathsMap[childDepPath] ?? childDepPath, node.children);
|
|
193518
|
+
});
|
|
193519
|
+
if (Object.keys(depPathsMap).length > 0) {
|
|
193520
|
+
return {
|
|
193521
|
+
...depPathsMap,
|
|
193522
|
+
...deduplicateAll(depGraph, remainingDuplicates)
|
|
193523
|
+
};
|
|
193524
|
+
}
|
|
193525
|
+
return depPathsMap;
|
|
193526
|
+
}
|
|
193527
|
+
function deduplicateDepPaths(duplicates, depGraph) {
|
|
193528
|
+
const depCountSorter = (depPath1, depPath2) => nodeDepsCount(depGraph[depPath1]) - nodeDepsCount(depGraph[depPath2]);
|
|
193491
193529
|
const depPathsMap = {};
|
|
193492
|
-
|
|
193493
|
-
|
|
193494
|
-
|
|
193495
|
-
|
|
193496
|
-
let currentDepPaths = depPaths;
|
|
193530
|
+
const remainingDuplicates = [];
|
|
193531
|
+
for (const depPaths of duplicates) {
|
|
193532
|
+
const unresolvedDepPaths = new Set(depPaths);
|
|
193533
|
+
let currentDepPaths = depPaths.sort(depCountSorter);
|
|
193497
193534
|
while (currentDepPaths.length) {
|
|
193498
193535
|
const depPath1 = currentDepPaths.pop();
|
|
193499
193536
|
const nextDepPaths = [];
|
|
@@ -193501,21 +193538,29 @@ var require_resolvePeers = __commonJS({
|
|
|
193501
193538
|
const depPath2 = currentDepPaths.pop();
|
|
193502
193539
|
if (isCompatibleAndHasMoreDeps(depGraph, depPath1, depPath2)) {
|
|
193503
193540
|
depPathsMap[depPath2] = depPath1;
|
|
193541
|
+
unresolvedDepPaths.delete(depPath1);
|
|
193542
|
+
unresolvedDepPaths.delete(depPath2);
|
|
193504
193543
|
} else {
|
|
193505
193544
|
nextDepPaths.push(depPath2);
|
|
193506
193545
|
}
|
|
193507
193546
|
}
|
|
193508
193547
|
nextDepPaths.push(...currentDepPaths);
|
|
193509
|
-
currentDepPaths = nextDepPaths;
|
|
193548
|
+
currentDepPaths = nextDepPaths.sort(depCountSorter);
|
|
193549
|
+
}
|
|
193550
|
+
if (unresolvedDepPaths.size) {
|
|
193551
|
+
remainingDuplicates.push([...unresolvedDepPaths]);
|
|
193510
193552
|
}
|
|
193511
193553
|
}
|
|
193512
|
-
return
|
|
193554
|
+
return {
|
|
193555
|
+
depPathsMap,
|
|
193556
|
+
remainingDuplicates
|
|
193557
|
+
};
|
|
193513
193558
|
}
|
|
193514
193559
|
function isCompatibleAndHasMoreDeps(depGraph, depPath1, depPath2) {
|
|
193515
193560
|
const node1 = depGraph[depPath1];
|
|
193516
193561
|
const node2 = depGraph[depPath2];
|
|
193517
|
-
const node1DepPaths = Object.
|
|
193518
|
-
const node2DepPaths = Object.
|
|
193562
|
+
const node1DepPaths = Object.values(node1.children);
|
|
193563
|
+
const node2DepPaths = Object.values(node2.children);
|
|
193519
193564
|
return nodeDepsCount(node1) > nodeDepsCount(node2) && node2DepPaths.every((depPath) => node1DepPaths.includes(depPath)) && node2.resolvedPeerNames.every((depPath) => node1.resolvedPeerNames.includes(depPath));
|
|
193520
193565
|
}
|
|
193521
193566
|
function getRootPkgsByName(dependenciesTree, projects) {
|
|
@@ -197197,6 +197242,13 @@ var require_install = __commonJS({
|
|
|
197197
197242
|
var getPreferredVersions_1 = require_getPreferredVersions();
|
|
197198
197243
|
var link_1 = require_link3();
|
|
197199
197244
|
var reportPeerDependencyIssues_1 = require_reportPeerDependencyIssues2();
|
|
197245
|
+
var LockfileConfigMismatchError = class extends error_1.PnpmError {
|
|
197246
|
+
constructor(outdatedLockfileSettingName) {
|
|
197247
|
+
super("LOCKFILE_CONFIG_MISMATCH", `Cannot proceed with the frozen installation. The current "${outdatedLockfileSettingName}" configuration doesn't match the value found in the lockfile`, {
|
|
197248
|
+
hint: 'Update your lockfile using "pnpm install --no-frozen-lockfile"'
|
|
197249
|
+
});
|
|
197250
|
+
}
|
|
197251
|
+
};
|
|
197200
197252
|
var BROKEN_LOCKFILE_INTEGRITY_ERRORS = /* @__PURE__ */ new Set([
|
|
197201
197253
|
"ERR_PNPM_UNEXPECTED_PKG_CONTENT_IN_STORE",
|
|
197202
197254
|
"ERR_PNPM_TARBALL_INTEGRITY"
|
|
@@ -197319,22 +197371,40 @@ var require_install = __commonJS({
|
|
|
197319
197371
|
if (opts.useLockfileV6 == null) {
|
|
197320
197372
|
opts.useLockfileV6 = ctx.wantedLockfile.lockfileVersion.toString().startsWith("6.");
|
|
197321
197373
|
}
|
|
197322
|
-
|
|
197323
|
-
|
|
197324
|
-
|
|
197325
|
-
|
|
197326
|
-
|
|
197327
|
-
|
|
197328
|
-
|
|
197374
|
+
const frozenLockfile = opts.frozenLockfile || opts.frozenLockfileIfExists && ctx.existsWantedLockfile;
|
|
197375
|
+
let outdatedLockfileSettings = false;
|
|
197376
|
+
if (!opts.ignorePackageManifest) {
|
|
197377
|
+
const outdatedLockfileSettingName = getOutdatedLockfileSetting(ctx.wantedLockfile, {
|
|
197378
|
+
autoInstallPeers: opts.autoInstallPeers,
|
|
197379
|
+
overrides: opts.overrides,
|
|
197380
|
+
neverBuiltDependencies: opts.neverBuiltDependencies,
|
|
197381
|
+
onlyBuiltDependencies: opts.onlyBuiltDependencies,
|
|
197382
|
+
packageExtensionsChecksum,
|
|
197383
|
+
patchedDependencies
|
|
197384
|
+
});
|
|
197385
|
+
outdatedLockfileSettings = outdatedLockfileSettingName != null;
|
|
197386
|
+
if (frozenLockfile && outdatedLockfileSettings) {
|
|
197387
|
+
throw new LockfileConfigMismatchError(outdatedLockfileSettingName);
|
|
197388
|
+
}
|
|
197389
|
+
}
|
|
197390
|
+
let needsFullResolution = outdatedLockfileSettings || opts.fixLockfile || opts.useLockfileV6 && !ctx.wantedLockfile.lockfileVersion.toString().startsWith("6.");
|
|
197329
197391
|
if (needsFullResolution) {
|
|
197392
|
+
ctx.wantedLockfile.settings = {
|
|
197393
|
+
autoInstallPeers: opts.autoInstallPeers,
|
|
197394
|
+
excludeLinksFromLockfile: false
|
|
197395
|
+
};
|
|
197330
197396
|
ctx.wantedLockfile.overrides = opts.overrides;
|
|
197331
197397
|
ctx.wantedLockfile.neverBuiltDependencies = opts.neverBuiltDependencies;
|
|
197332
197398
|
ctx.wantedLockfile.onlyBuiltDependencies = opts.onlyBuiltDependencies;
|
|
197333
197399
|
ctx.wantedLockfile.packageExtensionsChecksum = packageExtensionsChecksum;
|
|
197334
197400
|
ctx.wantedLockfile.patchedDependencies = patchedDependencies;
|
|
197401
|
+
} else if (!frozenLockfile) {
|
|
197402
|
+
ctx.wantedLockfile.settings = {
|
|
197403
|
+
autoInstallPeers: opts.autoInstallPeers,
|
|
197404
|
+
excludeLinksFromLockfile: false
|
|
197405
|
+
};
|
|
197335
197406
|
}
|
|
197336
|
-
|
|
197337
|
-
if (!ctx.lockfileHadConflicts && !opts.fixLockfile && !opts.dedupe && installsOnly && (frozenLockfile && !opts.lockfileOnly || opts.ignorePackageManifest || !needsFullResolution && opts.preferFrozenLockfile && (!opts.pruneLockfileImporters || Object.keys(ctx.wantedLockfile.importers).length === Object.keys(ctx.projects).length) && ctx.existsWantedLockfile && (ctx.wantedLockfile.lockfileVersion === constants_1.LOCKFILE_VERSION || ctx.wantedLockfile.lockfileVersion === constants_1.LOCKFILE_VERSION_V6) && await (0, allProjectsAreUpToDate_1.allProjectsAreUpToDate)(Object.values(ctx.projects), {
|
|
197407
|
+
if (!ctx.lockfileHadConflicts && !opts.fixLockfile && !opts.dedupe && installsOnly && (frozenLockfile && !opts.lockfileOnly || opts.ignorePackageManifest || !needsFullResolution && opts.preferFrozenLockfile && (!opts.pruneLockfileImporters || Object.keys(ctx.wantedLockfile.importers).length === Object.keys(ctx.projects).length) && ctx.existsWantedLockfile && (ctx.wantedLockfile.lockfileVersion === constants_1.LOCKFILE_VERSION || ctx.wantedLockfile.lockfileVersion === constants_1.LOCKFILE_VERSION_V6 || ctx.wantedLockfile.lockfileVersion === "6.1") && await (0, allProjectsAreUpToDate_1.allProjectsAreUpToDate)(Object.values(ctx.projects), {
|
|
197338
197408
|
autoInstallPeers: opts.autoInstallPeers,
|
|
197339
197409
|
linkWorkspacePackages: opts.linkWorkspacePackagesDepth >= 0,
|
|
197340
197410
|
wantedLockfile: ctx.wantedLockfile,
|
|
@@ -197566,8 +197636,29 @@ var require_install = __commonJS({
|
|
|
197566
197636
|
};
|
|
197567
197637
|
}, patches);
|
|
197568
197638
|
}
|
|
197569
|
-
function
|
|
197570
|
-
|
|
197639
|
+
function getOutdatedLockfileSetting(lockfile, { neverBuiltDependencies, onlyBuiltDependencies, overrides, packageExtensionsChecksum, patchedDependencies, autoInstallPeers }) {
|
|
197640
|
+
if (!(0, equals_1.default)(lockfile.overrides ?? {}, overrides ?? {})) {
|
|
197641
|
+
return "overrides";
|
|
197642
|
+
}
|
|
197643
|
+
if (!(0, equals_1.default)((lockfile.neverBuiltDependencies ?? []).sort(), (neverBuiltDependencies ?? []).sort())) {
|
|
197644
|
+
return "neverBuiltDependencies";
|
|
197645
|
+
}
|
|
197646
|
+
if (!(0, equals_1.default)(onlyBuiltDependencies?.sort(), lockfile.onlyBuiltDependencies)) {
|
|
197647
|
+
return "onlyBuiltDependencies";
|
|
197648
|
+
}
|
|
197649
|
+
if (lockfile.packageExtensionsChecksum !== packageExtensionsChecksum) {
|
|
197650
|
+
return "packageExtensionsChecksum";
|
|
197651
|
+
}
|
|
197652
|
+
if (!(0, equals_1.default)(lockfile.patchedDependencies ?? {}, patchedDependencies ?? {})) {
|
|
197653
|
+
return "patchedDependencies";
|
|
197654
|
+
}
|
|
197655
|
+
if (lockfile.settings?.autoInstallPeers != null && lockfile.settings.autoInstallPeers !== autoInstallPeers) {
|
|
197656
|
+
return "settings.autoInstallPeers";
|
|
197657
|
+
}
|
|
197658
|
+
if (lockfile.settings?.excludeLinksFromLockfile) {
|
|
197659
|
+
return "settings.excludeLinksFromLockfile";
|
|
197660
|
+
}
|
|
197661
|
+
return null;
|
|
197571
197662
|
}
|
|
197572
197663
|
function createObjectChecksum(obj) {
|
|
197573
197664
|
const s = JSON.stringify(obj);
|
|
@@ -200587,6 +200678,7 @@ var require_outdated = __commonJS({
|
|
|
200587
200678
|
var types_1 = require_lib25();
|
|
200588
200679
|
var dp = __importStar4(require_lib78());
|
|
200589
200680
|
var semver_12 = __importDefault3(require_semver2());
|
|
200681
|
+
var matcher_1 = require_lib19();
|
|
200590
200682
|
__exportStar3(require_createManifestGetter(), exports2);
|
|
200591
200683
|
async function outdated(opts) {
|
|
200592
200684
|
if (packageHasNoDeps(opts.manifest))
|
|
@@ -200598,6 +200690,7 @@ var require_outdated = __commonJS({
|
|
|
200598
200690
|
const importerId = (0, lockfile_file_1.getLockfileImporterId)(opts.lockfileDir, opts.prefix);
|
|
200599
200691
|
const currentLockfile = opts.currentLockfile ?? { importers: { [importerId]: {} } };
|
|
200600
200692
|
const outdated2 = [];
|
|
200693
|
+
const ignoreDependenciesMatcher = opts.ignoreDependencies?.length ? (0, matcher_1.createMatcher)(opts.ignoreDependencies) : void 0;
|
|
200601
200694
|
await Promise.all(types_1.DEPENDENCIES_FIELDS.map(async (depType) => {
|
|
200602
200695
|
if (opts.include?.[depType] === false || opts.wantedLockfile.importers[importerId][depType] == null)
|
|
200603
200696
|
return;
|
|
@@ -200610,7 +200703,7 @@ var require_outdated = __commonJS({
|
|
|
200610
200703
|
return;
|
|
200611
200704
|
const ref = opts.wantedLockfile.importers[importerId][depType][alias];
|
|
200612
200705
|
if (ref.startsWith("file:") || // ignoring linked packages. (For backward compatibility)
|
|
200613
|
-
|
|
200706
|
+
ignoreDependenciesMatcher?.(alias)) {
|
|
200614
200707
|
return;
|
|
200615
200708
|
}
|
|
200616
200709
|
const relativeDepPath = dp.refToRelative(ref, alias);
|
|
@@ -201117,7 +201210,7 @@ var require_update2 = __commonJS({
|
|
|
201117
201210
|
const outdatedPkgsOfProjects = await (0, outdated_1.outdatedDepsOfProjects)(projects, input, {
|
|
201118
201211
|
...opts,
|
|
201119
201212
|
compatible: opts.latest !== true,
|
|
201120
|
-
ignoreDependencies:
|
|
201213
|
+
ignoreDependencies: rootProject?.manifest?.pnpm?.updateConfig?.ignoreDependencies,
|
|
201121
201214
|
include,
|
|
201122
201215
|
retry: {
|
|
201123
201216
|
factor: opts.fetchRetryFactor,
|
|
@@ -221432,7 +221525,7 @@ var require_recursive4 = __commonJS({
|
|
|
221432
221525
|
const outdatedPackagesByProject = await (0, outdated_1.outdatedDepsOfProjects)(pkgs, params, {
|
|
221433
221526
|
...opts,
|
|
221434
221527
|
fullMetadata: opts.long,
|
|
221435
|
-
ignoreDependencies:
|
|
221528
|
+
ignoreDependencies: rootManifest?.manifest?.pnpm?.updateConfig?.ignoreDependencies,
|
|
221436
221529
|
retry: {
|
|
221437
221530
|
factor: opts.fetchRetryFactor,
|
|
221438
221531
|
maxTimeout: opts.fetchRetryMaxtimeout,
|
|
@@ -221691,7 +221784,7 @@ pnpm outdated gulp-* @babel/core`,
|
|
|
221691
221784
|
const [outdatedPackages] = await (0, outdated_1.outdatedDepsOfProjects)(packages, params, {
|
|
221692
221785
|
...opts,
|
|
221693
221786
|
fullMetadata: opts.long,
|
|
221694
|
-
ignoreDependencies:
|
|
221787
|
+
ignoreDependencies: manifest?.pnpm?.updateConfig?.ignoreDependencies,
|
|
221695
221788
|
include,
|
|
221696
221789
|
retry: {
|
|
221697
221790
|
factor: opts.fetchRetryFactor,
|
|
@@ -222878,7 +222971,13 @@ var require_patchCommit = __commonJS({
|
|
|
222878
222971
|
if (opts?.allProjectsGraph?.[lockfileDir].package.manifest) {
|
|
222879
222972
|
opts.allProjectsGraph[lockfileDir].package.manifest = rootProjectManifest;
|
|
222880
222973
|
}
|
|
222881
|
-
return plugin_commands_installation_1.install.handler(
|
|
222974
|
+
return plugin_commands_installation_1.install.handler({
|
|
222975
|
+
...opts,
|
|
222976
|
+
rawLocalConfig: {
|
|
222977
|
+
...opts.rawLocalConfig,
|
|
222978
|
+
"frozen-lockfile": false
|
|
222979
|
+
}
|
|
222980
|
+
});
|
|
222882
222981
|
}
|
|
222883
222982
|
exports2.handler = handler;
|
|
222884
222983
|
async function diffFolders(folderA, folderB) {
|