@pnpm/installing.deps-restorer 1100.0.1 → 1100.0.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.
- package/lib/index.js +3 -0
- package/lib/linkHoistedModules.d.ts +2 -1
- package/lib/linkHoistedModules.js +2 -2
- package/package.json +27 -27
package/lib/index.js
CHANGED
|
@@ -209,6 +209,7 @@ export async function headlessInstall(opts) {
|
|
|
209
209
|
lockfileDir: opts.lockfileDir,
|
|
210
210
|
preferSymlinkedExecutables: opts.preferSymlinkedExecutables,
|
|
211
211
|
sideEffectsCacheRead: opts.sideEffectsCacheRead,
|
|
212
|
+
supportedArchitectures: opts.supportedArchitectures,
|
|
212
213
|
});
|
|
213
214
|
stageLogger.debug({
|
|
214
215
|
prefix: lockfileDir,
|
|
@@ -247,6 +248,7 @@ export async function headlessInstall(opts) {
|
|
|
247
248
|
lockfileDir: opts.lockfileDir,
|
|
248
249
|
sideEffectsCacheRead: opts.sideEffectsCacheRead,
|
|
249
250
|
storeDir: opts.storeDir,
|
|
251
|
+
supportedArchitectures: opts.supportedArchitectures,
|
|
250
252
|
}),
|
|
251
253
|
]);
|
|
252
254
|
}
|
|
@@ -636,6 +638,7 @@ async function linkAllPkgs(storeController, depNodes, opts) {
|
|
|
636
638
|
sideEffectsCacheKey = calcDepState(opts.depGraph, opts.depsStateCache, depNode.dir, {
|
|
637
639
|
includeDepGraphHash: !opts.ignoreScripts && depNode.requiresBuild, // true when is built
|
|
638
640
|
patchFileHash: depNode.patch?.hash,
|
|
641
|
+
supportedArchitectures: opts.supportedArchitectures,
|
|
639
642
|
});
|
|
640
643
|
}
|
|
641
644
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DependenciesGraph, DepHierarchy } from '@pnpm/deps.graph-builder';
|
|
2
2
|
import { type DepsStateCache } from '@pnpm/deps.graph-hasher';
|
|
3
3
|
import type { StoreController } from '@pnpm/store.controller-types';
|
|
4
|
-
import type { AllowBuild } from '@pnpm/types';
|
|
4
|
+
import type { AllowBuild, SupportedArchitectures } from '@pnpm/types';
|
|
5
5
|
export declare function linkHoistedModules(storeController: StoreController, graph: DependenciesGraph, prevGraph: DependenciesGraph, hierarchy: DepHierarchy, opts: {
|
|
6
6
|
allowBuild?: AllowBuild;
|
|
7
7
|
depsStateCache: DepsStateCache;
|
|
@@ -11,4 +11,5 @@ export declare function linkHoistedModules(storeController: StoreController, gra
|
|
|
11
11
|
lockfileDir: string;
|
|
12
12
|
preferSymlinkedExecutables?: boolean;
|
|
13
13
|
sideEffectsCacheRead: boolean;
|
|
14
|
+
supportedArchitectures?: SupportedArchitectures;
|
|
14
15
|
}): Promise<void>;
|
|
@@ -47,7 +47,6 @@ async function tryRemoveDir(dir) {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
async function linkAllPkgsInOrder(storeController, graph, hierarchy, parentDir, opts) {
|
|
50
|
-
const _calcDepState = calcDepState.bind(null, graph, opts.depsStateCache);
|
|
51
50
|
await Promise.all(Object.entries(hierarchy).map(async ([dir, deps]) => {
|
|
52
51
|
const depNode = graph[dir];
|
|
53
52
|
if (depNode.fetching) {
|
|
@@ -64,9 +63,10 @@ async function linkAllPkgsInOrder(storeController, graph, hierarchy, parentDir,
|
|
|
64
63
|
let sideEffectsCacheKey;
|
|
65
64
|
if (opts.sideEffectsCacheRead && filesResponse.sideEffectsMaps && !isEmpty(filesResponse.sideEffectsMaps)) {
|
|
66
65
|
if (opts.allowBuild?.(depNode.name, depNode.version) === true) {
|
|
67
|
-
sideEffectsCacheKey =
|
|
66
|
+
sideEffectsCacheKey = calcDepState(graph, opts.depsStateCache, dir, {
|
|
68
67
|
includeDepGraphHash: !opts.ignoreScripts && depNode.requiresBuild, // true when is built
|
|
69
68
|
patchFileHash: depNode.patch?.hash,
|
|
69
|
+
supportedArchitectures: opts.supportedArchitectures,
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/installing.deps-restorer",
|
|
3
|
-
"version": "1100.0.
|
|
3
|
+
"version": "1100.0.3",
|
|
4
4
|
"description": "Fast installation using only pnpm-lock.yaml",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -35,37 +35,37 @@
|
|
|
35
35
|
"path-exists": "^5.0.0",
|
|
36
36
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
37
37
|
"realpath-missing": "^2.0.0",
|
|
38
|
-
"@pnpm/building.during-install": "1100.0.
|
|
39
|
-
"@pnpm/bins.linker": "1100.0.
|
|
38
|
+
"@pnpm/building.during-install": "1100.0.3",
|
|
39
|
+
"@pnpm/bins.linker": "1100.0.2",
|
|
40
40
|
"@pnpm/building.policy": "1100.0.1",
|
|
41
41
|
"@pnpm/constants": "1100.0.0",
|
|
42
42
|
"@pnpm/core-loggers": "1100.0.1",
|
|
43
43
|
"@pnpm/config.package-is-installable": "1100.0.1",
|
|
44
|
-
"@pnpm/deps.graph-builder": "1100.0.
|
|
45
|
-
"@pnpm/deps.graph-hasher": "1100.0
|
|
46
|
-
"@pnpm/deps.path": "1100.0.1",
|
|
44
|
+
"@pnpm/deps.graph-builder": "1100.0.2",
|
|
45
|
+
"@pnpm/deps.graph-hasher": "1100.1.0",
|
|
47
46
|
"@pnpm/error": "1100.0.0",
|
|
48
|
-
"@pnpm/
|
|
47
|
+
"@pnpm/deps.path": "1100.0.1",
|
|
48
|
+
"@pnpm/exec.lifecycle": "1100.0.3",
|
|
49
49
|
"@pnpm/installing.linking.direct-dep-linker": "1100.0.1",
|
|
50
|
-
"@pnpm/installing.linking.modules-cleaner": "1100.0.1",
|
|
51
50
|
"@pnpm/fs.symlink-dependency": "1100.0.1",
|
|
52
|
-
"@pnpm/installing.linking.
|
|
53
|
-
"@pnpm/installing.linking.hoist": "1100.0.
|
|
51
|
+
"@pnpm/installing.linking.hoist": "1100.0.2",
|
|
52
|
+
"@pnpm/installing.linking.real-hoist": "1100.0.2",
|
|
54
53
|
"@pnpm/installing.modules-yaml": "1100.0.1",
|
|
55
|
-
"@pnpm/installing.
|
|
56
|
-
"@pnpm/
|
|
57
|
-
"@pnpm/lockfile.
|
|
54
|
+
"@pnpm/installing.linking.modules-cleaner": "1100.0.2",
|
|
55
|
+
"@pnpm/installing.package-requester": "1100.0.2",
|
|
56
|
+
"@pnpm/lockfile.filtering": "1100.0.2",
|
|
57
|
+
"@pnpm/lockfile.to-pnp": "1100.0.2",
|
|
58
|
+
"@pnpm/lockfile.fs": "1100.0.2",
|
|
59
|
+
"@pnpm/lockfile.utils": "1100.0.2",
|
|
58
60
|
"@pnpm/patching.config": "1100.0.1",
|
|
59
|
-
"@pnpm/
|
|
60
|
-
"@pnpm/
|
|
61
|
-
"@pnpm/types": "1101.0.0",
|
|
62
|
-
"@pnpm/store.controller-types": "1100.0.1",
|
|
61
|
+
"@pnpm/store.controller-types": "1100.0.2",
|
|
62
|
+
"@pnpm/workspace.project-manifest-reader": "1100.0.2",
|
|
63
63
|
"@pnpm/pkg-manifest.reader": "1100.0.1",
|
|
64
|
-
"@pnpm/
|
|
64
|
+
"@pnpm/types": "1101.0.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@pnpm/logger": ">=1001.0.0 <1002.0.0",
|
|
68
|
-
"@pnpm/worker": "^1100.0.
|
|
68
|
+
"@pnpm/worker": "^1100.0.2"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@jest/globals": "30.3.0",
|
|
@@ -77,18 +77,18 @@
|
|
|
77
77
|
"load-json-file": "^7.0.1",
|
|
78
78
|
"tempy": "3.0.0",
|
|
79
79
|
"write-json-file": "^7.0.0",
|
|
80
|
-
"@pnpm/assert-project": "1100.0.
|
|
81
|
-
"@pnpm/installing.deps-restorer": "1100.0.1",
|
|
82
|
-
"@pnpm/installing.read-projects-context": "1100.0.1",
|
|
83
|
-
"@pnpm/logger": "1100.0.0",
|
|
84
|
-
"@pnpm/prepare": "1100.0.1",
|
|
80
|
+
"@pnpm/assert-project": "1100.0.2",
|
|
85
81
|
"@pnpm/crypto.object-hasher": "1100.0.0",
|
|
82
|
+
"@pnpm/installing.deps-restorer": "1100.0.3",
|
|
83
|
+
"@pnpm/logger": "1100.0.0",
|
|
84
|
+
"@pnpm/installing.read-projects-context": "1100.0.2",
|
|
85
|
+
"@pnpm/prepare": "1100.0.2",
|
|
86
|
+
"@pnpm/store.cafs": "1100.0.2",
|
|
86
87
|
"@pnpm/store.index": "1100.0.0",
|
|
87
88
|
"@pnpm/store.path": "1100.0.0",
|
|
88
|
-
"@pnpm/store.cafs": "1100.0.1",
|
|
89
|
-
"@pnpm/testing.temp-store": "1100.0.1",
|
|
90
89
|
"@pnpm/test-fixtures": "1100.0.0",
|
|
91
|
-
"@pnpm/test-ipc-server": "1100.0.0"
|
|
90
|
+
"@pnpm/test-ipc-server": "1100.0.0",
|
|
91
|
+
"@pnpm/testing.temp-store": "1100.0.3"
|
|
92
92
|
},
|
|
93
93
|
"engines": {
|
|
94
94
|
"node": ">=22.13"
|