tree-sitter-bp/bindings/node/index.js
Bruno BELANYI ebb642cb14
All checks were successful
ci/woodpecker/push/check Pipeline was successful
Rename to 'tree-sitter-bp'
This is really just to simplify my life and align with the Vim/NeoVim
filetype name.
2024-04-10 15:32:37 +00:00

20 lines
455 B
JavaScript

try {
module.exports = require("../../build/Release/tree_sitter_bp_binding");
} catch (error1) {
if (error1.code !== 'MODULE_NOT_FOUND') {
throw error1;
}
try {
module.exports = require("../../build/Debug/tree_sitter_bp_binding");
} catch (error2) {
if (error2.code !== 'MODULE_NOT_FOUND') {
throw error2;
}
throw error1
}
}
try {
module.exports.nodeTypeInfo = require("../../src/node-types.json");
} catch (_) {}