1
0
Fork 0
mirror of https://github.com/pnx/tree-sitter-dotenv synced 2026-06-17 14:20:02 +02:00

update outdated files via tree-sitter init -u

This commit is contained in:
Henrik Hautakoski 2025-11-05 14:33:55 +01:00
parent 940f387a98
commit 58608e4796
11 changed files with 137 additions and 27 deletions

View file

@ -1,6 +1,10 @@
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-dotenv.node`)
: require("node-gyp-build")(root);
try {
module.exports.nodeTypeInfo = require("../../src/node-types.json");