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 7c3588c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/react/src/generators/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ export async function applicationGeneratorInternal(
if (!options.rootProject) {
extractTsConfigBase(host);
}

await createApplicationFiles(host, options);
addProject(host, options);

if (options.style === 'tailwind') {
Expand Down Expand Up @@ -244,11 +246,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 7c3588c

Please sign in to comment.