-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
98 lines (98 loc) · 3.02 KB
/
package.json
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"name": "tree-sitter-typescript",
"version": "0.19.0",
"description": "Typescript grammar for tree-sitter",
"keywords": [
"parser",
"tree-sitter",
"typescript"
],
"author": "Max Brunsfeld",
"license": "MIT",
"dependencies": {
"nan": "^2.14.0"
},
"main": "./bindings/node",
"devDependencies": {
"tree-sitter-cli": "^0.19.1",
"tree-sitter-javascript": "github:tree-sitter/tree-sitter-javascript#40a1427"
},
"scripts": {
"build": "npm run build-typescript && npm run build-tsx",
"build-typescript": "cd typescript && tree-sitter generate",
"build-tsx": "cd tsx && tree-sitter generate",
"test-load": "node -e \"console.log(require('./typescript').name, require('./tsx').name)\"",
"test": "npm run test-typescript && npm run test-tsx && npm run test-load && script/parse-examples",
"test-typescript": "cd typescript && tree-sitter test",
"test-tsx": "cd tsx && tree-sitter test",
"test-windows": "pushd typescript && tree-sitter test && popd && pushd tsx && tree-sitter test"
},
"tree-sitter": [
{
"scope": "source.ts",
"file-types": [
"ts"
],
"path": "typescript",
"highlights": [
"queries/highlights.scm",
"node_modules/tree-sitter-javascript/queries/highlights.scm"
],
"locals": [
"queries/locals.scm",
"node_modules/tree-sitter-javascript/queries/locals.scm"
],
"tags": [
"queries/tags.scm",
"node_modules/tree-sitter-javascript/queries/tags.scm"
],
"injections": "node_modules/tree-sitter-javascript/queries/injections.scm",
"injection-regex": "^(ts|typescript)$"
},
{
"scope": "source.tsx",
"file-types": [
"tsx"
],
"path": "tsx",
"highlights": [
"queries/highlights.scm",
"node_modules/tree-sitter-javascript/queries/highlights-jsx.scm",
"node_modules/tree-sitter-javascript/queries/highlights.scm"
],
"locals": "node_modules/tree-sitter-javascript/queries/locals.scm",
"tags": [
"queries/tags.scm",
"node_modules/tree-sitter-javascript/queries/tags.scm"
],
"injections": "node_modules/tree-sitter-javascript/queries/injections.scm",
"injection-regex": "^(ts|typescript)$"
},
{
"scope": "source.js.flow",
"file-types": [
"js"
],
"path": "tsx",
"highlights": [
"queries/highlights.scm",
"node_modules/tree-sitter-javascript/queries/highlights-jsx.scm",
"node_modules/tree-sitter-javascript/queries/highlights.scm"
],
"locals": "node_modules/tree-sitter-javascript/queries/locals.scm",
"tags": [
"queries/tags.scm",
"node_modules/tree-sitter-javascript/queries/tags.scm"
],
"injections": "node_modules/tree-sitter-javascript/queries/injections.scm",
"content-regex": "@flow"
}
],
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"arrowParens": "avoid",
"singleQuote": true
}
}