feat!: update bindings
This commit is contained in:
committed by
Michael Hoffmann
parent
41a2e70241
commit
8b209bbb95
8
bindings/node/index.js
generated
8
bindings/node/index.js
generated
@@ -1,7 +1,11 @@
|
||||
const root = require("path").join(__dirname, "..", "..");
|
||||
|
||||
module.exports = require("node-gyp-build")(root);
|
||||
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-hcl.node`)
|
||||
: require("node-gyp-build")(root);
|
||||
|
||||
try {
|
||||
module.exports.nodeTypeInfo = require("../../src/node-types.json");
|
||||
} catch (_) {}
|
||||
} catch (_) {}
|
||||
|
||||
Reference in New Issue
Block a user