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

[19.2.x]: Third iteration of rules_js migration #30705

Merged
merged 5 commits into from
Mar 25, 2025

Conversation

devversion
Copy link
Member

Patch port of #30697

This version of `angular-linking` has the new license (MIT), and also
disables Babel config lookups. That potentially fixes the flakiness
where Babel fails reading some incomplete config file
Migrates the theming tests to `rules_js`. This also requires us to bring
in the Jasmine ruleset, and fix some issues with the test tsconfig.
This commit migrates more targets from `ts_library` to `ts_project`.
This will allow pnpm to identifiy dependencies like `parse5` to be
understood as non-dev dependencies, so that they are propagated with
`rules_js` even when `cdk` is linked as `npm_package`. This is necessary
when using the npm package of CDK in the Material schematic tests.

To do this we need to give up on our non-statically readable
substitutions for tslib and RxJS but this is acceptable as those don't
change often and the benefits of the pnpm workspace are more important.

We move `parse5` from `optionalDependencies` to `dependencies` so that
pnpm recognizes this as non-dev dependency for the runtime execution of
the CDK package. `parse5` doesn't have any native code, so
`optionalDependencies` vs `dependencies` doesn't make a difference.

Long-term we should consider simply bundling `parse5` here.
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Mar 25, 2025
@devversion devversion force-pushed the rjs-3-patch branch 3 times, most recently from 6d83268 to c43ecaa Compare March 25, 2025 08:46
@devversion devversion requested a review from crisbeto March 25, 2025 11:42
@devversion devversion added target: patch This PR is targeted for the next patch release action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 25, 2025
Migrates all schematics code to `ts_project` and simplifies
complexity/confusion around devmode,prodmode ESM and CommonJS.
@devversion devversion added the action: merge The PR is ready for merge by the caretaker label Mar 25, 2025
@devversion devversion marked this pull request as ready for review March 25, 2025 12:38
@devversion devversion requested review from a team as code owners March 25, 2025 12:38
@devversion devversion requested review from mmalerba and andrewseguin and removed request for a team, mmalerba and andrewseguin March 25, 2025 12:38
@devversion devversion merged commit 0e18581 into angular:19.2.x Mar 25, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker action: review The PR is still awaiting reviews from at least one requested reviewer area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants