-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
81 lines (81 loc) · 2.32 KB
/
package.json
File metadata and controls
81 lines (81 loc) · 2.32 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
80
81
{
"name": "contextcalc",
"version": "1.4.4",
"description": "A fast CLI tool and library for analyzing codebase structure and token counts for LLM context management",
"main": "dist/lib/index.js",
"module": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"type": "module",
"bin": {
"contextcalc": "./dist/cli.js"
},
"exports": {
".": {
"import": "./dist/lib/index.js",
"types": "./dist/lib/index.d.ts"
},
"./cli": "./dist/cli.js"
},
"scripts": {
"build": "bun run build:lib && bun run build:cli && bun run build:types",
"build:lib": "bun build src/lib/index.ts --outdir dist/lib --target node --format esm --external tiktoken --external tree-sitter --external 'tree-sitter-*'",
"build:cli": "bun build src/cli.ts --outdir dist --target node --format esm --external tiktoken --external tree-sitter --external 'tree-sitter-*' && chmod +x dist/cli.js",
"build:types": "bun run tsc --declaration --emitDeclarationOnly --outDir dist --noEmit false",
"dev": "bun run src/cli.ts",
"dev:lib": "bun run src/lib/index.ts",
"test": "bun test",
"test_all": "bun test && bun run tsc && bun run lint",
"typecheck": "bun run tsc --noEmit",
"lint": "eslint src/ test/",
"lint:fix": "eslint src/ test/ --fix",
"pack": "bun run build && npm pack --dry-run",
"prepublishOnly": "bun run build"
},
"keywords": [
"cli",
"library",
"api",
"tokens",
"llm",
"context",
"codebase",
"analysis",
"tokenizer"
],
"author": "Ivan",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/agentinit/contextcalc.git"
},
"dependencies": {
"commander": "^12.1.0",
"tiktoken": "^1.0.17",
"ignore": "^5.3.2",
"chalk": "^5.3.0",
"tree-sitter": "^0.21.1",
"tree-sitter-typescript": "^0.23.0",
"tree-sitter-javascript": "^0.23.0",
"tree-sitter-python": "^0.23.2"
},
"devDependencies": {
"@eslint/js": "^9.35.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/bun": "latest",
"@types/node": "^22.5.4",
"eslint": "^9.35.0",
"typescript-eslint": "^8.42.0"
},
"files": [
"dist/",
"dist/lib/",
"dist/**/*.d.ts"
],
"peerDependencies": {
"typescript": "^5"
},
"engines": {
"node": ">=18.0.0"
}
}