File tree 4 files changed +4
-8
lines changed
packages/angular_devkit/build_angular
4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,6 @@ ts_library(
130
130
"@npm//@types/node" ,
131
131
"@npm//@types/parse5-html-rewriting-stream" ,
132
132
"@npm//@types/postcss-preset-env" ,
133
- "@npm//@types/rimraf" ,
134
133
"@npm//@types/sass" ,
135
134
"@npm//@types/semver" ,
136
135
"@npm//@types/text-table" ,
@@ -171,7 +170,6 @@ ts_library(
171
170
"@npm//raw-loader" ,
172
171
"@npm//regenerator-runtime" ,
173
172
"@npm//resolve-url-loader" ,
174
- "@npm//rimraf" ,
175
173
"@npm//rxjs" ,
176
174
"@npm//sass" ,
177
175
"@npm//sass-loader" ,
Original file line number Diff line number Diff line change 53
53
"raw-loader" : " 4.0.2" ,
54
54
"regenerator-runtime" : " 0.13.7" ,
55
55
"resolve-url-loader" : " 4.0.0" ,
56
- "rimraf" : " 3.0.2" ,
57
56
"rxjs" : " 6.6.7" ,
58
57
"sass" : " 1.34.1" ,
59
58
"sass-loader" : " 12.0.0" ,
Original file line number Diff line number Diff line change 6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
9
+ import { rmdirSync } from 'fs' ;
9
10
import { resolve } from 'path' ;
10
- import * as rimraf from 'rimraf' ;
11
11
12
12
/**
13
13
* Delete an output directory, but error out if it's the root of the project.
14
14
*/
15
- export function deleteOutputDir ( root : string , outputPath : string ) {
15
+ export function deleteOutputDir ( root : string , outputPath : string ) : void {
16
16
const resolvedOutputPath = resolve ( root , outputPath ) ;
17
17
if ( resolvedOutputPath === root ) {
18
18
throw new Error ( 'Output path MUST not be project root directory!' ) ;
19
19
}
20
20
21
- rimraf . sync ( resolvedOutputPath ) ;
21
+ rmdirSync ( resolvedOutputPath , { recursive : true , maxRetries : 3 } ) ;
22
22
}
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import { json } from '@angular-devkit/core';
11
11
import * as fs from 'fs' ;
12
12
import * as os from 'os' ;
13
13
import * as path from 'path' ;
14
- import * as rimraf from 'rimraf' ;
15
14
import { Schema as BrowserBuilderSchema } from '../browser/schema' ;
16
15
import { Schema as ServerBuilderSchema } from '../server/schema' ;
17
16
import { readTsconfig } from '../utils/read-tsconfig' ;
@@ -268,7 +267,7 @@ export async function configureI18nBuild<T extends BrowserBuilderSchema | Server
268
267
// Remove temporary directory used for i18n processing
269
268
process . on ( 'exit' , ( ) => {
270
269
try {
271
- rimraf . sync ( tempPath ) ;
270
+ fs . rmdirSync ( tempPath , { recursive : true , maxRetries : 3 } ) ;
272
271
} catch { }
273
272
} ) ;
274
273
}
You can’t perform that action at this time.
0 commit comments