1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-16 09:41:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
sunnylqm
2020-05-29 13:15:24 +08:00
parent 92f7d7efc4
commit 6ed6420dd1

View File

@@ -39,7 +39,7 @@ function exec(command) {
}
function emptyDir(dir) {
return new Promise((resolve) => {
fs.rmdir(dir, () => {
fs.rmdir(dir, { recursive: true }, () => {
fs.mkdir(dir, resolve);
});
});