Skip to content

Commit c3a8db4

Browse files
authored
fix(template-typescript-webpack): clean up forge config code (#3009)
1 parent 0731039 commit c3a8db4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/template/typescript-webpack/src/TypeScriptWebpackTemplate.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class TypeScriptWebpackTemplate extends BaseTemplate {
1212
await super.initializeTemplate(directory, options);
1313
await asyncOra('Setting up Forge configuration', async () => {
1414
await this.copyTemplateFile(directory, 'forge.config.ts');
15+
await fs.remove(path.resolve(directory, 'forge.config.js'));
1516
});
1617
await asyncOra('Setting up TypeScript configuration', async () => {
1718
const filePath = (fileName: string) => path.join(directory, 'src', fileName);
@@ -52,8 +53,6 @@ class TypeScriptWebpackTemplate extends BaseTemplate {
5253
await fs.writeJson(packageJSONPath, packageJSON, {
5354
spaces: 2,
5455
});
55-
56-
await fs.writeJson(packageJSONPath, packageJSON, { spaces: 2 });
5756
});
5857
}
5958
}

0 commit comments

Comments
 (0)