UNPKG

tree-sitter-bos

Version:

DSL scripting language for controlling unit animations and state. Used by the Recoil engine.

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