cli: require node-types.json in generated index.js files

This commit is contained in:
Max Brunsfeld 2019-03-28 16:48:22 -07:00
parent 77636e8fe6
commit 09b902f6a0
2 changed files with 9 additions and 3 deletions

View file

@ -7,3 +7,7 @@ try {
throw error
}
}
try {
module.exports.nodeTypeInfo = require("./src/node-types.json");
} catch (_) {}