|
1 | 1 | { |
2 | | - "name": "ccusage", |
| 2 | + "name": "ccusage-monorepo", |
| 3 | + "private": true, |
3 | 4 | "type": "module", |
4 | | - "version": "16.2.5", |
5 | | - "description": "Usage analysis tool for Claude Code", |
6 | | - "author": "ryoppippi", |
7 | | - "license": "MIT", |
8 | | - "funding": "https://github.com/ryoppippi/ccusage?sponsor=1", |
9 | | - "homepage": "https://github.com/ryoppippi/ccusage#readme", |
10 | | - "repository": { |
11 | | - "type": "git", |
12 | | - "url": "git+https://github.com/ryoppippi/ccusage.git" |
13 | | - }, |
14 | | - "bugs": { |
15 | | - "url": "https://github.com/ryoppippi/ccusage/issues" |
16 | | - }, |
17 | | - "exports": { |
18 | | - ".": "./dist/index.js", |
19 | | - "./calculate-cost": "./dist/calculate-cost.js", |
20 | | - "./data-loader": "./dist/data-loader.js", |
21 | | - "./debug": "./dist/debug.js", |
22 | | - "./logger": "./dist/logger.js", |
23 | | - "./mcp": "./dist/mcp.js", |
24 | | - "./pricing-fetcher": "./dist/pricing-fetcher.js", |
25 | | - "./package.json": "./package.json" |
26 | | - }, |
27 | | - "main": "./dist/index.js", |
28 | | - "module": "./dist/index.js", |
29 | | - "types": "./dist/index.d.ts", |
30 | | - "bin": "./dist/index.js", |
31 | | - "files": [ |
32 | | - "config-schema.json", |
33 | | - "dist" |
34 | | - ], |
35 | 5 | "workspaces": [ |
36 | | - ".", |
| 6 | + "packages/*", |
37 | 7 | "docs" |
38 | 8 | ], |
39 | | - "engines": { |
40 | | - "node": ">=20.19.4" |
41 | | - }, |
42 | 9 | "scripts": { |
43 | | - "build": "bun run generate:schema && tsdown", |
44 | | - "docs:build": "cd docs && bun run build", |
45 | | - "docs:deploy": "cd docs && bun run deploy", |
46 | | - "docs:dev": "cd docs && bun run dev", |
47 | | - "docs:preview": "cd docs && bun run preview", |
48 | | - "format": "bun run lint --fix", |
49 | | - "generate:schema": "bun run scripts/generate-json-schema.ts", |
| 10 | + "build": "bun run --filter '*' build", |
| 11 | + "docs:dev": "bun run --cwd docs dev", |
| 12 | + "format": "bun run --filter '*' format", |
50 | 13 | "preinstall": "npx only-allow bun", |
51 | | - "lint": "eslint --cache .", |
52 | | - "mcp": "bunx @modelcontextprotocol/inspector bun run start mcp", |
53 | | - "prepack": "bun run build && bun clean-pkg-json -r scripts.preinstall", |
54 | | - "prepare": "git config --local core.hooksPath .githooks && bun run generate:schema && ln -s ./CLAUDE.md ./AGENTS.md || true", |
55 | | - "release": "bun lint && bun typecheck && vitest && bun run build && bumpp", |
56 | | - "start": "bun run ./src/index.ts", |
57 | | - "test": "TZ=UTC vitest", |
58 | | - "test:statusline": "cat test/statusline-test.json | bun run start statusline", |
59 | | - "test:statusline:all": "echo 'Testing Sonnet 4:' && bun run test:statusline:sonnet4 && echo 'Testing Opus 4.1:' && bun run test:statusline:opus4 && echo 'Testing Sonnet 4.1:' && bun run test:statusline:sonnet41", |
60 | | - "test:statusline:opus4": "cat test/statusline-test-opus4.json | bun run start statusline --offline", |
61 | | - "test:statusline:sonnet4": "cat test/statusline-test-sonnet4.json | bun run start statusline --offline", |
62 | | - "test:statusline:sonnet41": "cat test/statusline-test-sonnet41.json | bun run start statusline --offline", |
63 | | - "typecheck": "tsgo --noEmit" |
64 | | - }, |
65 | | - "devDependencies": { |
66 | | - "@antfu/utils": "^9.2.0", |
67 | | - "@hono/mcp": "^0.1.4", |
68 | | - "@hono/node-server": "^1.19.2", |
69 | | - "@mizchi/lsmcp": "^0.10.0", |
70 | | - "@modelcontextprotocol/sdk": "^1.17.3", |
71 | | - "@oxc-project/runtime": "^0.82.3", |
72 | | - "@praha/byethrow": "^0.6.3", |
73 | | - "@praha/byethrow-mcp": "^0.1.2", |
74 | | - "@ryoppippi/eslint-config": "^0.3.7", |
75 | | - "@ryoppippi/limo": "npm:@jsr/ryoppippi__limo@^0.2.2", |
76 | | - "@std/async": "npm:@jsr/std__async@^1.0.14", |
77 | | - "@types/bun": "^1.2.20", |
78 | | - "@typescript/native-preview": "^7.0.0-dev.20250821.1", |
79 | | - "ansi-escapes": "^7.0.0", |
80 | | - "bumpp": "^10.2.3", |
81 | | - "clean-pkg-json": "^1.3.0", |
82 | | - "cli-table3": "^0.6.5", |
83 | | - "consola": "^3.4.2", |
84 | | - "es-toolkit": "^1.39.10", |
85 | | - "eslint": "^9.33.0", |
86 | | - "eslint-plugin-format": "^1.0.1", |
87 | | - "fast-sort": "^3.4.1", |
88 | | - "fs-fixture": "^2.8.1", |
89 | | - "get-stdin": "^9.0.0", |
90 | | - "gunshi": "^0.26.3", |
91 | | - "hono": "^4.9.2", |
92 | | - "lint-staged": "^16.1.5", |
93 | | - "nano-spawn": "^1.0.2", |
94 | | - "p-limit": "^7.1.0", |
95 | | - "path-type": "^6.0.0", |
96 | | - "picocolors": "^1.1.1", |
97 | | - "pretty-ms": "^9.2.0", |
98 | | - "publint": "^0.3.12", |
99 | | - "sort-package-json": "^3.4.0", |
100 | | - "string-width": "^7.2.0", |
101 | | - "tinyglobby": "^0.2.14", |
102 | | - "tsdown": "^0.14.1", |
103 | | - "type-fest": "^4.41.0", |
104 | | - "unplugin-macros": "^0.18.0", |
105 | | - "unplugin-unused": "^0.5.2", |
106 | | - "vitest": "^3.2.4", |
107 | | - "xdg-basedir": "^5.1.0", |
108 | | - "zod": "^3.25.67" |
| 14 | + "lint": "bun run --filter '*' lint", |
| 15 | + "prepare": "git config --local core.hooksPath .githooks && (ln -s ./CLAUDE.md ./AGENTS.md || true)", |
| 16 | + "release": "bun bumpp -r" |
109 | 17 | }, |
110 | 18 | "lint-staged": { |
111 | 19 | "*": [ |
112 | | - "eslint --cache --fix", |
113 | | - "bun run generate:schema", |
114 | | - "bun vitest --passWithNoTests" |
| 20 | + "bun run format" |
115 | 21 | ], |
116 | 22 | "package.json": [ |
117 | | - "sort-package-json" |
| 23 | + "bun sort-package-json" |
118 | 24 | ] |
| 25 | + }, |
| 26 | + "devDependencies": { |
| 27 | + "bumpp": "^10.2.3", |
| 28 | + "lint-staged": "^16.1.5", |
| 29 | + "sort-package-json": "^3.4.0" |
| 30 | + }, |
| 31 | + "packageManager": "[email protected]", |
| 32 | + "engines": { |
| 33 | + "node": ">=20.19.4" |
119 | 34 | } |
120 | 35 | } |
0 commit comments