Skip to content

Conversation

alan-agius4
Copy link
Collaborator

Refactor the build configuration to use Bazel stamping for Angular and ng-packagr dependencies, eliminating the need for hardcoded peer dependencies.

@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jan 16, 2025
@alan-agius4 alan-agius4 requested a review from dgp1130 January 16, 2025 10:57
@alan-agius4 alan-agius4 added the target: minor This PR is targeted for the next minor release label Jan 16, 2025
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Jan 16, 2025
@alan-agius4 alan-agius4 force-pushed the stamping-versions branch 2 times, most recently from 2e1697b to 5451a08 Compare January 16, 2025 11:22
Copy link
Collaborator

@dgp1130 dgp1130 left a 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
RELEASE_ENGINES_YARN = ">= 1.13.0"

NG_PACKAGR_VERSION = "^19.1.0-next.0"
ANGULAR_VERSION = "^19.1.0-next.0"
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 16, 2025
@alan-agius4 alan-agius4 merged commit 31cbf5f into angular:main Jan 16, 2025
31 checks passed
@alan-agius4 alan-agius4 deleted the stamping-versions branch January 16, 2025 18:06
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Jan 29, 2025
This is current checking `packages/schematics/angular/utility/latest-versions/package.json` but recently we change how the version is set angular#29368
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Jan 29, 2025
This is current checking `packages/schematics/angular/utility/latest-versions/package.json` but recently we change how the version is set angular#29368
alan-agius4 added a commit that referenced this pull request Jan 29, 2025
This is current checking `packages/schematics/angular/utility/latest-versions/package.json` but recently we change how the version is set #29368
@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 Feb 16, 2025
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 area: build & ci Related the build and CI infrastructure of the project target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants