tree-sitter-d2/bindings/node/index.js
Dmitriy Pleshevskiy a2a7925e3b
initial commit
2022-12-04 00:07:26 +03:00

19 lines
455 B
JavaScript

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