Skip to content

Commit 7735516

Browse files
clydinvikerman
authored andcommitted
fix(@angular/cli): disable update commit creation by default
Closes #16013
1 parent 449c51f commit 7735516

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/angular/cli/commands/update-impl.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
425425
packageName,
426426
migrations,
427427
migrationRange,
428-
!options.skipCommits,
428+
options.createCommits,
429429
);
430430

431431
return success ? 0 : 1;
@@ -539,7 +539,7 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
539539
migrateExternal: true,
540540
});
541541

542-
if (success && !options.skipCommits) {
542+
if (success && options.createCommits) {
543543
this.createCommit('Angular CLI update\n' + packagesToUpdate.join('\n'), []);
544544
}
545545

@@ -558,7 +558,7 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
558558
migration.package,
559559
migration.collection,
560560
new semver.Range('>' + migration.from + ' <=' + migration.to),
561-
!options.skipCommits,
561+
options.createCommits,
562562
);
563563

564564
if (!result) {

packages/angular/cli/commands/update.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
"type": "boolean",
6464
"default": false
6565
},
66-
"skipCommits": {
67-
"description": "Do not create source control commits for updates and migrations.",
66+
"createCommits": {
67+
"description": "Create source control commits for updates and migrations.",
6868
"type": "boolean",
6969
"default": false,
7070
"aliases": ["C"]

0 commit comments

Comments
 (0)