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

build: avoid duplication of mdc dependencies by generating package.json #24697

Merged
merged 1 commit into from
Apr 21, 2022

Conversation

devversion
Copy link
Member

As part of the Yarn PNP changes we moved from peerDependencies in the
experimental package to actual dependencies on all individual MDC
packages we rely on. This is necessary for Yarn PnP and conceptually
also makes the package more correct/safe.

This resulted in duplication of the MDC dependencies, making MDC
updates more complicated. We can avoid duplication by auto-inserting
the dependencies. That way we keep two places for the MDC deps:

  • The project package.json
  • packages.bzl for the Bazel analysis phase/Starlark.

@andrewseguin andrewseguin self-assigned this Apr 21, 2022
@andrewseguin
Copy link
Contributor

Is this ready to go? CI failed on the build_release_packages

…son`

As part of the Yarn PNP changes we moved from `peerDependencies` in the
experimental package to actual `dependencies` on all individual MDC
packages we rely on. This is necessary for Yarn PnP and conceptually
also makes the package more correct/safe.

This resulted in duplication of the MDC dependencies, making MDC
updates more complicated. We can avoid duplication by auto-inserting
the dependencies. That way we keep two places for the MDC deps:

* The project `package.json`
* `packages.bzl` for the Bazel analysis phase/Starlark.
@devversion devversion force-pushed the avoid-duplication-mdc-deps branch from 23d153f to ad630bd Compare April 21, 2022 15:55
@devversion
Copy link
Member Author

@andrewseguin yeah, this should be ready now. This was also blocked on the FW release (since previously the package.json could not be auto-generated -- I added this feature)

@devversion devversion requested a review from andrewseguin April 21, 2022 15:56
@devversion devversion added merge safe target: major This PR is targeted for the next major release labels Apr 21, 2022
@devversion devversion marked this pull request as ready for review April 21, 2022 15:57
@devversion devversion requested a review from a team as a code owner April 21, 2022 15:57
@andrewseguin andrewseguin added the action: merge The PR is ready for merge by the caretaker label Apr 21, 2022
@andrewseguin andrewseguin merged commit a263063 into angular:master Apr 21, 2022
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants