Change fs.rmdir to fs.rm as it is deprecated

This commit is contained in:
Louis Lam 2022-06-23 19:18:28 +08:00
parent 0ecaa2cbd7
commit ed1f88a852

View file

@ -41,7 +41,7 @@ function updateWiki(newVersion) {
function safeDelete(dir) {
if (fs.existsSync(dir)) {
fs.rmdirSync(dir, {
fs.rm(dir, {
recursive: true,
});
}