feat(package): hemar: tree sitter grammar

This commit is contained in:
2025-11-27 17:53:49 +00:00
parent 777d48bf3d
commit 345f94742e
38 changed files with 2891 additions and 0 deletions

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