@pnpm/deps.graph-builder 1100.0.1 → 1100.0.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PkgMetaAndSnapshot } from '@pnpm/deps.graph-hasher';
|
|
2
2
|
import type { LockfileObject } from '@pnpm/lockfile.fs';
|
|
3
|
-
import type { AllowBuild } from '@pnpm/types';
|
|
3
|
+
import type { AllowBuild, SupportedArchitectures } from '@pnpm/types';
|
|
4
4
|
interface PkgSnapshotWithLocation {
|
|
5
5
|
pkgMeta: PkgMetaAndSnapshot;
|
|
6
6
|
dirInVirtualStore: string;
|
|
@@ -11,5 +11,6 @@ export declare function iteratePkgsForVirtualStore(lockfile: LockfileObject, opt
|
|
|
11
11
|
virtualStoreDirMaxLength: number;
|
|
12
12
|
virtualStoreDir: string;
|
|
13
13
|
globalVirtualStoreDir: string;
|
|
14
|
+
supportedArchitectures?: SupportedArchitectures;
|
|
14
15
|
}): IterableIterator<PkgSnapshotWithLocation>;
|
|
15
16
|
export {};
|
|
@@ -4,7 +4,7 @@ import * as dp from '@pnpm/deps.path';
|
|
|
4
4
|
import { nameVerFromPkgSnapshot, } from '@pnpm/lockfile.utils';
|
|
5
5
|
export function* iteratePkgsForVirtualStore(lockfile, opts) {
|
|
6
6
|
if (opts.enableGlobalVirtualStore) {
|
|
7
|
-
for (const { hash, pkgMeta } of hashDependencyPaths(lockfile, opts.allowBuild)) {
|
|
7
|
+
for (const { hash, pkgMeta } of hashDependencyPaths(lockfile, opts.allowBuild, opts.supportedArchitectures)) {
|
|
8
8
|
yield {
|
|
9
9
|
dirInVirtualStore: path.join(opts.globalVirtualStoreDir, hash),
|
|
10
10
|
pkgMeta,
|
|
@@ -30,7 +30,8 @@ export function* iteratePkgsForVirtualStore(lockfile, opts) {
|
|
|
30
30
|
if (dp.isRuntimeDepPath(depPath)) {
|
|
31
31
|
graphNodeHashOpts ??= {
|
|
32
32
|
cache: {},
|
|
33
|
-
graph: lockfileToDepGraph(lockfile),
|
|
33
|
+
graph: lockfileToDepGraph(lockfile, opts.supportedArchitectures),
|
|
34
|
+
supportedArchitectures: opts.supportedArchitectures,
|
|
34
35
|
};
|
|
35
36
|
const hash = calcGraphNodeHash(graphNodeHashOpts, pkgMeta);
|
|
36
37
|
dirInVirtualStore = path.join(opts.globalVirtualStoreDir, hash);
|
|
@@ -45,8 +46,8 @@ export function* iteratePkgsForVirtualStore(lockfile, opts) {
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
|
-
function hashDependencyPaths(lockfile, allowBuild) {
|
|
49
|
-
const graph = lockfileToDepGraph(lockfile);
|
|
50
|
-
return iterateHashedGraphNodes(graph, iteratePkgMeta(lockfile, graph), allowBuild);
|
|
49
|
+
function hashDependencyPaths(lockfile, allowBuild, supportedArchitectures) {
|
|
50
|
+
const graph = lockfileToDepGraph(lockfile, supportedArchitectures);
|
|
51
|
+
return iterateHashedGraphNodes(graph, iteratePkgMeta(lockfile, graph), allowBuild, supportedArchitectures);
|
|
51
52
|
}
|
|
52
53
|
//# sourceMappingURL=iteratePkgsForVirtualStore.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/deps.graph-builder",
|
|
3
|
-
"version": "1100.0.
|
|
3
|
+
"version": "1100.0.2",
|
|
4
4
|
"description": "A package for building a dependency graph from a lockfile",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"path-exists": "^5.0.0",
|
|
28
28
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
29
29
|
"@pnpm/config.package-is-installable": "1100.0.1",
|
|
30
|
-
"@pnpm/constants": "1100.0.0",
|
|
31
30
|
"@pnpm/core-loggers": "1100.0.1",
|
|
32
|
-
"@pnpm/deps.graph-hasher": "1100.0
|
|
33
|
-
"@pnpm/
|
|
31
|
+
"@pnpm/deps.graph-hasher": "1100.1.0",
|
|
32
|
+
"@pnpm/constants": "1100.0.0",
|
|
33
|
+
"@pnpm/hooks.types": "1100.0.2",
|
|
34
34
|
"@pnpm/deps.path": "1100.0.1",
|
|
35
|
-
"@pnpm/lockfile.fs": "1100.0.1",
|
|
36
|
-
"@pnpm/lockfile.utils": "1100.0.1",
|
|
37
35
|
"@pnpm/installing.modules-yaml": "1100.0.1",
|
|
38
|
-
"@pnpm/
|
|
36
|
+
"@pnpm/lockfile.fs": "1100.0.2",
|
|
37
|
+
"@pnpm/lockfile.utils": "1100.0.2",
|
|
38
|
+
"@pnpm/patching.config": "1100.0.1",
|
|
39
|
+
"@pnpm/store.controller-types": "1100.0.2",
|
|
39
40
|
"@pnpm/types": "1101.0.0",
|
|
40
|
-
"@pnpm/
|
|
41
|
-
"@pnpm/patching.config": "1100.0.1"
|
|
41
|
+
"@pnpm/patching.types": "1100.0.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@pnpm/logger": ">=1001.0.0 <1002.0.0"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/ramda": "0.31.1",
|
|
48
48
|
"@pnpm/logger": "1100.0.0",
|
|
49
|
-
"@pnpm/deps.graph-builder": "1100.0.
|
|
49
|
+
"@pnpm/deps.graph-builder": "1100.0.2"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=22.13"
|