mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
allow cleaning from non-cwd (#2451)
This commit is contained in:
parent
ec2b76f83b
commit
5a840cc39e
|
@ -4,5 +4,5 @@ import getConfig from '../config'
|
||||||
|
|
||||||
export default function clean (dir) {
|
export default function clean (dir) {
|
||||||
const dist = getConfig(dir).distDir
|
const dist = getConfig(dir).distDir
|
||||||
return del(resolve(dir, dist))
|
return del(resolve(dir, dist), { force: true })
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue