-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
79 lines (79 loc) · 2.3 KB
/
package.json
File metadata and controls
79 lines (79 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"name": "claude-code-complexity-analyzer",
"version": "0.0.1",
"description": "A modern code complexity analyzer with actionable insights",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"bin": {
"complexity-analyzer": "./dist/cli.js"
},
"files": [
"dist",
"hooks",
"scripts",
"README.md",
"LICENSE"
],
"scripts": {
"test": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest --coverage",
"build": "bun run build:cli && bun run build:lib && bun run build:types",
"build:cli": "bun build ./src/cli.ts --outdir ./dist --target node --external ts-morph --external commander --external chalk --external ora",
"build:lib": "bun build ./index.ts --outdir ./dist --target node --external ts-morph",
"build:types": "tsc --emitDeclarationOnly --declaration --outDir dist",
"dev": "bun run src/cli.ts",
"analyze": "bun run src/cli.ts analyze src",
"analyze:self": "bun run src/cli.ts analyze src",
"analyze:json": "bun run src/cli.ts analyze src --format json",
"setup-hooks": "bash scripts/setup-hooks.sh",
"ci": "bun test && bun run analyze --max-complexity 15",
"prepublishOnly": "bun test && bun run build",
"postinstall": "node -e \"console.log('Run: npx complexity-analyzer setup-hooks to install git hooks')\""
},
"keywords": [
"complexity",
"code-analysis",
"cognitive-complexity",
"cyclomatic-complexity",
"ast",
"typescript",
"code-quality",
"maintainability",
"linter",
"static-analysis"
],
"author": "Your Name",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/hew/complexity-analyzer.git"
},
"bugs": {
"url": "https://github.com/hew/complexity-analyzer/issues"
},
"homepage": "https://github.com/hew/complexity-analyzer#readme",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"chalk": "^5.6.0",
"commander": "^14.0.0",
"fast-glob": "^3.3.3",
"ora": "^8.2.0",
"ts-morph": "^26.0.0"
},
"devDependencies": {
"@types/bun": "latest",
"@types/node": "^20.0.0",
"@typescript-eslint/parser": "^8.39.1",
"@vitest/ui": "^3.2.4",
"typescript": "^5.9.2",
"vitest": "^3.2.4"
},
"peerDependencies": {
"typescript": "^5"
}
}