Skip to content

Commit 99d0a31

Browse files
committed
fix(@angular/cli): delete node_modules on eject e2e
And add missing dependenices when ejecting.
1 parent 1b57f12 commit 99d0a31

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: packages/@angular/cli/tasks/eject.ts

+2
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,8 @@ export default Task.extend({
594594

595595
// Update all loaders from webpack, plus postcss plugins.
596596
[
597+
'@angular-devkit/core',
598+
'@ngtools/webpack',
597599
'webpack',
598600
'autoprefixer',
599601
'css-loader',

Diff for: tests/e2e/utils/process.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ export function ng(...args: string[]) {
178178
.then(() => {
179179
if (!npmInstalledEject) {
180180
npmInstalledEject = true;
181-
// We need to run npm install on the first eject.
182-
return silentNpm('install');
181+
// We need to delete node_modules, then run npm install on the first eject.
182+
return rimraf('node_modules').then(() => silentNpm('install'));
183183
}
184184
})
185185
.then(() => rimraf('dist'))

0 commit comments

Comments
 (0)