-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: update to rules_nodejs 1.0.0 #18064
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
6419353
to
146c008
Compare
@devversion I introduced the patch-package tool which is a nicer workflow for patching npm packages IMO. A lot of the code from post install patches .js could be put into The workflow with patch-package is to edit the files in node_modules as desired and then run |
2dff01a
to
304d5c2
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.
LGTM. Thanks!
@gregmagolan I'd prefer we keep using our existing postinstall patch code. It also allows us to apply .patch
files. The benefit is that we could combine the two patches, and in general that we can provide more context on why these patches are applied/needed.
patch-package
only allows to apply changes per package, while we sometimes want to apply changes to multiple packages for a single reason (this can be grouped in the current posinstall patches script). I don't feel too strong about it.
304d5c2
to
35cabd0
Compare
Oh nice. I didn't notice you had a convenient patchPackage() function in your postinstall .js. Switched the patches over to there. Thanks! |
Ready to merge; I believe this needs to go on master & not patch however as that is the branch the angular pulling in CI and testing against. This is a pre-req to landing the Angular update to rules_nodejs 1.0.0: angular/angular#34589 |
35cabd0
to
fc1f755
Compare
Dependency sandwich exists between material & angular so we need to patch both @angular/bazel & ts-api-guardian npm packages to land this so that the material-unit-test CI job in angular/angular#34589 can be greened up.
fc1f755
to
5950a8f
Compare
Thanks for addressing the feedback. We want the changes between the patch branch and master branch to be as minimal as possible, so I think we want |
👍 SGTM |
…ejs 1.0 update (#34589) This commit includes angular/components#18064 which is a pre-req for updating the angular repo to rules_nodejs 1.0. PR Close #34589
…ejs 1.0 update (#34589) This commit includes angular/components#18064 which is a pre-req for updating the angular repo to rules_nodejs 1.0. PR Close #34589
Dependency sandwich exists between material & angular so we need to patch both @angular/bazel & ts-api-guardian npm packages to land this so that the material-unit-test CI job in angular/angular#34589 can be greened up.
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. |
Dependency sandwich exists between material & angular so we need to patch both @angular/bazel & ts-api-guardian npm packages to land this so that the material-unit-test CI job in angular/angular#34589 can be greened up.