File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 299
299
"proper-lockfile" : " ^4.1.2" ,
300
300
"react-native-test-runner" : " ^5.0.0" ,
301
301
"read-pkg-up" : " ^9.1.0" ,
302
- "rimraf" : " ^3 .0.2 " ,
302
+ "rimraf" : " ^5 .0.0 " ,
303
303
"semantic-release" : " ^21.0.1" ,
304
304
"semantic-release-monorepo" : " ^7.0.5" ,
305
305
"semver" : " ^7.3.8" ,
332
332
"@types/polka" : " ^0.5.2" ,
333
333
"@types/prompt" : " ^1.1.2" ,
334
334
"@types/proper-lockfile" : " ^4.1.1" ,
335
- "@types/rimraf" : " ^3.0.2" ,
336
335
"@types/semver" : " ^7.3.4" ,
337
336
"@types/update-notifier" : " ^6.0.1" ,
338
337
"@types/yargs" : " ^17.0.0" ,
Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-console */
2
2
3
- import { promisify } from 'util'
4
3
import Listr from 'listr'
5
- import rm from 'rimraf'
6
-
7
- const rimraf = promisify ( rm )
4
+ import { rimraf } from 'rimraf'
8
5
9
6
/**
10
7
* @typedef {import("./types").GlobalOptions } GlobalOptions
@@ -20,7 +17,9 @@ export default new Listr([
20
17
*/
21
18
task : async ( ctx ) => {
22
19
await Promise . all (
23
- ctx . files . map ( pattern => rimraf ( pattern ) )
20
+ ctx . files . map ( pattern => rimraf ( pattern , {
21
+ glob : true
22
+ } ) )
24
23
)
25
24
}
26
25
}
You can’t perform that action at this time.
0 commit comments