Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nest): exclude react-specific packages when generating nx nest monorepo #21153

Conversation

mihailgolban
Copy link
Contributor

Current Behavior

This pull request addresses the issue where React-specific packages were being installed unnecessarily when generating a new project with the Nest preset. The proposed changes modify the application generator to exclude the following packages:

 "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
 "@svgr/webpack": "^8.0.1",
 "react-refresh": "^0.10.0",

These packages are not applicable to NestJS projects and are typically associated with React monorepos.

Expected Behavior

Only the necessary packages for NestJS should be installed, excluding the unnecessary React-related packages.

Related Issue(s)

Fixes #21152

@mihailgolban mihailgolban requested a review from a team as a code owner January 15, 2024 23:10
Copy link

vercel bot commented Jan 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Jan 29, 2024 10:09am

@mihailgolban mihailgolban force-pushed the update-ui-framework-based-on-options-is-nest branch 3 times, most recently from 5564fc6 to 7eb9460 Compare January 16, 2024 15:50
@mihailgolban mihailgolban force-pushed the update-ui-framework-based-on-options-is-nest branch from 7eb9460 to c5bd637 Compare January 17, 2024 07:56
@mandarini mandarini merged commit babd361 into nrwl:master Jan 31, 2024
6 checks passed
FrozenPandaz pushed a commit that referenced this pull request Feb 2, 2024
…norepo (#21153)

Co-authored-by: Mihail Golban <mihail.golban@proovia.co.uk>
(cherry picked from commit babd361)
Copy link

github-actions bot commented Feb 6, 2024

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unnecessary installation of React-specific packages when generating nx workspace with nest preset
3 participants