Skip to content

Commit

Permalink
Fix deprecated library call (#655)
Browse files Browse the repository at this point in the history
Replaces call to fs.rmdirSync with fs.rmSync.
See npm deprecation DEP0147 (https://nodejs.org/api/deprecations.html#DEP0147)
  • Loading branch information
gmjgeek authored Aug 6, 2024
1 parent 82317d7 commit 531fe51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert/convertBooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export async function convertBooks(
fs.cpSync(folderSrcDir, folderDstDir, { recursive: true });
} else {
if (fs.existsSync(folderDstDir)) {
fs.rmdirSync(folderDstDir, { recursive: true });
fs.rmSync(folderDstDir, { recursive: true, force: true });
}
}
});
Expand Down

0 comments on commit 531fe51

Please sign in to comment.