in lib/generator.js [214:230]
save(filepath) {
let targetPath = filepath;
if(path.resolve(filepath).startsWith(path.resolve(this.outputDir))) {
const baseDir = path.join(this.outputDir, path.sep);
filepath = filepath.replace(baseDir, '');
}
targetPath = path.join(this.outputDir, filepath);
fs.mkdirSync(path.dirname(targetPath), {
recursive: true
});
this.emitImports();
fs.writeFileSync(targetPath, this.output);
this.initSetupPy();
this.output = '';
this.imports = [];
this.usedClass = new Map();
}