chore(node-utils): Fix emptyDir promise.

This commit is contained in:
Gervwyk 2022-01-21 11:10:58 +02:00
parent ceafdc8cfc
commit 762df5ffc5

View File

@ -17,7 +17,7 @@
import fsExtra from 'fs-extra';
async function cleanDirectory(dirPath) {
await new Promise((resolve) => fsExtra.emptyDir(dirPath, resolve));
await fsExtra.emptyDir(dirPath);
}
export default cleanDirectory;