-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(js): ignore dependencies from non-index root files for create-package-json #17930
fix(js): ignore dependencies from non-index root files for create-package-json #17930
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 1d65ee5. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
64618b0
to
6596799
Compare
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. |
Current Behavior
The package json generation (and
dependency checks
linter rule) reads all theproduction
files' dependencies, including files relevant only at the compile time - vite.config.ts, webpack.config.js etc. which includes dev packages in the resulting package.jsonExpected Behavior
Only non-dev dependencies should be taken into account when constructing dependencies list if
isProduction
is set.Related Issue(s)
Fixes #17905