wip tree-sitter

This commit is contained in:
2025-09-21 00:49:43 +02:00
parent f4b6589b1a
commit b4b6edd2f2
39 changed files with 13104 additions and 1 deletions

11
tree-sitter/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-crepuscular.node`)
: require("node-gyp-build")(root);
try {
module.exports.nodeTypeInfo = require("../../src/node-types.json");
} catch (_) {}