8000 Replace deprecated usage of fs.rmdir · devforth/scriptimate@ab01b20 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab01b20

Browse files
authored
Replace deprecated usage of fs.rmdir
This is causing a node deprecation warning to show up in the tool output: ```console (node:1) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead ``` The warning provides the recommended fix.
1 parent e4bd836 commit ab01b20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/scriptimate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ const runGeneration = async (lang) => {
541541
}
542542
}
543543

544-
await fs.rmdir(FRAMES_DIR, { recursive: true });
544+
await fs.rm(FRAMES_DIR, { recursive: true });
545545
await fs.mkdir(FRAMES_DIR, { recursive: true });
546546

547547
const processed_lines = []
@@ -900,4 +900,4 @@ const runGeneration = async (lang) => {
900900
for (let lang of [...Object.keys(translationsDict), 'default']) {
901901
await runGeneration(lang);
902902
}
903-
})();
903+
})();

0 commit comments

Comments
 (0)
0