tree-sitter-bp/bindings/node/index.js

20 lines
455 B
JavaScript
Raw Normal View History

2024-04-07 20:59:34 +02:00
try {
module.exports = require("../../build/Release/tree_sitter_bp_binding");
2024-04-07 20:59:34 +02:00
} catch (error1) {
if (error1.code !== 'MODULE_NOT_FOUND') {
throw error1;
}
try {
module.exports = require("../../build/Debug/tree_sitter_bp_binding");
2024-04-07 20:59:34 +02:00
} catch (error2) {
if (error2.code !== 'MODULE_NOT_FOUND') {
throw error2;
}
throw error1
}
}
try {
module.exports.nodeTypeInfo = require("../../src/node-types.json");
} catch (_) {}