@pnpm/building.after-install 1101.0.11 → 1101.0.13
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/index.js +8 -1
- package/package.json +17 -17
package/lib/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { pkgRequiresBuild } from '@pnpm/building.pkg-requires-build';
|
|
|
6
6
|
import { createAllowBuildFunction } from '@pnpm/building.policy';
|
|
7
7
|
import { LAYOUT_VERSION, WANTED_LOCKFILE, } from '@pnpm/constants';
|
|
8
8
|
import { skippedOptionalDependencyLogger } from '@pnpm/core-loggers';
|
|
9
|
-
import { calcDepState, lockfileToDepGraph } from '@pnpm/deps.graph-hasher';
|
|
9
|
+
import { calcDepState, findRuntimeNodeVersion, lockfileToDepGraph } from '@pnpm/deps.graph-hasher';
|
|
10
10
|
import { graphSequencer } from '@pnpm/deps.graph-sequencer';
|
|
11
11
|
import * as dp from '@pnpm/deps.path';
|
|
12
12
|
import { PnpmError } from '@pnpm/error';
|
|
@@ -187,6 +187,11 @@ const limitLinking = pLimit(16);
|
|
|
187
187
|
async function _rebuild(ctx, opts) {
|
|
188
188
|
const depGraph = lockfileToDepGraph(ctx.currentLockfile, opts.supportedArchitectures);
|
|
189
189
|
const depsStateCache = {};
|
|
190
|
+
// Resolved `engines.runtime` Node version (when one is pinned) —
|
|
191
|
+
// every side-effects-cache key computed below is anchored to it so
|
|
192
|
+
// the prefix tracks the script-runner Node rather than pnpm's own
|
|
193
|
+
// `process.version`.
|
|
194
|
+
const nodeVersion = findRuntimeNodeVersion(Object.keys(depGraph));
|
|
190
195
|
const pkgsThatWereRebuilt = new Set();
|
|
191
196
|
const graph = new Map();
|
|
192
197
|
const pkgSnapshots = ctx.currentLockfile.packages ?? {};
|
|
@@ -261,6 +266,7 @@ async function _rebuild(ctx, opts) {
|
|
|
261
266
|
sideEffectsCacheKey = calcDepState(depGraph, depsStateCache, depPath, {
|
|
262
267
|
includeDepGraphHash: true,
|
|
263
268
|
supportedArchitectures: opts.supportedArchitectures,
|
|
269
|
+
nodeVersion,
|
|
264
270
|
});
|
|
265
271
|
if (pkgFilesIndex.sideEffects?.has(sideEffectsCacheKey)) {
|
|
266
272
|
pkgsThatWereRebuilt.add(depPath);
|
|
@@ -294,6 +300,7 @@ async function _rebuild(ctx, opts) {
|
|
|
294
300
|
if (!sideEffectsCacheKey) {
|
|
295
301
|
sideEffectsCacheKey = calcDepState(depGraph, depsStateCache, depPath, {
|
|
296
302
|
includeDepGraphHash: true,
|
|
303
|
+
nodeVersion,
|
|
297
304
|
});
|
|
298
305
|
}
|
|
299
306
|
await opts.storeController.upload(pkgRoot, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/building.after-install",
|
|
3
|
-
"version": "1101.0.
|
|
3
|
+
"version": "1101.0.13",
|
|
4
4
|
"description": "Rebuild packages that are already installed by running their lifecycle scripts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -30,37 +30,37 @@
|
|
|
30
30
|
"p-limit": "^7.1.0",
|
|
31
31
|
"run-groups": "^5.0.0",
|
|
32
32
|
"semver": "^7.7.2",
|
|
33
|
-
"@pnpm/bins.linker": "1100.0.
|
|
33
|
+
"@pnpm/bins.linker": "1100.0.7",
|
|
34
|
+
"@pnpm/building.policy": "1100.0.5",
|
|
34
35
|
"@pnpm/building.pkg-requires-build": "1100.0.3",
|
|
35
36
|
"@pnpm/config.normalize-registries": "1100.0.3",
|
|
36
|
-
"@pnpm/
|
|
37
|
-
"@pnpm/config.reader": "1101.3.0",
|
|
38
|
-
"@pnpm/core-loggers": "1100.0.2",
|
|
37
|
+
"@pnpm/config.reader": "1101.3.2",
|
|
39
38
|
"@pnpm/constants": "1100.0.0",
|
|
40
|
-
"@pnpm/
|
|
39
|
+
"@pnpm/core-loggers": "1100.1.0",
|
|
40
|
+
"@pnpm/deps.graph-hasher": "1100.2.0",
|
|
41
41
|
"@pnpm/deps.graph-sequencer": "1100.0.0",
|
|
42
42
|
"@pnpm/deps.path": "1100.0.3",
|
|
43
|
-
"@pnpm/
|
|
44
|
-
"@pnpm/installing.context": "1100.0.9",
|
|
43
|
+
"@pnpm/installing.context": "1100.0.11",
|
|
45
44
|
"@pnpm/installing.modules-yaml": "1100.0.4",
|
|
46
|
-
"@pnpm/lockfile.types": "1100.0.
|
|
47
|
-
"@pnpm/lockfile.utils": "1100.0.
|
|
48
|
-
"@pnpm/exec.lifecycle": "1100.0.9",
|
|
45
|
+
"@pnpm/lockfile.types": "1100.0.6",
|
|
46
|
+
"@pnpm/lockfile.utils": "1100.0.8",
|
|
49
47
|
"@pnpm/pkg-manifest.reader": "1100.0.3",
|
|
50
|
-
"@pnpm/
|
|
51
|
-
"@pnpm/
|
|
52
|
-
"@pnpm/store.
|
|
53
|
-
"@pnpm/store.controller-types": "1100.0
|
|
48
|
+
"@pnpm/lockfile.walker": "1100.0.6",
|
|
49
|
+
"@pnpm/error": "1100.0.0",
|
|
50
|
+
"@pnpm/store.cafs": "1100.1.5",
|
|
51
|
+
"@pnpm/store.controller-types": "1100.1.0",
|
|
52
|
+
"@pnpm/store.connection-manager": "1100.2.0",
|
|
53
|
+
"@pnpm/exec.lifecycle": "1100.0.11",
|
|
54
54
|
"@pnpm/types": "1101.1.0",
|
|
55
55
|
"@pnpm/store.index": "1100.1.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@pnpm/logger": ">=1001.0.0 <1002.0.0",
|
|
59
|
-
"@pnpm/worker": "^1100.1.
|
|
59
|
+
"@pnpm/worker": "^1100.1.6"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/semver": "7.7.1",
|
|
63
|
-
"@pnpm/building.after-install": "1101.0.
|
|
63
|
+
"@pnpm/building.after-install": "1101.0.13"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=22.13"
|