1
0
Fork 0
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:
Kyle Kelley 2017-07-04 23:19:35 -06:00 committed by Arunoda Susiripala
parent ec2b76f83b
commit 5a840cc39e

View file

@ -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 })
} }