pnpm 7.30.3 → 7.30.4
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 +12 -11
- package/package.json +2 -2
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.30.
|
|
3247
|
+
version: true ? "7.30.4" : "0.0.0"
|
|
3248
3248
|
};
|
|
3249
3249
|
var pkgJson;
|
|
3250
3250
|
if (require.main == null) {
|
|
@@ -54126,6 +54126,7 @@ var require_lib32 = __commonJS({
|
|
|
54126
54126
|
var map_1 = __importDefault3(require_map4());
|
|
54127
54127
|
function createPkgGraph(pkgs, opts) {
|
|
54128
54128
|
const pkgMap = createPkgMap(pkgs);
|
|
54129
|
+
const pkgMapValues = Object.values(pkgMap);
|
|
54129
54130
|
const unmatched = [];
|
|
54130
54131
|
const graph = (0, map_1.default)((pkg) => ({
|
|
54131
54132
|
dependencies: createNode(pkg),
|
|
@@ -54153,7 +54154,7 @@ var require_lib32 = __commonJS({
|
|
|
54153
54154
|
return "";
|
|
54154
54155
|
}
|
|
54155
54156
|
if (spec.type === "directory") {
|
|
54156
|
-
const matchedPkg2 =
|
|
54157
|
+
const matchedPkg2 = pkgMapValues.find((pkg2) => path_1.default.relative(pkg2.dir, spec.fetchSpec) === "");
|
|
54157
54158
|
if (matchedPkg2 == null) {
|
|
54158
54159
|
return "";
|
|
54159
54160
|
}
|
|
@@ -54161,7 +54162,7 @@ var require_lib32 = __commonJS({
|
|
|
54161
54162
|
}
|
|
54162
54163
|
if (spec.type !== "version" && spec.type !== "range")
|
|
54163
54164
|
return "";
|
|
54164
|
-
const pkgs2 =
|
|
54165
|
+
const pkgs2 = pkgMapValues.filter((pkg2) => pkg2.manifest.name === depName);
|
|
54165
54166
|
if (pkgs2.length === 0)
|
|
54166
54167
|
return "";
|
|
54167
54168
|
const versions = pkgs2.filter(({ manifest }) => manifest.version).map((pkg2) => pkg2.manifest.version);
|
|
@@ -181302,6 +181303,10 @@ var require_lib130 = __commonJS({
|
|
|
181302
181303
|
});
|
|
181303
181304
|
});
|
|
181304
181305
|
if (symlink !== false) {
|
|
181306
|
+
const importerManifestsByImporterId = {};
|
|
181307
|
+
for (const { id, manifest } of projects) {
|
|
181308
|
+
importerManifestsByImporterId[id] = manifest;
|
|
181309
|
+
}
|
|
181305
181310
|
const projectsToLink = Object.fromEntries(await Promise.all(projects.map(async ({ rootDir, id, modulesDir }) => [id, {
|
|
181306
181311
|
dir: rootDir,
|
|
181307
181312
|
modulesDir,
|
|
@@ -181310,7 +181315,7 @@ var require_lib130 = __commonJS({
|
|
|
181310
181315
|
importerModulesDir: modulesDir,
|
|
181311
181316
|
lockfileDir,
|
|
181312
181317
|
projectDir: rootDir,
|
|
181313
|
-
|
|
181318
|
+
importerManifestsByImporterId,
|
|
181314
181319
|
registries,
|
|
181315
181320
|
rootDependencies: directDependenciesByImporterId[id]
|
|
181316
181321
|
})
|
|
@@ -181331,10 +181336,6 @@ var require_lib130 = __commonJS({
|
|
|
181331
181336
|
});
|
|
181332
181337
|
}
|
|
181333
181338
|
async function getRootPackagesToLink(lockfile, opts) {
|
|
181334
|
-
const importerManifestsByImporterId = {};
|
|
181335
|
-
for (const { id, manifest } of opts.projects) {
|
|
181336
|
-
importerManifestsByImporterId[id] = manifest;
|
|
181337
|
-
}
|
|
181338
181339
|
const projectSnapshot = lockfile.importers[opts.importerId];
|
|
181339
181340
|
const allDeps = {
|
|
181340
181341
|
...projectSnapshot.devDependencies,
|
|
@@ -181348,8 +181349,8 @@ var require_lib130 = __commonJS({
|
|
|
181348
181349
|
const packageDir = path_1.default.join(opts.projectDir, ref.slice(5));
|
|
181349
181350
|
const linkedPackage = await (async () => {
|
|
181350
181351
|
const importerId = (0, lockfile_file_1.getLockfileImporterId)(opts.lockfileDir, packageDir);
|
|
181351
|
-
if (importerManifestsByImporterId[importerId]) {
|
|
181352
|
-
return importerManifestsByImporterId[importerId];
|
|
181352
|
+
if (opts.importerManifestsByImporterId[importerId]) {
|
|
181353
|
+
return opts.importerManifestsByImporterId[importerId];
|
|
181353
181354
|
}
|
|
181354
181355
|
try {
|
|
181355
181356
|
return await (0, read_project_manifest_1.readProjectManifestOnly)(packageDir);
|
|
@@ -190903,7 +190904,7 @@ var require_recursive2 = __commonJS({
|
|
|
190903
190904
|
}
|
|
190904
190905
|
if (opts.dedupePeerDependents) {
|
|
190905
190906
|
for (const rootDir of Object.keys(opts.allProjectsGraph)) {
|
|
190906
|
-
if (opts.selectedProjectsGraph[rootDir])
|
|
190907
|
+
if (opts.selectedProjectsGraph[rootDir] || rootDir === opts.workspaceDir)
|
|
190907
190908
|
continue;
|
|
190908
190909
|
const { writeProjectManifest } = manifestsByPath[rootDir];
|
|
190909
190910
|
writeProjectManifests.push(writeProjectManifest);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pnpm",
|
|
3
3
|
"description": "Fast, disk space efficient package manager",
|
|
4
|
-
"version": "7.30.
|
|
4
|
+
"version": "7.30.4",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pnpm": "bin/pnpm.cjs",
|
|
7
7
|
"pnpx": "bin/pnpx.cjs"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@pnpm/prepare": "workspace:*",
|
|
61
61
|
"@pnpm/read-package-json": "workspace:*",
|
|
62
62
|
"@pnpm/read-project-manifest": "workspace:*",
|
|
63
|
-
"@pnpm/registry-mock": "3.
|
|
63
|
+
"@pnpm/registry-mock": "3.8.0",
|
|
64
64
|
"@pnpm/run-npm": "workspace:*",
|
|
65
65
|
"@pnpm/tabtab": "^0.1.2",
|
|
66
66
|
"@pnpm/test-fixtures": "workspace:*",
|