aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json35
1 files changed, 32 insertions, 3 deletions
diff --git a/package.json b/package.json
index 813cf53..09b9b1f 100644
--- a/package.json
+++ b/package.json
@@ -3,8 +3,11 @@
"version": "1.0.0",
"description": "A tree-sitter parser for gsp",
"main": "bindings/node",
+ "types": "bindings/node",
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
+ "test": "echo \"Error: no test specified\" && exit 1",
+ "install": "node-gyp-build",
+ "prebuildify": "prebuildify --napi --strip"
},
"repository": {
"type": "git",
@@ -17,6 +20,32 @@
},
"homepage": "https://git.sr.ht/~mango/tree-sitter-gsp#readme",
"dependencies": {
- "nan": "^2.18.0"
- }
+ "node-addon-api": "^7.1.0",
+ "node-gyp-build": "^4.8.0"
+ },
+ "peerDependencies": {
+ "tree-sitter": "^0.21.0"
+ },
+ "peerDependenciesMeta": {
+ "tree_sitter": {
+ "optional": true
+ }
+ },
+ "devDependencies": {
+ "prebuildify": "^6.0.0"
+ },
+ "files": [
+ "grammar.js",
+ "binding.gyp",
+ "prebuilds/**",
+ "bindings/node/*",
+ "queries/*",
+ "src/**"
+ ],
+ "tree-sitter": [
+ {
+ "scope": "source.gsp",
+ "injection-regex": "^gsp$"
+ }
+ ]
}