File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Example usage:
24
24
'use strict' ;
25
25
26
26
function run ( argv , options ) {
27
- const fs = require ( 'fs-extra ' ) ;
27
+ const rimraf = require ( 'rimraf ' ) ;
28
28
const path = require ( 'path' ) ;
29
29
const utils = require ( './utils' ) ;
30
30
var files = argv . slice ( 2 ) ;
@@ -42,7 +42,7 @@ function run(argv, options) {
42
42
console . error ( 'Skipping ' + f + ' as it is not inside the project' ) ;
43
43
}
44
44
} else {
45
- if ( ! options . dryRun ) fs . removeSync ( f ) ;
45
+ if ( ! options . dryRun ) rimraf . sync ( f ) ;
46
46
removed . push ( f ) ;
47
47
}
48
48
} ) ;
Original file line number Diff line number Diff line change 17
17
"@types/node" : " ^8.9.5" ,
18
18
"cross-spawn" : " ^6.0.3" ,
19
19
"debug" : " ^3.1.0" ,
20
+ "fs-extra" : " ^5.0.0" ,
20
21
"mocha" : " ^5.0.0" ,
21
22
"nyc" : " ^11.4.1" ,
22
23
"prettier" : " ^1.10.2" ,
24
+ "rimraf" : " ^2.6.2" ,
23
25
"source-map-support" : " ^0.5.3" ,
24
26
"strong-docs" : " ^1.9.1" ,
25
27
"tslint" : " ^5.9.1" ,
44
46
"test" : " npm run mocha" ,
45
47
"mocha" : " node bin/run-mocha --timeout 30000 \" test/integration/*.js\" " ,
46
48
"posttest" : " npm run lint"
47
- },
48
- "devDependencies" : {
49
- "fs-extra" : " ^5.0.0"
50
49
}
51
50
}
You can’t perform that action at this time.
0 commit comments