2019-04-25 17:27:24 -07:00
|
|
|
{
|
2019-05-07 13:07:36 -07:00
|
|
|
"name": "web-tree-sitter",
|
2024-10-05 20:20:42 -04:00
|
|
|
"version": "0.25.0",
|
2019-04-25 17:27:24 -07:00
|
|
|
"description": "Tree-sitter bindings for the web",
|
2025-01-13 01:48:42 -05:00
|
|
|
"repository": "https://github.com/tree-sitter/tree-sitter",
|
|
|
|
|
"homepage": "https://github.com/tree-sitter/tree-sitter/tree/master/lib/binding_web",
|
|
|
|
|
"license": "MIT",
|
|
|
|
|
"author": {
|
|
|
|
|
"name": "Max Brunsfeld",
|
|
|
|
|
"email": "maxbrunsfeld@gmail.com"
|
|
|
|
|
},
|
|
|
|
|
"maintainers": [
|
|
|
|
|
{
|
|
|
|
|
"name": "Amaan Qureshi",
|
|
|
|
|
"email": "amaanq12@gmail.com"
|
|
|
|
|
}
|
|
|
|
|
],
|
2019-05-07 13:07:36 -07:00
|
|
|
"main": "tree-sitter.js",
|
2025-01-13 01:48:42 -05:00
|
|
|
"type": "module",
|
2019-05-27 15:10:43 +01:00
|
|
|
"types": "tree-sitter-web.d.ts",
|
2025-01-13 01:48:42 -05:00
|
|
|
"keywords": [
|
|
|
|
|
"incremental",
|
|
|
|
|
"parsing",
|
|
|
|
|
"tree-sitter",
|
|
|
|
|
"wasm"
|
|
|
|
|
],
|
2025-01-08 01:17:57 -05:00
|
|
|
"files": [
|
|
|
|
|
"README.md",
|
|
|
|
|
"tree-sitter.js",
|
2025-01-13 01:48:42 -05:00
|
|
|
"tree-sitter.js.map",
|
2025-01-08 01:17:57 -05:00
|
|
|
"tree-sitter.wasm",
|
2025-01-13 01:48:42 -05:00
|
|
|
"tree-sitter.wasm.map",
|
2025-01-16 01:10:54 -05:00
|
|
|
"tree-sitter-web.d.ts",
|
|
|
|
|
"debug/tree-sitter.js",
|
|
|
|
|
"debug/tree-sitter.js.map",
|
|
|
|
|
"debug/tree-sitter.wasm",
|
|
|
|
|
"debug/tree-sitter.wasm.map"
|
2025-01-08 01:17:57 -05:00
|
|
|
],
|
2025-01-13 01:48:42 -05:00
|
|
|
"devDependencies": {
|
2025-01-16 01:10:54 -05:00
|
|
|
"@eslint/js": "^9.18.0",
|
2025-01-13 01:48:42 -05:00
|
|
|
"@types/emscripten": "^1.39.13",
|
|
|
|
|
"@types/node": "^22.10.7",
|
2025-01-16 01:10:54 -05:00
|
|
|
"@vitest/coverage-v8": "^3.0.2",
|
2025-01-13 01:48:42 -05:00
|
|
|
"esbuild": "^0.24.2",
|
2025-01-16 01:10:54 -05:00
|
|
|
"eslint": "^9.18.0",
|
2025-01-13 01:48:42 -05:00
|
|
|
"source-map": "^0.7.4",
|
2025-01-16 01:11:19 -05:00
|
|
|
"tsx": "^4.19.2",
|
2025-01-13 01:48:42 -05:00
|
|
|
"typescript": "^5.7.3",
|
2025-01-16 01:10:54 -05:00
|
|
|
"typescript-eslint": "^8.20.0",
|
|
|
|
|
"vitest": "^3.0.2"
|
2025-01-13 01:48:42 -05:00
|
|
|
},
|
2019-04-25 17:27:24 -07:00
|
|
|
"scripts": {
|
2025-01-13 01:48:42 -05:00
|
|
|
"build:ts": "esbuild src/index.ts --bundle --platform=neutral --format=cjs --global-name=TreeSitterImpl --outfile=dist/tree-sitter.js --external:fs/* --external:fs/promises --sourcemap --sources-content=true --keep-names",
|
|
|
|
|
"build:wasm": "cd ../../ && cargo xtask build-wasm",
|
2025-01-16 01:11:19 -05:00
|
|
|
"build:wasm:debug": "cd ../../ && cargo xtask build-wasm --debug",
|
|
|
|
|
"build:sourcemap": "tsx script/build-sourcemap.ts",
|
2025-01-13 01:48:42 -05:00
|
|
|
"build": "npm run build:ts && npm run build:wasm && npm run build:sourcemap",
|
2025-01-16 01:11:19 -05:00
|
|
|
"build:debug": "npm run build:ts && npm run build:wasm:debug && cp debug/* . && npm run build:sourcemap",
|
|
|
|
|
"lint": "eslint src/*.ts script/*.ts",
|
|
|
|
|
"lint:fix": "eslint src/*.ts script/*.ts --fix",
|
2025-01-13 01:48:42 -05:00
|
|
|
"test": "vitest run",
|
|
|
|
|
"test:watch": "vitest",
|
2021-08-22 03:12:28 +03:00
|
|
|
"prepack": "cp ../../LICENSE .",
|
2025-01-16 01:11:19 -05:00
|
|
|
"prepublishOnly": "tsx script/check-artifacts-fresh.ts",
|
|
|
|
|
"postinstall": "node script/postinstall.js"
|
2019-04-25 17:27:24 -07:00
|
|
|
}
|
2021-05-20 14:33:25 -07:00
|
|
|
}
|