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(angular): update library package.json only with direct dependencies #9315
fix(angular): update library package.json only with direct dependencies #9315
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/nrwl/nx-dev/pj7nGwM7eVKbiJYMJfUtM8gBAT3y [Deployment for 7eb6275 canceled] |
2546463
to
f8bf6d6
Compare
f8bf6d6
to
e7d1e9f
Compare
e7d1e9f
to
7eb6275
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. |
This is a fix similar to #9297. The difference is that for Angular all deps are still needed to be collected to properly remap the TS path mappings, but only the direct deps are needed for updating the
package.json
.Current Behavior
When building a library, the
package.json
ends up with all the dependencies including the ones that are not direct dependencies. Transitive dependencies would be installed as part of the library's direct dependencies, there's no need to specify them as dependencies of the library.Expected Behavior
The
package.json
of a built library should only contain direct dependencies.Related Issue(s)
Fixes #