fix: align project with upstream layout

This commit is contained in:
maunzCache
2025-03-30 14:02:12 +02:00
committed by Michael Hoffmann
parent 91ab40725d
commit 3a58dc8928
19 changed files with 575 additions and 123 deletions

20
bindings/node/index.js generated
View File

@@ -1,19 +1,7 @@
try {
module.exports = require("../../build/Release/tree_sitter_hcl_binding");
} catch (error1) {
if (error1.code !== 'MODULE_NOT_FOUND') {
throw error1;
}
try {
module.exports = require("../../build/Debug/tree_sitter_hcl_binding");
} catch (error2) {
if (error2.code !== 'MODULE_NOT_FOUND') {
throw error2;
}
throw error1
}
}
const root = require("path").join(__dirname, "..", "..");
module.exports = require("node-gyp-build")(root);
try {
module.exports.nodeTypeInfo = require("../../src/node-types.json");
} catch (_) {}
} catch (_) {}