tree-sitter-plpgsql/bindings/node/index.js
Christian De la Hoz 78f290713f create_function
2021-08-21 19:15:42 +02:00

19 lines
487 B
JavaScript

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