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(angular): update library package.json only with direct dependencies #9315

Merged
merged 1 commit into from Mar 21, 2022

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Mar 14, 2022

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 #

@leosvelperez leosvelperez self-assigned this Mar 14, 2022
@nx-cloud
Copy link

nx-cloud bot commented Mar 14, 2022

☁️ Nx Cloud Report

CI ran the following commands for commit 7eb6275. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 21 targets

Sent with 💌 from NxCloud.

@vercel
Copy link

vercel bot commented Mar 14, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nrwl/nx-dev/pj7nGwM7eVKbiJYMJfUtM8gBAT3y
✅ Preview: Canceled

[Deployment for 7eb6275 canceled]

@leosvelperez leosvelperez merged commit e427de6 into nrwl:master Mar 21, 2022
@leosvelperez leosvelperez deleted the angular/package-json-deps branch March 21, 2022 09:24
@github-actions
Copy link

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 Mar 19, 2023
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.

None yet

1 participant