We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0e9dd8 commit eed5bc9Copy full SHA for eed5bc9
apps/rush-lib/src/cli/actions/ChangeAction.ts
@@ -618,7 +618,7 @@ export class ChangeAction extends BaseRushAction {
618
(interactiveMode ? await this._promptForOverwrite(promptModule, filePath) : false)
619
);
620
621
- if (!interactiveMode && !overwrite) {
+ if (!interactiveMode && fileExists && !overwrite) {
622
throw new Error(`Changefile ${filePath} already exists`);
623
}
624
0 commit comments