feat(bindings): add prebuildify to node

Co-Authored-By: Amaan Qureshi <amaanq12@gmail.com>
This commit is contained in:
ObserverOfTime 2024-03-09 19:25:14 +02:00 committed by Amaan Qureshi
parent 69cf13bc05
commit 072865e450
4 changed files with 106 additions and 88 deletions

View file

@ -16,14 +16,17 @@
"grammar.js",
"binding.gyp",
"types/dsl.d.ts",
"prebuilds/**",
"bindings/node/*",
"queries/*",
"src/**"
],
"dependencies": {
"node-addon-api": "^7.1.0"
"node-addon-api": "^7.1.0",
"node-gyp-build": "^4.8.0"
},
"devDependencies": {
"prebuildify": "^6.0.0",
"tree-sitter-cli": "^CLI_VERSION"
},
"peerDependencies": {
@ -35,6 +38,8 @@
}
},
"scripts": {
"install": "node-gyp-build",
"prebuildify": "prebuildify --napi --strip",
"build": "tree-sitter generate --no-bindings",
"build-wasm": "tree-sitter build-wasm",
"test": "tree-sitter test",