You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
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-cpp.node`)
|
|
|
: require("node-gyp-build")(root);
|
|
|
|
|
|
try {
|
|
|
module.exports.nodeTypeInfo = require("../../src/node-types.json");
|
|
|
} catch (_) {}
|