@pnpm/installing.context 1100.0.13 → 1100.0.14
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/lib/readLockfiles.js +6 -3
- package/package.json +5 -5
package/lib/readLockfiles.js
CHANGED
|
@@ -73,10 +73,14 @@ export async function readLockfiles(opts) {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
+
const existsWantedLockfile = files[0] != null;
|
|
77
|
+
const existsCurrentLockfile = files[1] != null;
|
|
76
78
|
const wantedLockfile = files[0] ??
|
|
77
79
|
(currentLockfile && clone(currentLockfile)) ??
|
|
78
80
|
createLockfileObject(importerIds, sopts);
|
|
79
|
-
|
|
81
|
+
// Cloning the current lockfile means the disk copy of the wanted lockfile is
|
|
82
|
+
// stale, so flag it for rewriting after the install completes.
|
|
83
|
+
let wantedLockfileIsModified = !existsWantedLockfile && existsCurrentLockfile;
|
|
80
84
|
for (const importerId of importerIds) {
|
|
81
85
|
if (!wantedLockfile.importers[importerId]) {
|
|
82
86
|
wantedLockfileIsModified = true;
|
|
@@ -85,11 +89,10 @@ export async function readLockfiles(opts) {
|
|
|
85
89
|
};
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
|
-
const existsWantedLockfile = files[0] != null;
|
|
89
92
|
return {
|
|
90
93
|
currentLockfile,
|
|
91
94
|
currentLockfileIsUpToDate: equals(currentLockfile, wantedLockfile),
|
|
92
|
-
existsCurrentLockfile
|
|
95
|
+
existsCurrentLockfile,
|
|
93
96
|
existsWantedLockfile,
|
|
94
97
|
existsNonEmptyWantedLockfile: existsWantedLockfile && !isEmptyLockfile(wantedLockfile),
|
|
95
98
|
wantedLockfile,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/installing.context",
|
|
3
|
-
"version": "1100.0.
|
|
3
|
+
"version": "1100.0.14",
|
|
4
4
|
"description": "Gets context information about a project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"path-absolute": "^2.0.0",
|
|
29
29
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
30
30
|
"@pnpm/constants": "1100.0.0",
|
|
31
|
-
"@pnpm/core-loggers": "1100.1.2",
|
|
32
31
|
"@pnpm/installing.modules-yaml": "1100.0.6",
|
|
32
|
+
"@pnpm/core-loggers": "1100.1.2",
|
|
33
33
|
"@pnpm/installing.read-projects-context": "1100.0.12",
|
|
34
34
|
"@pnpm/lockfile.fs": "1100.1.2",
|
|
35
|
+
"@pnpm/store.controller": "1101.0.10",
|
|
35
36
|
"@pnpm/resolving.resolver-base": "1100.3.1",
|
|
36
|
-
"@pnpm/store.controller": "1101.0.9",
|
|
37
37
|
"@pnpm/types": "1101.2.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@jest/globals": "30.3.0",
|
|
44
44
|
"@types/ramda": "0.31.1",
|
|
45
|
-
"@pnpm/
|
|
46
|
-
"@pnpm/
|
|
45
|
+
"@pnpm/logger": "1100.0.0",
|
|
46
|
+
"@pnpm/installing.context": "1100.0.14"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=22.13"
|