Initial commit

This commit is contained in:
2026-01-17 15:37:53 +01:00
commit ccd44c8172
31 changed files with 952 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-mc.node`)
: require("node-gyp-build")(root);
try {
module.exports.nodeTypeInfo = require("../../src/node-types.json");
} catch (_) {}