Skip to content

Commit

Permalink
deps: bump rimraf from 3.0.2 to 5.0.0 (#1230)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
dependabot[bot] and achingbrain authored Apr 27, 2023
1 parent 1221361 commit c761502
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
"proper-lockfile": "^4.1.2",
"react-native-test-runner": "^5.0.0",
"read-pkg-up": "^9.1.0",
"rimraf": "^3.0.2",
"rimraf": "^5.0.0",
"semantic-release": "^21.0.1",
"semantic-release-monorepo": "^7.0.5",
"semver": "^7.3.8",
Expand Down Expand Up @@ -332,7 +332,6 @@
"@types/polka": "^0.5.2",
"@types/prompt": "^1.1.2",
"@types/proper-lockfile": "^4.1.1",
"@types/rimraf": "^3.0.2",
"@types/semver": "^7.3.4",
"@types/update-notifier": "^6.0.1",
"@types/yargs": "^17.0.0",
Expand Down
9 changes: 4 additions & 5 deletions src/clean.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/* eslint-disable no-console */

import { promisify } from 'util'
import Listr from 'listr'
import rm from 'rimraf'

const rimraf = promisify(rm)
import { rimraf } from 'rimraf'

/**
* @typedef {import("./types").GlobalOptions} GlobalOptions
Expand All @@ -20,7 +17,9 @@ export default new Listr([
*/
task: async (ctx) => {
await Promise.all(
ctx.files.map(pattern => rimraf(pattern))
ctx.files.map(pattern => rimraf(pattern, {
glob: true
}))
)
}
}
Expand Down

0 comments on commit c761502

Please sign in to comment.