@iyowei/sweep-node-modules 0.2.0 → 0.4.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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "commit": "4435c66cd4c2b64ef6de536e7a096494163f29ea",
4
+ "dirty": false,
5
+ "cliSha256": "3ea797bfb9d609b61d3b294783e67ffe6147c49fbf988ac37a65594240b7c853",
6
+ "builtAt": "2026-09-27T16:43:17.535Z"
7
+ }
package/package.json CHANGED
@@ -1,14 +1,35 @@
1
1
  {
2
2
  "name": "@iyowei/sweep-node-modules",
3
- "version": "0.2.0",
4
- "description": "工作区级 node_modules 清理工具: 一次扫描多个根目录, 跨项目列出体积, 确认后批量删除。",
3
+ "version": "0.4.0",
4
+ "description": "CLI tool to find and delete node_modules across projects: scan multiple workspace roots (monorepo friendly), bulk-remove them to free up disk space, preview first and delete after confirmation. 工作区级 node_modules 批量清理工具。",
5
5
  "keywords": [
6
6
  "cli",
7
- "bun",
8
- "nodejs",
7
+ "cli-tool",
8
+ "tool",
9
9
  "node-modules",
10
+ "node_modules",
11
+ "modules",
12
+ "delete",
13
+ "remove",
14
+ "remover",
15
+ "del",
16
+ "cleaner",
17
+ "cleanup",
18
+ "clean",
19
+ "prune",
20
+ "sweep",
21
+ "bulk",
22
+ "batch",
10
23
  "disk-usage",
11
- "cleanup"
24
+ "disk-space",
25
+ "free-up-space",
26
+ "workspace",
27
+ "monorepo",
28
+ "npm",
29
+ "pnpm",
30
+ "yarn",
31
+ "bun",
32
+ "node"
12
33
  ],
13
34
  "author": "iYoWei",
14
35
  "license": "MIT",
@@ -16,6 +37,10 @@
16
37
  "type": "git",
17
38
  "url": "git+https://github.com/iyowei/sweep-node-modules.git"
18
39
  },
40
+ "homepage": "https://github.com/iyowei/sweep-node-modules#readme",
41
+ "bugs": {
42
+ "url": "https://github.com/iyowei/sweep-node-modules/issues"
43
+ },
19
44
  "type": "module",
20
45
  "bin": {
21
46
  "sweep-nm": "bin/sweep-nm.mjs"
@@ -31,9 +56,10 @@
31
56
  "access": "public"
32
57
  },
33
58
  "scripts": {
34
- "prepare": "[ -z \"$CI\" ] && lefthook install || true",
35
- "build": "bun build src/cli.ts --target=node --outfile=dist/cli.js",
36
- "prepublishOnly": "npm run build",
59
+ "prepare": "node scripts/install-git-hooks.mjs || exit 0",
60
+ "build": "bun build src/cli.ts --target=node --outfile=dist/cli.js && bun scripts/write-dist-manifest.ts",
61
+ "prepublishOnly": "npm run build && npm run verify:release",
62
+ "verify:release": "bun scripts/verify-release.ts",
37
63
  "typecheck": "tsc --noEmit",
38
64
  "lint": "oxlint",
39
65
  "lint:fix": "oxlint --fix",
@@ -45,7 +71,6 @@
45
71
  "devDependencies": {
46
72
  "@trivago/prettier-plugin-sort-imports": "6.0.2",
47
73
  "@types/bun": "1.4.2",
48
- "lefthook": "2.1.14",
49
74
  "oxlint": "1.85.0",
50
75
  "prettier": "3.9.8",
51
76
  "typescript": "7.0.2"