Skip to content

Commit afc33b2

Browse files
Broccohansl
authored andcommitted
fix(@schematics/angular): Add npm script warning for after updating
related to #10311
1 parent ed832ed commit afc33b2

File tree

1 file changed

+7
-1
lines changed
  • packages/schematics/angular/migrations/update-6

1 file changed

+7
-1
lines changed

packages/schematics/angular/migrations/update-6/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import { JsonObject, Path, join, normalize } from '@angular-devkit/core';
8+
import { JsonObject, Path, join, normalize, tags } from '@angular-devkit/core';
99
import {
1010
Rule,
1111
SchematicContext,
@@ -608,6 +608,12 @@ export default function (): Rule {
608608
updateSpecTsConfig(config),
609609
updatePackageJson(config.packageManager),
610610
updateTsLintConfig(),
611+
(host: Tree, context: SchematicContext) => {
612+
context.logger.warn(tags.oneLine`Some configuration options have been changed,
613+
please make sure to update any npm scripts which you may have modified.`);
614+
615+
return host;
616+
},
611617
])(host, context);
612618
};
613619
}

0 commit comments

Comments
 (0)