Skip to content

Commit e314135

Browse files
johnpapafilipesilva
authored andcommitted
fix(@angular/cli): rephrased warning message
Rephrasing the warning message to read more fluently "needs to not contain" ---> "must not contain" Close angular#5006
1 parent 3b39843 commit e314135

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/@angular/cli/tasks/eject.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -431,12 +431,12 @@ export default Task.extend({
431431
const scripts = packageJson['scripts'];
432432
if (scripts['build'] && scripts['build'] !== 'ng build' && !force) {
433433
throw new SilentError(oneLine`
434-
Your package.json scripts needs to not contain a build script as it will be overwritten.
434+
Your package.json scripts must not contain a build script as it will be overwritten.
435435
`);
436436
}
437437
if (scripts['start'] && scripts['start'] !== 'ng serve' && !force) {
438438
throw new SilentError(oneLine`
439-
Your package.json scripts needs to not contain a start script as it will be overwritten.
439+
Your package.json scripts must not contain a start script as it will be overwritten.
440440
`);
441441
}
442442
if (scripts['pree2e'] && scripts['prepree2e'] !== 'npm start' && !force) {
@@ -447,18 +447,18 @@ export default Task.extend({
447447
}
448448
if (scripts['pree2e'] && scripts['pree2e'] !== pree2eNpmScript && !force) {
449449
throw new SilentError(oneLine`
450-
Your package.json scripts needs to not contain a pree2e script as it will be
450+
Your package.json scripts must not contain a pree2e script as it will be
451451
overwritten.
452452
`);
453453
}
454454
if (scripts['e2e'] && scripts['e2e'] !== 'ng e2e' && !force) {
455455
throw new SilentError(oneLine`
456-
Your package.json scripts needs to not contain a e2e script as it will be overwritten.
456+
Your package.json scripts must not contain a e2e script as it will be overwritten.
457457
`);
458458
}
459459
if (scripts['test'] && scripts['test'] !== 'ng test' && !force) {
460460
throw new SilentError(oneLine`
461-
Your package.json scripts needs to not contain a test script as it will be overwritten.
461+
Your package.json scripts must not contain a test script as it will be overwritten.
462462
`);
463463
}
464464

0 commit comments

Comments
 (0)