Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function main() {
try {
// await build_generated_folder();
const filename = path.join(__dirname, "../xmlschemas/Opc.Ua.Types.bsd");
const generatedTypescriptFilename = path.join(__dirname, "_generated_opcua_types.ts");
await generate(filename, generatedTypescriptFilename);
} catch (err) {
console.log(err);
}
}
main().then().catch();