Skip to content

refactor: fix schematics not respecting new -module.ts suffix #31299

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

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

devversion
Copy link
Member

Angular CLI generates -module.ts suffix when using --standalone: false. Our schematic tests generate the same, and fail currently because some files weren't picked up properly by the rule.

This commit fixes this, and adds supports for the new suffix in a naive way until angular/angular-cli#30471 is available.

@devversion devversion requested review from a team as code owners June 5, 2025 15:12
@devversion devversion requested review from adolgachev, ok7sai and andrewseguin and removed request for a team June 5, 2025 15:12
Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Angular CLI generates `-module.ts` suffix when using `--standalone:
false`. Our schematic tests generate the same, and fail currently
because some files weren't picked up properly by the rule.

This commit fixes this, and adds supports for the new suffix in a naive
way until angular/angular-cli#30471 is
available.
@devversion devversion force-pushed the fix-schematic-tests branch from 1277bce to a48725f Compare June 5, 2025 15:18
@devversion devversion added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Jun 5, 2025
@devversion devversion merged commit 394336c into angular:main Jun 5, 2025
26 of 28 checks passed
@devversion
Copy link
Member Author

The changes were merged into the following branches: main, 20.0.x

devversion added a commit that referenced this pull request Jun 5, 2025
Angular CLI generates `-module.ts` suffix when using `--standalone:
false`. Our schematic tests generate the same, and fail currently
because some files weren't picked up properly by the rule.

This commit fixes this, and adds supports for the new suffix in a naive
way until angular/angular-cli#30471 is
available.

(cherry picked from commit 394336c)
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 target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants