File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
packages/@angular/cli/tasks Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export default Task.extend({
27
27
if ( config . project && config . project . ejected ) {
28
28
throw new SilentError ( 'An ejected project cannot use the build command anymore.' ) ;
29
29
}
30
- rimraf . sync ( path . resolve ( project . root , outputPath ) ) ;
30
+ rimraf . sync ( ` ${ path . resolve ( project . root , outputPath ) } /*` ) ;
31
31
32
32
const webpackConfig = new NgCliWebpackConfig ( runTaskOptions , app ) . buildConfig ( ) ;
33
33
const webpackCompiler = webpack ( webpackConfig ) ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default Task.extend({
31
31
if ( projectConfig . project && projectConfig . project . ejected ) {
32
32
throw new SilentError ( 'An ejected project cannot use the build command anymore.' ) ;
33
33
}
34
- rimraf . sync ( path . resolve ( this . project . root , outputPath ) ) ;
34
+ rimraf . sync ( ` ${ path . resolve ( this . project . root , outputPath ) } /*` ) ;
35
35
36
36
const serveDefaults = {
37
37
// default deployUrl to '' on serve to prevent the default from .angular-cli.json
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ export default function() {
6
6
return deleteFile ( 'src/app/app.component.ts' )
7
7
// This is supposed to fail since there's a missing file
8
8
. then ( ( ) => expectToFail ( ( ) => ng ( 'build' ) ) )
9
- // Failed builds don't leave behind dist/
10
- . then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/' ) ) ) ;
9
+ // Failed builds don't leave behind files inside dist/
10
+ . then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/main.bundle.js ' ) ) ) ;
11
11
}
You can’t perform that action at this time.
0 commit comments