Skip to content

Commit c761502

Browse files
deps: bump rimraf from 3.0.2 to 5.0.0 (#1230)
* deps: bump rimraf from 3.0.2 to 5.0.0 Bumps [rimraf](https://github.com/isaacs/rimraf) from 3.0.2 to 5.0.0. - [Release notes](https://github.com/isaacs/rimraf/releases) - [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md) - [Commits](isaacs/rimraf@v3.0.2...v5.0.0) --- updated-dependencies: - dependency-name: rimraf dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: update to new api --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Potsides <alex@achingbrain.net>
1 parent 1221361 commit c761502

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
"proper-lockfile": "^4.1.2",
300300
"react-native-test-runner": "^5.0.0",
301301
"read-pkg-up": "^9.1.0",
302-
"rimraf": "^3.0.2",
302+
"rimraf": "^5.0.0",
303303
"semantic-release": "^21.0.1",
304304
"semantic-release-monorepo": "^7.0.5",
305305
"semver": "^7.3.8",
@@ -332,7 +332,6 @@
332332
"@types/polka": "^0.5.2",
333333
"@types/prompt": "^1.1.2",
334334
"@types/proper-lockfile": "^4.1.1",
335-
"@types/rimraf": "^3.0.2",
336335
"@types/semver": "^7.3.4",
337336
"@types/update-notifier": "^6.0.1",
338337
"@types/yargs": "^17.0.0",

src/clean.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
/* eslint-disable no-console */
22

3-
import { promisify } from 'util'
43
import Listr from 'listr'
5-
import rm from 'rimraf'
6-
7-
const rimraf = promisify(rm)
4+
import { rimraf } from 'rimraf'
85

96
/**
107
* @typedef {import("./types").GlobalOptions} GlobalOptions
@@ -20,7 +17,9 @@ export default new Listr([
2017
*/
2118
task: async (ctx) => {
2219
await Promise.all(
23-
ctx.files.map(pattern => rimraf(pattern))
20+
ctx.files.map(pattern => rimraf(pattern, {
21+
glob: true
22+
}))
2423
)
2524
}
2625
}

0 commit comments

Comments
 (0)