Init tree-sitter project

This commit is contained in:
Quentin Boyer 2026-01-18 18:37:34 +01:00
parent da3d0cd087
commit d24c53e0f9
30 changed files with 905 additions and 0 deletions

11
bindings/node/index.js generated Normal file
View file

@ -0,0 +1,11 @@
const root = require("path").join(__dirname, "..", "..");
module.exports =
typeof process.versions.bun === "string"
// Support `bun build --compile` by being statically analyzable enough to find the .node file at build-time
? require(`../../prebuilds/${process.platform}-${process.arch}/tree-sitter-vvk.node`)
: require("node-gyp-build")(root);
try {
module.exports.nodeTypeInfo = require("../../src/node-types.json");
} catch (_) {}