@pnpm/installing.deps-installer 1101.1.2 → 1101.2.0
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/install/extendInstallOptions.d.ts +34 -1
- package/lib/install/extendInstallOptions.js +1 -0
- package/lib/install/index.d.ts +14 -1
- package/lib/install/index.js +82 -12
- package/lib/install/link.js +7 -1
- package/lib/install/recordLockfileVerified.d.ts +22 -0
- package/lib/install/recordLockfileVerified.js +24 -0
- package/lib/install/verifyLockfileResolutions.d.ts +59 -0
- package/lib/install/verifyLockfileResolutions.js +225 -0
- package/lib/install/verifyLockfileResolutionsCache.d.ts +80 -0
- package/lib/install/verifyLockfileResolutionsCache.js +335 -0
- package/lib/install/writeLockfilesAndRecordVerified.d.ts +14 -0
- package/lib/install/writeLockfilesAndRecordVerified.js +32 -0
- package/lib/install/writeWantedLockfileAndRecordVerified.d.ts +12 -0
- package/lib/install/writeWantedLockfileAndRecordVerified.js +28 -0
- package/package.json +46 -46
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type LockfileObject } from '@pnpm/lockfile.fs';
|
|
2
|
+
import type { ResolutionVerifier } from '@pnpm/resolving.resolver-base';
|
|
3
|
+
export interface WriteWantedLockfileAndRecordVerifiedOptions {
|
|
4
|
+
lockfileDir: string;
|
|
5
|
+
lockfile: LockfileObject;
|
|
6
|
+
cacheDir?: string;
|
|
7
|
+
resolutionVerifiers: readonly ResolutionVerifier[] | undefined;
|
|
8
|
+
useGitBranchLockfile?: boolean;
|
|
9
|
+
mergeGitBranchLockfiles?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** Combines {@link writeWantedLockfile} and {@link recordLockfileVerified} — see each for semantics. */
|
|
12
|
+
export declare function writeWantedLockfileAndRecordVerified(opts: WriteWantedLockfileAndRecordVerifiedOptions): Promise<LockfileObject>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { getWantedLockfileName, writeWantedLockfile } from '@pnpm/lockfile.fs';
|
|
3
|
+
import { recordLockfileVerified } from './recordLockfileVerified.js';
|
|
4
|
+
/** Combines {@link writeWantedLockfile} and {@link recordLockfileVerified} — see each for semantics. */
|
|
5
|
+
export async function writeWantedLockfileAndRecordVerified(opts) {
|
|
6
|
+
const cacheActive = opts.cacheDir != null && (opts.resolutionVerifiers?.length ?? 0) > 0;
|
|
7
|
+
const lockfileName = cacheActive
|
|
8
|
+
? await getWantedLockfileName({
|
|
9
|
+
useGitBranchLockfile: opts.useGitBranchLockfile,
|
|
10
|
+
mergeGitBranchLockfiles: opts.mergeGitBranchLockfiles,
|
|
11
|
+
})
|
|
12
|
+
: undefined;
|
|
13
|
+
const written = await writeWantedLockfile(opts.lockfileDir, opts.lockfile, {
|
|
14
|
+
useGitBranchLockfile: opts.useGitBranchLockfile,
|
|
15
|
+
mergeGitBranchLockfiles: opts.mergeGitBranchLockfiles,
|
|
16
|
+
lockfileName,
|
|
17
|
+
});
|
|
18
|
+
if (cacheActive) {
|
|
19
|
+
recordLockfileVerified({
|
|
20
|
+
cacheDir: opts.cacheDir,
|
|
21
|
+
lockfilePath: path.resolve(opts.lockfileDir, lockfileName),
|
|
22
|
+
lockfile: written,
|
|
23
|
+
resolutionVerifiers: opts.resolutionVerifiers,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return written;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=writeWantedLockfileAndRecordVerified.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/installing.deps-installer",
|
|
3
|
-
"version": "1101.
|
|
3
|
+
"version": "1101.2.0",
|
|
4
4
|
"description": "Fast, disk space efficient installation engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -62,60 +62,60 @@
|
|
|
62
62
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
63
63
|
"run-groups": "^5.0.0",
|
|
64
64
|
"semver": "^7.7.2",
|
|
65
|
-
"@pnpm/
|
|
66
|
-
"@pnpm/
|
|
67
|
-
"@pnpm/
|
|
68
|
-
"@pnpm/
|
|
69
|
-
"@pnpm/building.
|
|
70
|
-
"@pnpm/building.
|
|
65
|
+
"@pnpm/agent.client": "1.0.6",
|
|
66
|
+
"@pnpm/bins.linker": "1100.0.7",
|
|
67
|
+
"@pnpm/bins.remover": "1100.0.4",
|
|
68
|
+
"@pnpm/building.after-install": "1101.0.13",
|
|
69
|
+
"@pnpm/building.during-install": "1101.0.11",
|
|
70
|
+
"@pnpm/building.policy": "1100.0.5",
|
|
71
71
|
"@pnpm/catalogs.protocol-parser": "1100.0.0",
|
|
72
72
|
"@pnpm/catalogs.resolver": "1100.0.0",
|
|
73
|
-
"@pnpm/config.matcher": "1100.0.1",
|
|
74
73
|
"@pnpm/catalogs.types": "1100.0.0",
|
|
74
|
+
"@pnpm/config.matcher": "1100.0.1",
|
|
75
75
|
"@pnpm/config.normalize-registries": "1100.0.3",
|
|
76
|
-
"@pnpm/constants": "1100.0.0",
|
|
77
76
|
"@pnpm/config.parse-overrides": "1100.0.1",
|
|
77
|
+
"@pnpm/constants": "1100.0.0",
|
|
78
|
+
"@pnpm/core-loggers": "1100.1.0",
|
|
78
79
|
"@pnpm/crypto.hash": "1100.0.1",
|
|
79
|
-
"@pnpm/core-loggers": "1100.0.2",
|
|
80
80
|
"@pnpm/crypto.object-hasher": "1100.0.0",
|
|
81
|
-
"@pnpm/deps.graph-hasher": "1100.
|
|
81
|
+
"@pnpm/deps.graph-hasher": "1100.2.0",
|
|
82
82
|
"@pnpm/deps.graph-sequencer": "1100.0.0",
|
|
83
83
|
"@pnpm/deps.path": "1100.0.3",
|
|
84
84
|
"@pnpm/error": "1100.0.0",
|
|
85
|
-
"@pnpm/exec.lifecycle": "1100.0.
|
|
85
|
+
"@pnpm/exec.lifecycle": "1100.0.11",
|
|
86
86
|
"@pnpm/fs.read-modules-dir": "1100.0.1",
|
|
87
|
-
"@pnpm/fs.symlink-dependency": "1100.0.
|
|
87
|
+
"@pnpm/fs.symlink-dependency": "1100.0.4",
|
|
88
88
|
"@pnpm/hooks.read-package-hook": "1100.0.3",
|
|
89
|
-
"@pnpm/hooks.types": "1100.0.
|
|
90
|
-
"@pnpm/installing.
|
|
91
|
-
"@pnpm/installing.deps-
|
|
92
|
-
"@pnpm/installing.
|
|
93
|
-
"@pnpm/installing.
|
|
94
|
-
"@pnpm/installing.linking.
|
|
95
|
-
"@pnpm/installing.linking.
|
|
89
|
+
"@pnpm/hooks.types": "1100.0.7",
|
|
90
|
+
"@pnpm/installing.context": "1100.0.11",
|
|
91
|
+
"@pnpm/installing.deps-resolver": "1100.1.0",
|
|
92
|
+
"@pnpm/installing.deps-restorer": "1101.1.3",
|
|
93
|
+
"@pnpm/installing.linking.direct-dep-linker": "1100.0.4",
|
|
94
|
+
"@pnpm/installing.linking.hoist": "1100.0.7",
|
|
95
|
+
"@pnpm/installing.linking.modules-cleaner": "1100.1.2",
|
|
96
96
|
"@pnpm/installing.modules-yaml": "1100.0.4",
|
|
97
|
-
"@pnpm/installing.package-requester": "1101.0.
|
|
98
|
-
"@pnpm/lockfile.filtering": "1100.1.
|
|
99
|
-
"@pnpm/lockfile.fs": "1100.0
|
|
100
|
-
"@pnpm/lockfile.preferred-versions": "1100.0.
|
|
101
|
-
"@pnpm/lockfile.pruner": "1100.0.
|
|
102
|
-
"@pnpm/lockfile.
|
|
103
|
-
"@pnpm/lockfile.
|
|
104
|
-
"@pnpm/lockfile.utils": "1100.0.
|
|
105
|
-
"@pnpm/lockfile.verification": "1100.0.
|
|
106
|
-
"@pnpm/lockfile.walker": "1100.0.
|
|
97
|
+
"@pnpm/installing.package-requester": "1101.0.7",
|
|
98
|
+
"@pnpm/lockfile.filtering": "1100.1.1",
|
|
99
|
+
"@pnpm/lockfile.fs": "1100.1.0",
|
|
100
|
+
"@pnpm/lockfile.preferred-versions": "1100.0.10",
|
|
101
|
+
"@pnpm/lockfile.pruner": "1100.0.6",
|
|
102
|
+
"@pnpm/lockfile.settings-checker": "1100.0.11",
|
|
103
|
+
"@pnpm/lockfile.to-pnp": "1100.0.9",
|
|
104
|
+
"@pnpm/lockfile.utils": "1100.0.8",
|
|
105
|
+
"@pnpm/lockfile.verification": "1100.0.11",
|
|
106
|
+
"@pnpm/lockfile.walker": "1100.0.6",
|
|
107
107
|
"@pnpm/patching.config": "1100.0.3",
|
|
108
|
-
"@pnpm/
|
|
109
|
-
"@pnpm/store.controller-types": "1100.0.7",
|
|
108
|
+
"@pnpm/pkg-manifest.utils": "1100.1.4",
|
|
110
109
|
"@pnpm/resolving.parse-wanted-dependency": "1100.0.1",
|
|
111
|
-
"@pnpm/
|
|
110
|
+
"@pnpm/resolving.resolver-base": "1100.2.0",
|
|
111
|
+
"@pnpm/store.controller-types": "1100.1.0",
|
|
112
112
|
"@pnpm/store.index": "1100.1.0",
|
|
113
|
-
"@pnpm/
|
|
114
|
-
"@pnpm/workspace.project-manifest-reader": "1100.0.
|
|
113
|
+
"@pnpm/types": "1101.1.0",
|
|
114
|
+
"@pnpm/workspace.project-manifest-reader": "1100.0.6"
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"@pnpm/logger": ">=1001.0.0 <1002.0.0",
|
|
118
|
-
"@pnpm/worker": "^1100.1.
|
|
118
|
+
"@pnpm/worker": "^1100.1.6"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@jest/globals": "30.3.0",
|
|
@@ -138,21 +138,21 @@
|
|
|
138
138
|
"symlink-dir": "^10.0.1",
|
|
139
139
|
"write-json-file": "^7.0.0",
|
|
140
140
|
"write-yaml-file": "^6.0.0",
|
|
141
|
-
"@pnpm/assert-project": "1100.0.
|
|
142
|
-
"@pnpm/
|
|
143
|
-
"@pnpm/
|
|
144
|
-
"@pnpm/lockfile.types": "1100.0.
|
|
145
|
-
"@pnpm/network.git-utils": "1100.0.1",
|
|
141
|
+
"@pnpm/assert-project": "1100.0.9",
|
|
142
|
+
"@pnpm/assert-store": "1100.0.9",
|
|
143
|
+
"@pnpm/installing.deps-installer": "1101.2.0",
|
|
144
|
+
"@pnpm/lockfile.types": "1100.0.6",
|
|
146
145
|
"@pnpm/logger": "1100.0.0",
|
|
147
|
-
"@pnpm/
|
|
146
|
+
"@pnpm/network.git-utils": "1100.0.1",
|
|
148
147
|
"@pnpm/pkg-manifest.reader": "1100.0.3",
|
|
149
|
-
"@pnpm/
|
|
150
|
-
"@pnpm/
|
|
148
|
+
"@pnpm/prepare": "1100.0.9",
|
|
149
|
+
"@pnpm/resolving.registry.types": "1100.0.3",
|
|
150
|
+
"@pnpm/store.cafs": "1100.1.5",
|
|
151
151
|
"@pnpm/store.path": "1100.0.1",
|
|
152
152
|
"@pnpm/test-fixtures": "1100.0.0",
|
|
153
153
|
"@pnpm/test-ipc-server": "1100.0.0",
|
|
154
|
-
"@pnpm/testing.mock-agent": "1100.0.
|
|
155
|
-
"@pnpm/testing.temp-store": "1100.0
|
|
154
|
+
"@pnpm/testing.mock-agent": "1100.0.5",
|
|
155
|
+
"@pnpm/testing.temp-store": "1100.1.0"
|
|
156
156
|
},
|
|
157
157
|
"engines": {
|
|
158
158
|
"node": ">=22.13"
|