tree-sitter implementation for the confindent configuration language
at main 11 lines 459 B view raw
1const root = require("path").join(__dirname, "..", ".."); 2 3module.exports = 4 typeof process.versions.bun === "string" 5 // Support `bun build --compile` by being statically analyzable enough to find the .node file at build-time 6 ? require(`../../prebuilds/${process.platform}-${process.arch}/tree-sitter-confindent.node`) 7 : require("node-gyp-build")(root); 8 9try { 10 module.exports.nodeTypeInfo = require("../../src/node-types.json"); 11} catch (_) {}