Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rephrased warning message #5006

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/@angular/cli/tasks/eject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,28 +431,28 @@ export default Task.extend({
const scripts = packageJson['scripts'];
if (scripts['build'] && scripts['build'] !== 'ng build' && !force) {
throw new SilentError(oneLine`
Your package.json scripts needs to not contain a build script as it will be overwritten.
Your package.json scripts must not contain a build script as it will be overwritten.
`);
}
if (scripts['start'] && scripts['start'] !== 'ng serve' && !force) {
throw new SilentError(oneLine`
Your package.json scripts needs to not contain a start script as it will be overwritten.
Your package.json scripts must not contain a start script as it will be overwritten.
`);
}
if (scripts['pree2e'] && scripts['pree2e'] !== pree2eNpmScript && !force) {
throw new SilentError(oneLine`
Your package.json scripts needs to not contain a pree2e script as it will be
Your package.json scripts must not contain a pree2e script as it will be
overwritten.
`);
}
if (scripts['e2e'] && scripts['e2e'] !== 'ng e2e' && !force) {
throw new SilentError(oneLine`
Your package.json scripts needs to not contain a e2e script as it will be overwritten.
Your package.json scripts must not contain a e2e script as it will be overwritten.
`);
}
if (scripts['test'] && scripts['test'] !== 'ng test' && !force) {
throw new SilentError(oneLine`
Your package.json scripts needs to not contain a test script as it will be overwritten.
Your package.json scripts must not contain a test script as it will be overwritten.
`);
}

Expand Down