-
Notifications
You must be signed in to change notification settings - Fork 11.9k
build: replace hardcoded Angular and ng-packagr peer dependencies with Bazel stamping #29368
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
Conversation
2e1697b
to
5451a08
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thanks @alan-agius4! I've wanted something like this for a while now, glad to see it's possible with @aspect_rules_js
!
constants.bzl
Outdated
@@ -3,6 +3,11 @@ RELEASE_ENGINES_NODE = "^18.19.1 || ^20.11.1 || >=22.0.0" | |||
RELEASE_ENGINES_NPM = "^6.11.0 || ^7.5.6 || >=8.0.0" | |||
RELEASE_ENGINES_YARN = ">= 1.13.0" | |||
|
|||
NG_PACKAGR_VERSION = "^19.1.0-next.0" | |||
ANGULAR_VERSION = "^19.1.0-next.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: What exactly does ANGULAR_VERSION
represent? The @angular/core
/ FW version used for direct dependencies? I wonder if a more specific name like ANGULAR_FW_VERSION
might be helpful to communicate its purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it reflects the version of the @angular/
packages specified in the user's package.json
when they run ng new
.
Note: This functionality was also possible with the old setup.
…h Bazel stamping Refactor the build configuration to use Bazel stamping for Angular and ng-packagr dependencies, eliminating the need for hardcoded peer dependencies.
5451a08
to
168f967
Compare
This is current checking `packages/schematics/angular/utility/latest-versions/package.json` but recently we change how the version is set angular#29368
This is current checking `packages/schematics/angular/utility/latest-versions/package.json` but recently we change how the version is set angular#29368
This is current checking `packages/schematics/angular/utility/latest-versions/package.json` but recently we change how the version is set #29368
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Refactor the build configuration to use Bazel stamping for Angular and ng-packagr dependencies, eliminating the need for hardcoded peer dependencies.