From ed1f88a852525a0609f7999ca4b42f5f3e087f25 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Thu, 23 Jun 2022 19:18:28 +0800 Subject: [PATCH] Change fs.rmdir to fs.rm as it is deprecated --- extra/update-wiki-version.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/update-wiki-version.js b/extra/update-wiki-version.js index d0f10561f..65b7e7b08 100644 --- a/extra/update-wiki-version.js +++ b/extra/update-wiki-version.js @@ -41,7 +41,7 @@ function updateWiki(newVersion) { function safeDelete(dir) { if (fs.existsSync(dir)) { - fs.rmdirSync(dir, { + fs.rm(dir, { recursive: true, }); }