Skip to content

Commit

Permalink
fix(react): move back app files generation step
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-twardziak committed Dec 7, 2024
1 parent 9ca6353 commit f0580aa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/react/src/generators/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export async function applicationGeneratorInternal(
extractTsConfigBase(host);
}
addProject(host, options);
await createApplicationFiles(host, options);

if (options.style === 'tailwind') {
const twTask = await setupTailwindGenerator(host, {
Expand Down Expand Up @@ -244,11 +245,6 @@ export async function applicationGeneratorInternal(
tasks.push(rspackTask);
}

/**
* Generate app files once both the project and the base configuration are there
*/
await createApplicationFiles(host, options);

if (options.bundler !== 'vite' && options.unitTestRunner === 'vitest') {
const { createOrEditViteConfig, vitestGenerator } = ensurePackage<
typeof import('@nx/vite')
Expand Down

0 comments on commit f0580aa

Please sign in to comment.