@iyowei/sweep-node-modules 0.1.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/LICENSE +21 -0
- package/README.md +88 -0
- package/bin/sweep-nm.mjs +41 -0
- package/dist/cli.js +1247 -0
- package/package.json +52 -0
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@iyowei/sweep-node-modules",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "工作区级 node_modules 清理工具: 一次扫描多个根目录, 跨项目列出体积, 确认后批量删除。",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cli",
|
|
7
|
+
"bun",
|
|
8
|
+
"nodejs",
|
|
9
|
+
"node-modules",
|
|
10
|
+
"disk-usage",
|
|
11
|
+
"cleanup"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/iyowei/sweep-node-modules.git"
|
|
17
|
+
},
|
|
18
|
+
"type": "module",
|
|
19
|
+
"bin": {
|
|
20
|
+
"sweep-nm": "bin/sweep-nm.mjs"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"bin/sweep-nm.mjs",
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=22.18.0"
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"prepare": "[ -z \"$CI\" ] && lefthook install || true",
|
|
34
|
+
"build": "bun build src/cli.ts --target=node --outfile=dist/cli.js",
|
|
35
|
+
"prepublishOnly": "npm run build",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"lint": "oxlint",
|
|
38
|
+
"lint:fix": "oxlint --fix",
|
|
39
|
+
"format": "prettier --write .",
|
|
40
|
+
"test": "bun test",
|
|
41
|
+
"bench": "bun bench/run.ts",
|
|
42
|
+
"conformance": "bun scripts/transcription/run-conformance.ts"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@trivago/prettier-plugin-sort-imports": "6.0.2",
|
|
46
|
+
"@types/bun": "1.4.2",
|
|
47
|
+
"lefthook": "2.1.14",
|
|
48
|
+
"oxlint": "1.85.0",
|
|
49
|
+
"prettier": "3.9.8",
|
|
50
|
+
"typescript": "7.0.2"
|
|
51
|
+
}
|
|
52
|
+
}
|