aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-18 11:07:53 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-18 11:35:24 +0200
commit4b160d1b2119cd2007ea7a76d4baba56ad66b825 (patch)
treea6c5d491c8306304cc9ec112ffedcae4ff6bced3 /package.json
parent1f10ff9a6039a50e2f7be394fc22b1400832cf17 (diff)
Support comments… sortav1.2.0
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$"
+ }
+ ]
}