diff --git a/packages/template/typescript-webpack/src/TypeScriptWebpackTemplate.ts b/packages/template/typescript-webpack/src/TypeScriptWebpackTemplate.ts index efc5bf344b..250f93d5f1 100644 --- a/packages/template/typescript-webpack/src/TypeScriptWebpackTemplate.ts +++ b/packages/template/typescript-webpack/src/TypeScriptWebpackTemplate.ts @@ -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 }); }); } }