@lexmanh/shed-cli 0.2.0-beta.5 → 0.2.0-beta.6

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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -1
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -446,10 +446,12 @@ function aggregateForDisplay(items) {
446
446
  if (!first) continue;
447
447
  const totalBytes = arr.reduce((s, i) => s + i.sizeBytes, 0);
448
448
  const kind = first.metadata?.kind;
449
+ const parentDir = dirname(first.path);
450
+ const displayPath = parentDir === "." ? kind : parentDir;
449
451
  result.push({
450
452
  type: "aggregate",
451
453
  risk: first.risk,
452
- displayPath: dirname(first.path),
454
+ displayPath,
453
455
  description: `${arr.length} ${kind} files`,
454
456
  totalBytes,
455
457
  detector: first.detector,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexmanh/shed-cli",
3
- "version": "0.2.0-beta.5",
3
+ "version": "0.2.0-beta.6",
4
4
  "description": "Safe disk cleanup CLI for dev machines and Linux servers — git-aware, cross-stack, trash-by-default",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,7 +23,7 @@
23
23
  "conf": "^13.1.0",
24
24
  "execa": "^9.5.0",
25
25
  "picocolors": "^1.1.1",
26
- "@lexmanh/shed-core": "0.2.0-beta.5"
26
+ "@lexmanh/shed-core": "0.2.0-beta.6"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^22.10.0",