isaacs / rimraf

A `rm -rf` util for nodejs
ISC License
5.66k stars 252 forks source link

Fuzzy matching can't be used #260

Closed liuseen-l closed 1 year ago

liuseen-l commented 1 year ago

on window: `
"scripts": {

"clean": "rimraf packages/*/dist"

} `

image

dpilafian commented 1 year ago

I believe it's glob not regex that you're trying to use. Judging from the updated readme, it looks like the new usage needs the --glob flag. Also, the path needs to be quoted.

Something like this might work:

"scripts": {
   "clean": "rimraf --glob 'packages/*/dist'"
},