astro add
causes dev dependencies to be removed from node_modules
#8037
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: add
Related to `astro add` CLI command (scope)
What version of
astro
are you using?2.10.5
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Linux
What browser are you using?
Firefox
Describe the Bug
Using
astro add
causes a weird issue, where any existing installed dev dependencies will be removed fromnode_modules
.Stackblitz has repro instructions, but here's some you can also use locally.
npm create astro@latest
)npm i daisyui -D
)npx astro add react -y
)What's the expected result?
Dev dependencies to still be present, after using
astro add
.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-3sk8rq?file=md!README.md&on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: