pnpm 7.24.0 → 7.24.2
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/pnpm.cjs +13 -10
- package/package.json +1 -1
|
@@ -200,11 +200,11 @@ included:
|
|
|
200
200
|
injectedDeps: {}
|
|
201
201
|
layoutVersion: 5
|
|
202
202
|
nodeLinker: hoisted
|
|
203
|
-
packageManager: pnpm@7.
|
|
203
|
+
packageManager: pnpm@7.24.1
|
|
204
204
|
pendingBuilds:
|
|
205
205
|
- /node-gyp/9.3.1
|
|
206
206
|
- /encoding/0.1.13
|
|
207
|
-
prunedAt:
|
|
207
|
+
prunedAt: Tue, 10 Jan 2023 12:16:25 GMT
|
|
208
208
|
publicHoistPattern:
|
|
209
209
|
- '*eslint*'
|
|
210
210
|
- '*prettier*'
|
package/dist/pnpm.cjs
CHANGED
|
@@ -3224,7 +3224,7 @@ var require_lib4 = __commonJS({
|
|
|
3224
3224
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
3225
3225
|
var defaultManifest = {
|
|
3226
3226
|
name: "pnpm" != null && true ? "pnpm" : "pnpm",
|
|
3227
|
-
version: "7.24.
|
|
3227
|
+
version: "7.24.2" != null && true ? "7.24.2" : "0.0.0"
|
|
3228
3228
|
};
|
|
3229
3229
|
var pkgJson;
|
|
3230
3230
|
if (require.main == null) {
|
|
@@ -107165,7 +107165,7 @@ var require_lib76 = __commonJS({
|
|
|
107165
107165
|
if (relDepPath[0] !== "/") {
|
|
107166
107166
|
return null;
|
|
107167
107167
|
}
|
|
107168
|
-
const sepIndex = relDepPath.indexOf("("
|
|
107168
|
+
const sepIndex = relDepPath.indexOf("(");
|
|
107169
107169
|
if (sepIndex !== -1) {
|
|
107170
107170
|
return resolve(registries, relDepPath.slice(0, sepIndex));
|
|
107171
107171
|
}
|
|
@@ -108461,10 +108461,11 @@ var require_write = __commonJS({
|
|
|
108461
108461
|
if (isEmptyLockfile(wantedLockfile)) {
|
|
108462
108462
|
return (0, rimraf_1.default)(lockfilePath);
|
|
108463
108463
|
}
|
|
108464
|
-
const
|
|
108464
|
+
const isLockfileV6 = wantedLockfile["lockfileVersion"].toString().startsWith("6.");
|
|
108465
|
+
const lockfileToStringify = Boolean(opts?.useInlineSpecifiersFormat) || isLockfileV6 ? (0, inlineSpecifiersLockfileConverters_1.convertToInlineSpecifiersFormat)(wantedLockfile) : wantedLockfile;
|
|
108465
108466
|
const yamlDoc = yamlStringify(lockfileToStringify, {
|
|
108466
108467
|
forceSharedFormat: opts?.forceSharedFormat === true,
|
|
108467
|
-
includeEmptySpecifiersField: !opts?.useInlineSpecifiersFormat
|
|
108468
|
+
includeEmptySpecifiersField: !opts?.useInlineSpecifiersFormat && !isLockfileV6
|
|
108468
108469
|
});
|
|
108469
108470
|
return writeFileAtomic(lockfilePath, yamlDoc);
|
|
108470
108471
|
}
|
|
@@ -108605,10 +108606,11 @@ var require_write = __commonJS({
|
|
|
108605
108606
|
return;
|
|
108606
108607
|
}
|
|
108607
108608
|
const forceSharedFormat = opts?.forceSharedFormat === true;
|
|
108608
|
-
const
|
|
108609
|
+
const isLockfileV6 = opts.wantedLockfile.lockfileVersion.toString().startsWith("6.");
|
|
108610
|
+
const wantedLockfileToStringify = Boolean(opts.useInlineSpecifiersFormat) || isLockfileV6 ? (0, inlineSpecifiersLockfileConverters_1.convertToInlineSpecifiersFormat)(opts.wantedLockfile) : opts.wantedLockfile;
|
|
108609
108611
|
const normalizeOpts = {
|
|
108610
108612
|
forceSharedFormat,
|
|
108611
|
-
includeEmptySpecifiersField: !opts.useInlineSpecifiersFormat
|
|
108613
|
+
includeEmptySpecifiersField: !opts.useInlineSpecifiersFormat && !isLockfileV6
|
|
108612
108614
|
};
|
|
108613
108615
|
const yamlDoc = yamlStringify(wantedLockfileToStringify, normalizeOpts);
|
|
108614
108616
|
if (opts.wantedLockfile === opts.currentLockfile) {
|
|
@@ -108625,7 +108627,8 @@ var require_write = __commonJS({
|
|
|
108625
108627
|
message: `\`${constants_1.WANTED_LOCKFILE}\` differs from \`${path_1.default.relative(opts.wantedLockfileDir, currentLockfilePath)}\``,
|
|
108626
108628
|
prefix: opts.wantedLockfileDir
|
|
108627
108629
|
});
|
|
108628
|
-
const
|
|
108630
|
+
const currentLockfileToStringify = Boolean(opts.useInlineSpecifiersFormat) || opts.wantedLockfile.lockfileVersion.toString().startsWith("6.") ? (0, inlineSpecifiersLockfileConverters_1.convertToInlineSpecifiersFormat)(opts.currentLockfile) : opts.currentLockfile;
|
|
108631
|
+
const currentYamlDoc = yamlStringify(currentLockfileToStringify, normalizeOpts);
|
|
108629
108632
|
await Promise.all([
|
|
108630
108633
|
writeFileAtomic(wantedLockfilePath, yamlDoc),
|
|
108631
108634
|
(async () => {
|
|
@@ -186418,7 +186421,7 @@ var require_install = __commonJS({
|
|
|
186418
186421
|
ctx.wantedLockfile.patchedDependencies = patchedDependencies;
|
|
186419
186422
|
}
|
|
186420
186423
|
const frozenLockfile = opts.frozenLockfile || opts.frozenLockfileIfExists && ctx.existsWantedLockfile;
|
|
186421
|
-
if (!ctx.lockfileHadConflicts && !opts.update && !opts.fixLockfile && 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 && await (0, allProjectsAreUpToDate_1.allProjectsAreUpToDate)(Object.values(ctx.projects), {
|
|
186424
|
+
if (!ctx.lockfileHadConflicts && !opts.update && !opts.fixLockfile && 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), {
|
|
186422
186425
|
autoInstallPeers: opts.autoInstallPeers,
|
|
186423
186426
|
linkWorkspacePackages: opts.linkWorkspacePackagesDepth >= 0,
|
|
186424
186427
|
wantedLockfile: ctx.wantedLockfile,
|
|
@@ -186465,7 +186468,7 @@ var require_install = __commonJS({
|
|
|
186465
186468
|
wantedLockfile: ctx.wantedLockfile,
|
|
186466
186469
|
wantedLockfileDir: ctx.lockfileDir,
|
|
186467
186470
|
forceSharedFormat: opts.forceSharedLockfile,
|
|
186468
|
-
useInlineSpecifiersFormat: opts.useInlineSpecifiersLockfileFormat,
|
|
186471
|
+
useInlineSpecifiersFormat: opts.useInlineSpecifiersLockfileFormat || opts.useLockfileV6,
|
|
186469
186472
|
useGitBranchLockfile: opts.useGitBranchLockfile,
|
|
186470
186473
|
mergeGitBranchLockfiles: opts.mergeGitBranchLockfiles
|
|
186471
186474
|
});
|
|
@@ -186814,7 +186817,7 @@ var require_install = __commonJS({
|
|
|
186814
186817
|
const depsStateCache = {};
|
|
186815
186818
|
const lockfileOpts = {
|
|
186816
186819
|
forceSharedFormat: opts.forceSharedLockfile,
|
|
186817
|
-
useInlineSpecifiersFormat: opts.useInlineSpecifiersLockfileFormat,
|
|
186820
|
+
useInlineSpecifiersFormat: opts.useInlineSpecifiersLockfileFormat || opts.useLockfileV6,
|
|
186818
186821
|
useGitBranchLockfile: opts.useGitBranchLockfile,
|
|
186819
186822
|
mergeGitBranchLockfiles: opts.mergeGitBranchLockfiles
|
|
186820
186823
|
};
|