@pnpm/deps.graph-builder 1002.2.1 → 1002.2.3
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.
|
@@ -10,6 +10,7 @@ export interface DependenciesGraphNode {
|
|
|
10
10
|
modules: string;
|
|
11
11
|
name: string;
|
|
12
12
|
fetching?: () => Promise<PkgRequestFetchResult>;
|
|
13
|
+
forceImportPackage?: boolean;
|
|
13
14
|
dir: string;
|
|
14
15
|
children: Record<string, string>;
|
|
15
16
|
optionalDependencies: Set<string>;
|
|
@@ -65,4 +66,13 @@ export interface LockfileToDepGraphResult {
|
|
|
65
66
|
prevGraph?: DependenciesGraph;
|
|
66
67
|
pkgLocationsByDepPath?: Record<string, string[]>;
|
|
67
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Generate a dependency graph from lockfiles.
|
|
71
|
+
*
|
|
72
|
+
* If a current lockfile is provided, this function only includes new or changed
|
|
73
|
+
* packages in the graph. In other words, the graph returned will be a set
|
|
74
|
+
* subtraction of the packages in the wanted lockfile minus the current
|
|
75
|
+
* lockfile. This behavior can be configured with the `includeUnchangedDeps`
|
|
76
|
+
* option.
|
|
77
|
+
*/
|
|
68
78
|
export declare function lockfileToDepGraph(lockfile: LockfileObject, currentLockfile: LockfileObject | null, opts: LockfileToDepGraphOptions): Promise<LockfileToDepGraphResult>;
|
|
@@ -40,6 +40,15 @@ const equals_1 = __importDefault(require("ramda/src/equals"));
|
|
|
40
40
|
const isEmpty_1 = __importDefault(require("ramda/src/isEmpty"));
|
|
41
41
|
const iteratePkgsForVirtualStore_1 = require("./iteratePkgsForVirtualStore");
|
|
42
42
|
const brokenModulesLogger = (0, logger_1.logger)('_broken_node_modules');
|
|
43
|
+
/**
|
|
44
|
+
* Generate a dependency graph from lockfiles.
|
|
45
|
+
*
|
|
46
|
+
* If a current lockfile is provided, this function only includes new or changed
|
|
47
|
+
* packages in the graph. In other words, the graph returned will be a set
|
|
48
|
+
* subtraction of the packages in the wanted lockfile minus the current
|
|
49
|
+
* lockfile. This behavior can be configured with the `includeUnchangedDeps`
|
|
50
|
+
* option.
|
|
51
|
+
*/
|
|
43
52
|
async function lockfileToDepGraph(lockfile, currentLockfile, opts) {
|
|
44
53
|
const { graph, locationByDepPath, } = await buildGraphFromPackages(lockfile, currentLockfile, opts);
|
|
45
54
|
const _getChildrenPaths = getChildrenPaths.bind(null, {
|
|
@@ -110,11 +119,13 @@ async function buildGraphFromPackages(lockfile, currentLockfile, opts) {
|
|
|
110
119
|
const depIsPresent = !('directory' in pkgSnapshot.resolution && pkgSnapshot.resolution.directory != null) &&
|
|
111
120
|
currentPackages[depPath] &&
|
|
112
121
|
(0, equals_1.default)(currentPackages[depPath].dependencies, pkgSnapshot.dependencies);
|
|
122
|
+
const depIntegrityIsUnchanged = isIntegrityEqual(pkgSnapshot.resolution, currentPackages[depPath]?.resolution);
|
|
113
123
|
const modules = path_1.default.join(opts.virtualStoreDir, dirNameInVirtualStore, 'node_modules');
|
|
114
124
|
const dir = path_1.default.join(modules, pkgName);
|
|
115
125
|
locationByDepPath[depPath] = dir;
|
|
116
126
|
let dirExists;
|
|
117
127
|
if (depIsPresent &&
|
|
128
|
+
depIntegrityIsUnchanged &&
|
|
118
129
|
(0, isEmpty_1.default)(currentPackages[depPath].optionalDependencies ?? {}) &&
|
|
119
130
|
(0, isEmpty_1.default)(pkgSnapshot.optionalDependencies ?? {}) &&
|
|
120
131
|
!opts.includeUnchangedDeps) {
|
|
@@ -124,7 +135,7 @@ async function buildGraphFromPackages(lockfile, currentLockfile, opts) {
|
|
|
124
135
|
brokenModulesLogger.debug({ missing: dir });
|
|
125
136
|
}
|
|
126
137
|
let fetchResponse;
|
|
127
|
-
if (depIsPresent && (0, equals_1.default)(currentPackages[depPath].optionalDependencies, pkgSnapshot.optionalDependencies)) {
|
|
138
|
+
if (depIsPresent && depIntegrityIsUnchanged && (0, equals_1.default)(currentPackages[depPath].optionalDependencies, pkgSnapshot.optionalDependencies)) {
|
|
128
139
|
if (dirExists ?? await (0, path_exists_1.default)(dir)) {
|
|
129
140
|
fetchResponse = {};
|
|
130
141
|
}
|
|
@@ -140,8 +151,8 @@ async function buildGraphFromPackages(lockfile, currentLockfile, opts) {
|
|
|
140
151
|
force: false,
|
|
141
152
|
lockfileDir: opts.lockfileDir,
|
|
142
153
|
ignoreScripts: opts.ignoreScripts,
|
|
143
|
-
pkg: { id: packageId, resolution },
|
|
144
|
-
|
|
154
|
+
pkg: { name: pkgName, version: pkgVersion, id: packageId, resolution },
|
|
155
|
+
supportedArchitectures: opts.supportedArchitectures,
|
|
145
156
|
});
|
|
146
157
|
}
|
|
147
158
|
catch (err) {
|
|
@@ -158,6 +169,7 @@ async function buildGraphFromPackages(lockfile, currentLockfile, opts) {
|
|
|
158
169
|
dir,
|
|
159
170
|
fetching: fetchResponse.fetching,
|
|
160
171
|
filesIndexFile: fetchResponse.filesIndexFile,
|
|
172
|
+
forceImportPackage: !depIntegrityIsUnchanged,
|
|
161
173
|
hasBin: pkgSnapshot.hasBin === true,
|
|
162
174
|
hasBundledDependencies: pkgSnapshot.bundledDependencies != null,
|
|
163
175
|
modules,
|
|
@@ -195,4 +207,12 @@ function getChildrenPaths(ctx, allDeps, peerDeps, importerId) {
|
|
|
195
207
|
}
|
|
196
208
|
return children;
|
|
197
209
|
}
|
|
210
|
+
function isIntegrityEqual(resolutionA, resolutionB) {
|
|
211
|
+
// The LockfileResolution type is a union, but it doesn't have a "tag"
|
|
212
|
+
// field to perform a discriminant match on. Using a type assertion is
|
|
213
|
+
// required to get the integrity field.
|
|
214
|
+
const integrityA = resolutionA?.integrity;
|
|
215
|
+
const integrityB = resolutionB?.integrity;
|
|
216
|
+
return integrityA === integrityB;
|
|
217
|
+
}
|
|
198
218
|
//# sourceMappingURL=lockfileToDepGraph.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lockfileToDepGraph.js","sourceRoot":"","sources":["../src/lockfileToDepGraph.ts"],"names":[],"mapp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
|
3
|
-
"version": "1002.2.
|
|
3
|
+
"version": "1002.2.3",
|
|
4
4
|
"description": "A package for building a dependency graph from a lockfile",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/pnpm/pnpm/issues"
|
|
15
15
|
},
|
|
16
|
+
"type": "commonjs",
|
|
16
17
|
"main": "lib/index.js",
|
|
17
18
|
"types": "lib/index.d.ts",
|
|
18
19
|
"exports": {
|
|
@@ -25,25 +26,25 @@
|
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"path-exists": "^4.0.0",
|
|
27
28
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
28
|
-
"@pnpm/calc-dep-state": "1002.0.
|
|
29
|
-
"@pnpm/constants": "1001.
|
|
30
|
-
"@pnpm/
|
|
31
|
-
"@pnpm/
|
|
32
|
-
"@pnpm/lockfile.fs": "1001.1.
|
|
33
|
-
"@pnpm/lockfile.utils": "
|
|
34
|
-
"@pnpm/
|
|
35
|
-
"@pnpm/
|
|
36
|
-
"@pnpm/patching.
|
|
37
|
-
"@pnpm/
|
|
38
|
-
"@pnpm/types": "
|
|
39
|
-
"@pnpm/
|
|
29
|
+
"@pnpm/calc-dep-state": "1002.0.4",
|
|
30
|
+
"@pnpm/constants": "1001.3.0",
|
|
31
|
+
"@pnpm/dependency-path": "1001.1.0",
|
|
32
|
+
"@pnpm/core-loggers": "1001.0.2",
|
|
33
|
+
"@pnpm/lockfile.fs": "1001.1.17",
|
|
34
|
+
"@pnpm/lockfile.utils": "1003.0.0",
|
|
35
|
+
"@pnpm/package-is-installable": "1000.0.12",
|
|
36
|
+
"@pnpm/patching.config": "1001.0.7",
|
|
37
|
+
"@pnpm/patching.types": "1000.1.0",
|
|
38
|
+
"@pnpm/modules-yaml": "1000.3.4",
|
|
39
|
+
"@pnpm/store-controller-types": "1004.0.1",
|
|
40
|
+
"@pnpm/types": "1000.7.0"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
43
|
"@pnpm/logger": ">=1001.0.0 <1002.0.0"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"@types/ramda": "0.29.12",
|
|
46
|
-
"@pnpm/deps.graph-builder": "1002.2.
|
|
47
|
+
"@pnpm/deps.graph-builder": "1002.2.3",
|
|
47
48
|
"@pnpm/logger": "1001.0.0"
|
|
48
49
|
},
|
|
49
50
|
"engines": {
|