Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): migrations not always migrating all files (#30269)
In an Angular CLI project scenario where projects only reference top-level source-files through the `tsconfig` `files` option, we currently do not migrate referenced source-files. This can be fixed checking all referenced source-files which aren't coming from an external library. This is similar to how `tslint` determines project source-files. PR Close #30269
- Loading branch information
1 parent
c3246e6
commit e8ceae1
Showing
4 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e8ceae1
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.
@devversion if writing a test for this change is prohibitively expensive then please state so in the commit message, but in general whenever possible we should try to include tests for all changes.
e8ceae1
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.
@IgorMinar ops sorry for that. I usually try to do that for every change, but this one was slightly different. Will put a note in the commit message next time. Thanks for telling me π
For later reference: There is actually a test that depends on this logic to work, but it was part of a follow-up commit in the same PR (see a71d8a8). I agree that ideally there would be an explicit test that is part of this commit. We can have these tests but it will result in a bit duplication since we actually have this logic for every migration schematic and running it outside of a schematic test runner would not have much value.