-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix(angular): set the tsConfig
option when possible to aid with angular migrations
#32355
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
The latest updates on your projects. Learn more about Vercel for GitHub.
|
View your CI Pipeline Execution ↗ for commit 77fa251
☁️ Nx Cloud last updated this comment at |
b1ab595
to
e5d4d38
Compare
✅ Deploy Preview for nx-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
e5d4d38
to
77fa251
Compare
…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)
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. |
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
andtest
(it they have a different name, the Angular migrations don't handle them)tsConfig
option set in the taskoptions
objectWhile 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 thetsConfig
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