dont put jsonified AST in resulting file
This commit is contained in:
parent
35660be0d8
commit
d95ec10f53
2
index.js
2
index.js
|
@ -182,7 +182,7 @@ function parse(code) {
|
|||
|
||||
//console.log(inspect(parsed, false, 10));
|
||||
const luaFilename = f.replace('.d.ts', '.lua');
|
||||
await fs.writeFile(path.resolve(outPath, luaFilename), '--[[\n' + inspect(parsed, false, null) + '\n]]\n\n' + transpiled);
|
||||
await fs.writeFile(path.resolve(outPath, luaFilename), transpiled);
|
||||
console.log(` wrote ${chalk.cyanBright(luaFilename)}`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue