Skip to content

Commit

Permalink
fix(template-typescript-webpack): clean up forge config code (#3009)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao authored Oct 27, 2022
1 parent 0731039 commit c3a8db4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ class TypeScriptWebpackTemplate extends BaseTemplate {
await super.initializeTemplate(directory, options);
await asyncOra('Setting up Forge configuration', async () => {
await this.copyTemplateFile(directory, 'forge.config.ts');
await fs.remove(path.resolve(directory, 'forge.config.js'));
});
await asyncOra('Setting up TypeScript configuration', async () => {
const filePath = (fileName: string) => path.join(directory, 'src', fileName);
@@ -52,8 +53,6 @@ class TypeScriptWebpackTemplate extends BaseTemplate {
await fs.writeJson(packageJSONPath, packageJSON, {
spaces: 2,
});

await fs.writeJson(packageJSONPath, packageJSON, { spaces: 2 });
});
}
}

0 comments on commit c3a8db4

Please sign in to comment.