Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Sep 30, 2025

The ai-config schematic will now check if a configuration file already exists before generating a new one. If a file is present, the schematic will skip it and log a detailed, actionable warning to the console.

This change prevents the accidental overwriting of user-customized configuration files, making the schematic safer to run multiple times. The warning message informs the user why the file was skipped and instructs them on how to regenerate it if they wish to revert to the default settings. A unit test is included to verify this non-destructive behavior.

The ai-config schematic will now check if a configuration file already exists before generating a new one. If a file is present, the schematic will skip it and log a detailed, actionable warning to the console.

This change prevents the accidental overwriting of user-customized configuration files, making the schematic safer to run multiple times. The warning message informs the user why the file was skipped and instructs them on how to regenerate it if they wish to revert to the default settings. A unit test is included to verify this non-destructive behavior.
@clydin clydin added the target: major This PR is targeted for the next major release label Sep 30, 2025
@clydin clydin added the action: merge The PR is ready for merge by the caretaker label Sep 30, 2025
@clydin clydin merged commit e304821 into angular:main Sep 30, 2025
34 checks passed
@clydin clydin deleted the ai/warn-skip-existing branch September 30, 2025 16:14
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 area: @schematics/angular target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants