diff --git a/packages/@angular/cli/tasks/eject.ts b/packages/@angular/cli/tasks/eject.ts index b04637701e83..900f6cf26638 100644 --- a/packages/@angular/cli/tasks/eject.ts +++ b/packages/@angular/cli/tasks/eject.ts @@ -424,12 +424,6 @@ export default Task.extend({ Your package.json scripts must not contain a start script as it will be overwritten. `); } - if (scripts['pree2e'] && scripts['prepree2e'] !== 'npm start' && !force) { - throw new SilentError(oneLine` - Your package.json scripts needs to not contain a prepree2e script as it will be - overwritten. - `); - } if (scripts['pree2e'] && scripts['pree2e'] !== pree2eNpmScript && !force) { throw new SilentError(oneLine` Your package.json scripts must not contain a pree2e script as it will be @@ -450,7 +444,6 @@ export default Task.extend({ packageJson['scripts']['build'] = 'webpack'; packageJson['scripts']['start'] = 'webpack-dev-server --port=4200'; packageJson['scripts']['test'] = 'karma start ./karma.conf.js'; - packageJson['scripts']['prepree2e'] = 'npm start'; packageJson['scripts']['pree2e'] = pree2eNpmScript; packageJson['scripts']['e2e'] = 'protractor ./protractor.conf.js';