]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/blame - bindings/node/index.js
Use the plugin dir
[rbdr/tree-sitter-api-notation] / bindings / node / index.js
CommitLineData
dc87cd89 1try {
0e6205eb 2 module.exports = require("../../build/Release/tree_sitter_api_notation_binding");
dc87cd89
RBR
3} catch (error1) {
4 if (error1.code !== 'MODULE_NOT_FOUND') {
5 throw error1;
6 }
7 try {
0e6205eb 8 module.exports = require("../../build/Debug/tree_sitter_api_notation_binding");
dc87cd89
RBR
9 } catch (error2) {
10 if (error2.code !== 'MODULE_NOT_FOUND') {
11 throw error2;
12 }
13 throw error1
14 }
15}
16
17try {
18 module.exports.nodeTypeInfo = require("../../src/node-types.json");
19} catch (_) {}