Skip to content

Conversation

leosvelperez
Copy link
Member

Current Behavior

Running Angular migrations (particularly Angular Material migrations) normally results in many warnings stating that projects were skipped. This happens because Angular migrations make some assumptions that are not guaranteed in Nx monorepos:

  • build and test tasks are literally called build and test (it they have a different name, the Angular migrations don't handle them)
  • those tasks must have a tsConfig option set in the task options object

While Nx can't change the first assumption, it can ensure that tsConfig is set in some tasks that allow it.

Expected Behavior

Tasks using the @nx/angular:package, @nx/angular:ng-packagr-lite, and @nx/jest:jest executors should have the tsConfig option set to aid the Angular migrations to run.

Note: This PR restores the tsConfig option for the @nx/jest:jest executor that was recently removed. The option description states that it is only metadata for Angular migrations and is not used by the executor. The option will only be set by Nx generators for Angular projects.

Related Issue(s)

Fixes #32138

@leosvelperez leosvelperez self-assigned this Aug 14, 2025
Copy link

vercel bot commented Aug 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Aug 19, 2025 11:33am
Copy link
Contributor

nx-cloud bot commented Aug 14, 2025

View your CI Pipeline Execution ↗ for commit 77fa251

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 32m 58s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 2m 11s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 8s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 7s View ↗
nx documentation ✅ Succeeded 1m 35s View ↗

☁️ Nx Cloud last updated this comment at 2025-08-19 11:59:48 UTC

Copy link

netlify bot commented Aug 18, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit e5d4d38
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/68a2dd9326692e00083c3737
😎 Deploy Preview https://deploy-preview-32355--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@leosvelperez leosvelperez merged commit 74e0de0 into master Aug 19, 2025
6 checks passed
@leosvelperez leosvelperez deleted the fix/issue-32138 branch August 19, 2025 13:28
FrozenPandaz pushed a commit that referenced this pull request Aug 22, 2025
…ular migrations (#32355)

## Current Behavior

Running Angular migrations (particularly Angular Material migrations)
normally results in many warnings stating that projects were skipped.
This happens because Angular migrations make some assumptions that are
not guaranteed in Nx monorepos:

- build and test tasks are literally called `build` and `test` (it they
have a different name, the Angular migrations don't handle them)
- those tasks must have a `tsConfig` option set in the task `options`
object

While Nx can't change the first assumption, it can ensure that
`tsConfig` is set in some tasks that allow it.

## Expected Behavior

Tasks using the `@nx/angular:package`, `@nx/angular:ng-packagr-lite`,
and `@nx/jest:jest` executors should have the `tsConfig` option set to
aid the Angular migrations to run.

Note: This PR restores the `tsConfig` option for the `@nx/jest:jest`
executor that was recently removed. The option description states that
it is only metadata for Angular migrations and is not used by the
executor. The option will only be set by Nx generators for Angular
projects.

## Related Issue(s)

Fixes #32138

(cherry picked from commit 74e0de0)
Copy link
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants