From 84f42621765da4f34f4674ab7f13de9ef2cef95a Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 30 Jan 2022 14:23:02 +0300 Subject: [PATCH] fix rmDir deprecation warning --- tools/fix-transifex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/fix-transifex.js b/tools/fix-transifex.js index 10700c7e..eb67e5e0 100644 --- a/tools/fix-transifex.js +++ b/tools/fix-transifex.js @@ -60,7 +60,7 @@ function fixLngFile(lng) { if (resStr !== jsonStr) { let err; if (resStr === '{}') { - fs.rmdirSync(`${DIR}${lng}`, {recursive: true}); + fs.rmSync(`${DIR}${lng}`, {recursive: true, force: true}); err = 'no translations -> deleted'; } else { fse.outputFileSync(makeFileName(lng), resStr + '\n');