mirror of
https://github.com/JellyApple102/tree-sitter-dfraw.git
synced 2024-11-23 06:29:19 +02:00
20 lines
461 B
JavaScript
20 lines
461 B
JavaScript
|
try {
|
||
|
module.exports = require("../../build/Release/tree_sitter_dfraw_binding");
|
||
|
} catch (error1) {
|
||
|
if (error1.code !== 'MODULE_NOT_FOUND') {
|
||
|
throw error1;
|
||
|
}
|
||
|
try {
|
||
|
module.exports = require("../../build/Debug/tree_sitter_dfraw_binding");
|
||
|
} catch (error2) {
|
||
|
if (error2.code !== 'MODULE_NOT_FOUND') {
|
||
|
throw error2;
|
||
|
}
|
||
|
throw error1
|
||
|
}
|
||
|
}
|
||
|
|
||
|
try {
|
||
|
module.exports.nodeTypeInfo = require("../../src/node-types.json");
|
||
|
} catch (_) {}
|