@pnpm/store.commands 1000.0.0 → 1100.0.1
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/inspecting/catIndex.d.ts +1 -1
- package/lib/inspecting/catIndex.js +1 -1
- package/lib/store/storePrune.js +15 -11
- package/package.json +36 -36
|
@@ -4,5 +4,5 @@ export declare const commandNames: string[];
|
|
|
4
4
|
export declare const rcOptionsTypes: typeof cliOptionsTypes;
|
|
5
5
|
export declare function cliOptionsTypes(): Record<string, unknown>;
|
|
6
6
|
export declare function help(): string;
|
|
7
|
-
export type CatIndexCommandOptions = Pick<Config, '
|
|
7
|
+
export type CatIndexCommandOptions = Pick<Config, 'configByUri' | 'pnpmHomeDir' | 'storeDir' | 'lockfileDir' | 'dir' | 'registries' | 'cacheDir'>;
|
|
8
8
|
export declare function handler(opts: CatIndexCommandOptions, params: string[]): Promise<string>;
|
|
@@ -38,7 +38,7 @@ export async function handler(opts, params) {
|
|
|
38
38
|
});
|
|
39
39
|
const { resolve } = createResolver({
|
|
40
40
|
...opts,
|
|
41
|
-
|
|
41
|
+
configByUri: opts.configByUri,
|
|
42
42
|
});
|
|
43
43
|
const pkgSnapshot = await resolve({ alias, bareSpecifier }, {
|
|
44
44
|
lockfileDir: opts.lockfileDir ?? opts.dir,
|
package/lib/store/storePrune.js
CHANGED
|
@@ -6,18 +6,22 @@ export async function storePrune(opts) {
|
|
|
6
6
|
if ((reporter != null) && typeof reporter === 'function') {
|
|
7
7
|
streamParser.on('data', reporter);
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
try {
|
|
10
|
+
await opts.storeController.prune(opts.removeAlienFiles);
|
|
11
|
+
await cleanExpiredDlxCache({
|
|
12
|
+
cacheDir: opts.cacheDir,
|
|
13
|
+
dlxCacheMaxAge: opts.dlxCacheMaxAge,
|
|
14
|
+
now: new Date(),
|
|
15
|
+
});
|
|
16
|
+
if (opts.globalPkgDir) {
|
|
17
|
+
cleanOrphanedInstallDirs(opts.globalPkgDir);
|
|
18
|
+
}
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
finally {
|
|
21
|
+
await opts.storeController.close();
|
|
22
|
+
if ((reporter != null) && typeof reporter === 'function') {
|
|
23
|
+
streamParser.removeListener('data', reporter);
|
|
24
|
+
}
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
27
|
//# sourceMappingURL=storePrune.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/store.commands",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1100.0.1",
|
|
4
4
|
"description": "Commands for controlling and inspecting the store",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -32,49 +32,49 @@
|
|
|
32
32
|
"p-filter": "^4.1.0",
|
|
33
33
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
34
34
|
"render-help": "^2.0.0",
|
|
35
|
-
"@pnpm/cli.utils": "
|
|
36
|
-
"@pnpm/config.normalize-registries": "
|
|
37
|
-
"@pnpm/config.reader": "
|
|
38
|
-
"@pnpm/
|
|
39
|
-
"@pnpm/
|
|
40
|
-
"@pnpm/
|
|
41
|
-
"@pnpm/
|
|
42
|
-
"@pnpm/installing.
|
|
43
|
-
"@pnpm/
|
|
44
|
-
"@pnpm/
|
|
45
|
-
"@pnpm/lockfile.types": "
|
|
46
|
-
"@pnpm/
|
|
47
|
-
"@pnpm/
|
|
48
|
-
"@pnpm/
|
|
49
|
-
"@pnpm/store.
|
|
50
|
-
"@pnpm/
|
|
51
|
-
"@pnpm/store.
|
|
52
|
-
"@pnpm/store.
|
|
53
|
-
"@pnpm/store.path": "
|
|
54
|
-
"@pnpm/types": "
|
|
35
|
+
"@pnpm/cli.utils": "1100.0.1",
|
|
36
|
+
"@pnpm/config.normalize-registries": "1100.0.1",
|
|
37
|
+
"@pnpm/config.reader": "1100.0.1",
|
|
38
|
+
"@pnpm/deps.path": "1100.0.1",
|
|
39
|
+
"@pnpm/crypto.integrity": "1100.0.0",
|
|
40
|
+
"@pnpm/error": "1100.0.0",
|
|
41
|
+
"@pnpm/global.packages": "1100.0.1",
|
|
42
|
+
"@pnpm/installing.context": "1100.0.1",
|
|
43
|
+
"@pnpm/installing.client": "1100.0.1",
|
|
44
|
+
"@pnpm/fs.graceful-fs": "1100.0.0",
|
|
45
|
+
"@pnpm/lockfile.types": "1100.0.1",
|
|
46
|
+
"@pnpm/lockfile.utils": "1100.0.1",
|
|
47
|
+
"@pnpm/object.key-sorting": "1100.0.0",
|
|
48
|
+
"@pnpm/resolving.parse-wanted-dependency": "1100.0.0",
|
|
49
|
+
"@pnpm/store.cafs": "1100.0.1",
|
|
50
|
+
"@pnpm/store.controller-types": "1100.0.1",
|
|
51
|
+
"@pnpm/store.index": "1100.0.0",
|
|
52
|
+
"@pnpm/store.connection-manager": "1100.0.1",
|
|
53
|
+
"@pnpm/store.path": "1100.0.0",
|
|
54
|
+
"@pnpm/types": "1101.0.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@pnpm/logger": ">=1001.0.0 <1002.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@jest/globals": "30.0
|
|
61
|
-
"@pnpm/registry-mock": "
|
|
60
|
+
"@jest/globals": "30.3.0",
|
|
61
|
+
"@pnpm/registry-mock": "6.0.0",
|
|
62
62
|
"@types/archy": "0.0.36",
|
|
63
|
-
"@types/ramda": "0.
|
|
63
|
+
"@types/ramda": "0.31.1",
|
|
64
64
|
"@types/ssri": "^7.1.5",
|
|
65
65
|
"@zkochan/rimraf": "^4.0.0",
|
|
66
66
|
"execa": "npm:safe-execa@0.3.0",
|
|
67
67
|
"load-json-file": "^7.0.1",
|
|
68
|
-
"ssri": "13.0.
|
|
68
|
+
"ssri": "13.0.1",
|
|
69
69
|
"tempy": "3.0.0",
|
|
70
|
-
"@pnpm/
|
|
71
|
-
"@pnpm/
|
|
72
|
-
"@pnpm/
|
|
73
|
-
"@pnpm/
|
|
74
|
-
"@pnpm/
|
|
75
|
-
"@pnpm/prepare": "
|
|
76
|
-
"@pnpm/store.controller": "
|
|
77
|
-
"@pnpm/
|
|
70
|
+
"@pnpm/constants": "1100.0.0",
|
|
71
|
+
"@pnpm/assert-store": "1100.0.1",
|
|
72
|
+
"@pnpm/lockfile.fs": "1100.0.1",
|
|
73
|
+
"@pnpm/exec.commands": "1100.0.1",
|
|
74
|
+
"@pnpm/logger": "1100.0.0",
|
|
75
|
+
"@pnpm/prepare": "1100.0.1",
|
|
76
|
+
"@pnpm/store.controller": "1100.0.1",
|
|
77
|
+
"@pnpm/store.commands": "1100.0.1"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": ">=22.13"
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
87
|
+
"test": "pn compile && pn --filter=pnpm compile && pn .test",
|
|
88
|
+
"compile": "tsgo --build && pn lint --fix",
|
|
89
|
+
".test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --disable-warning=ExperimentalWarning --disable-warning=DEP0169\" jest"
|
|
90
90
|
}
|
|
91
91
|
}
|