@pnpm/store.commands 1100.0.0 → 1100.0.2

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.
@@ -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
- await opts.storeController.prune(opts.removeAlienFiles);
10
- await opts.storeController.close();
11
- await cleanExpiredDlxCache({
12
- cacheDir: opts.cacheDir,
13
- dlxCacheMaxAge: opts.dlxCacheMaxAge,
14
- now: new Date(),
15
- });
16
- if (opts.globalPkgDir) {
17
- cleanOrphanedInstallDirs(opts.globalPkgDir);
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
- if ((reporter != null) && typeof reporter === 'function') {
20
- streamParser.removeListener('data', reporter);
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": "1100.0.0",
3
+ "version": "1100.0.2",
4
4
  "description": "Commands for controlling and inspecting the store",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -32,26 +32,26 @@
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": "1100.0.0",
36
- "@pnpm/config.reader": "1100.0.0",
37
- "@pnpm/config.normalize-registries": "1100.0.0",
38
- "@pnpm/crypto.integrity": "1100.0.0",
39
- "@pnpm/deps.path": "1100.0.0",
35
+ "@pnpm/cli.utils": "1101.0.0",
36
+ "@pnpm/config.normalize-registries": "1100.0.1",
37
+ "@pnpm/config.reader": "1101.0.0",
38
+ "@pnpm/deps.path": "1100.0.1",
40
39
  "@pnpm/error": "1100.0.0",
41
- "@pnpm/global.packages": "1100.0.0",
42
- "@pnpm/installing.client": "1100.0.0",
43
40
  "@pnpm/fs.graceful-fs": "1100.0.0",
44
- "@pnpm/installing.context": "1100.0.0",
45
- "@pnpm/lockfile.types": "1100.0.0",
46
- "@pnpm/lockfile.utils": "1100.0.0",
41
+ "@pnpm/crypto.integrity": "1100.0.0",
42
+ "@pnpm/global.packages": "1100.0.1",
43
+ "@pnpm/lockfile.types": "1100.0.1",
44
+ "@pnpm/installing.client": "1100.0.2",
45
+ "@pnpm/installing.context": "1100.0.1",
47
46
  "@pnpm/object.key-sorting": "1100.0.0",
48
- "@pnpm/store.cafs": "1100.0.0",
49
47
  "@pnpm/resolving.parse-wanted-dependency": "1100.0.0",
50
- "@pnpm/store.connection-manager": "1100.0.0",
51
- "@pnpm/store.controller-types": "1100.0.0",
48
+ "@pnpm/store.cafs": "1100.0.1",
49
+ "@pnpm/lockfile.utils": "1100.0.1",
50
+ "@pnpm/store.connection-manager": "1100.0.2",
51
+ "@pnpm/store.path": "1100.0.0",
52
52
  "@pnpm/store.index": "1100.0.0",
53
- "@pnpm/types": "1100.0.0",
54
- "@pnpm/store.path": "1100.0.0"
53
+ "@pnpm/store.controller-types": "1100.0.1",
54
+ "@pnpm/types": "1101.0.0"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@pnpm/logger": ">=1001.0.0 <1002.0.0"
@@ -67,14 +67,14 @@
67
67
  "load-json-file": "^7.0.1",
68
68
  "ssri": "13.0.1",
69
69
  "tempy": "3.0.0",
70
- "@pnpm/assert-store": "1100.0.0",
70
+ "@pnpm/assert-store": "1100.0.1",
71
71
  "@pnpm/constants": "1100.0.0",
72
+ "@pnpm/exec.commands": "1100.0.2",
73
+ "@pnpm/lockfile.fs": "1100.0.1",
72
74
  "@pnpm/logger": "1100.0.0",
73
- "@pnpm/lockfile.fs": "1100.0.0",
74
- "@pnpm/exec.commands": "1100.0.0",
75
- "@pnpm/store.commands": "1100.0.0",
76
- "@pnpm/prepare": "1100.0.0",
77
- "@pnpm/store.controller": "1100.0.0"
75
+ "@pnpm/prepare": "1100.0.1",
76
+ "@pnpm/store.commands": "1100.0.2",
77
+ "@pnpm/store.controller": "1100.0.1"
78
78
  },
79
79
  "engines": {
80
80
  "node": ">=22.13"