Skip to content

Commit

Permalink
fix(@angular/cli): delete node_modules on eject e2e
Browse files Browse the repository at this point in the history
And add missing dependenices when ejecting.
  • Loading branch information
hansl committed Jan 25, 2018
1 parent 53e84fe commit 5c00e1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/@angular/cli/tasks/eject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,8 @@ export default Task.extend({

// Update all loaders from webpack, plus postcss plugins.
[
'@angular-devkit/core',
'@ngtools/webpack',
'webpack',
'autoprefixer',
'css-loader',
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/utils/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ export function ng(...args: string[]) {
.then(() => {
if (!npmInstalledEject) {
npmInstalledEject = true;
// We need to run npm install on the first eject.
return silentNpm('install');
// We need to delete node_modules, then run npm install on the first eject.
return rimraf('node_modules').then(() => silentNpm('install'));
}
})
.then(() => rimraf('dist'))
Expand Down

0 comments on commit 5c00e1f

Please sign in to comment.