Skip to content

Commit

Permalink
fix(nest): exclude react-specific packages when generating nx nest mo…
Browse files Browse the repository at this point in the history
…norepo (#21153)

Co-authored-by: Mihail Golban <[email protected]>
  • Loading branch information
mihailgolban and Mihail Golban committed Jan 31, 2024
1 parent ecddfe1 commit babd361
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/node/src/generators/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,11 @@ export async function applicationGeneratorInternal(tree: Tree, schema: Schema) {
const { ensureDependencies } = await import(
'@nx/webpack/src/utils/ensure-dependencies'
);
tasks.push(ensureDependencies(tree, { uiFramework: 'react' }));
tasks.push(
ensureDependencies(tree, {
uiFramework: options.isNest ? 'none' : 'react',
})
);
}
}

Expand Down

0 comments on commit babd361

Please sign in to comment.