-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpackage.json
More file actions
63 lines (63 loc) · 1.94 KB
/
Copy pathpackage.json
File metadata and controls
63 lines (63 loc) · 1.94 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
{
"name": "@aryan28/diff-guard",
"version": "0.1.0",
"description": "Impact-aware git diff CLI using WASM tree-sitter AST to map API blast radius.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/",
"grammars/",
"README.md",
"LICENSE"
],
"engines": {
"node": ">=18"
},
"bin": {
"diff-guard": "dist/cli.js",
"dg": "dist/cli.js"
},
"scripts": {
"prepare": "husky",
"init": "npm install && npm run build:grammars",
"build": "tsc",
"postbuild": "shx chmod +x dist/cli.js",
"build:grammars": "shx mkdir -p grammars && npx tree-sitter build --wasm ./node_modules/tree-sitter-typescript/typescript && npx tree-sitter build --wasm ./node_modules/tree-sitter-typescript/tsx && npx tree-sitter build --wasm ./node_modules/tree-sitter-javascript && npx tree-sitter build --wasm ./node_modules/tree-sitter-python && npx tree-sitter build --wasm ./node_modules/tree-sitter-java && npx tree-sitter build --wasm ./node_modules/tree-sitter-rust && npx tree-sitter build --wasm ./node_modules/tree-sitter-go && shx mv *.wasm ./grammars/",
"dev": "tsx src/index.ts",
"test": "vitest",
"lint": "tsc --noEmit"
},
"keywords": [
"git",
"diff",
"ast",
"tree-sitter",
"breaking-changes",
"typescript",
"static-analysis"
],
"author": "Aryan Gupta",
"license": "MIT",
"dependencies": {
"chalk": "^4.1.2",
"glob": "^10.3.10",
"minimist": "^1.2.8",
"tree-sitter-go": "^0.21.0",
"tree-sitter-java": "^0.21.0",
"tree-sitter-javascript": "^0.21.0",
"tree-sitter-python": "^0.21.0",
"tree-sitter-rust": "^0.21.0",
"tree-sitter-typescript": "^0.21.0",
"web-tree-sitter": "^0.26.8"
},
"devDependencies": {
"@types/minimist": "^1.2.5",
"@types/node": "^20.11.0",
"husky": "^9.0.11",
"shx": "^0.4.0",
"tree-sitter-cli": "^0.26.8",
"tsx": "^4.7.1",
"typescript": "^5.4.0",
"vitest": "^4.1.4"
}
}