mirror of https://github.com/Wilfred/difftastic/
96 lines
3.0 KiB
JSON
96 lines
3.0 KiB
JSON
{
|
|
"name": "tree-sitter-typescript",
|
|
"version": "0.20.0",
|
|
"description": "Typescript grammar for tree-sitter",
|
|
"keywords": [
|
|
"parser",
|
|
"tree-sitter",
|
|
"typescript"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/tree-sitter/tree-sitter-typescript.git"
|
|
},
|
|
"author": "Max Brunsfeld",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"nan": "^2.14.0"
|
|
},
|
|
"main": "./bindings/node",
|
|
"devDependencies": {
|
|
"tree-sitter-cli": "^0.20.0",
|
|
"tree-sitter-javascript": "github:tree-sitter/tree-sitter-javascript#fdeb68a"
|
|
},
|
|
"scripts": {
|
|
"build": "npm run build-typescript && npm run build-tsx",
|
|
"build-typescript": "cd typescript && npx tree-sitter generate --no-bindings",
|
|
"build-tsx": "cd tsx && npx tree-sitter generate --no-bindings",
|
|
"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 && npx tree-sitter test",
|
|
"test-tsx": "cd tsx && npx tree-sitter test",
|
|
"test-windows": "pushd typescript && npx tree-sitter test && popd && pushd tsx && npx 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"
|
|
}
|
|
]
|
|
}
|