fix impatient not found on bootstrap

This commit is contained in:
nullchilly
2022-08-07 12:31:11 +07:00
committed by Sidhanth Rathod
parent 33c304f627
commit 074b656cbd
55 changed files with 17472 additions and 1 deletions

View File

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