Skip to content

Commit

Permalink
Replace fs.rmdir (will be removed in future Node.js version) with fs.…
Browse files Browse the repository at this point in the history
…rm (#692)

Co-authored-by: fill-the-fill <fill.ickevics@gmail.com>
  • Loading branch information
fill-the-fill and fickevics-makor authored Jul 15, 2022
1 parent 1a4cc4a commit e41c93d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/cip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const processCIPContentAsync = async (cipName: string, content: string) => {
);

if (fs.existsSync(`.${CIPStaticResourcePath}${cipName}`)) {
fs.rmdirSync(`.${CIPStaticResourcePath}${cipName}`, {
fs.rmSync(`.${CIPStaticResourcePath}${cipName}`, {
recursive: true,
});
}
Expand Down Expand Up @@ -131,7 +131,7 @@ const main = async () => {
const cipUrlsUnique = [...new Set(cipUrls)];

if (fs.existsSync(CIPDocsPath)) {
fs.rmdirSync(CIPDocsPath, { recursive: true });
fs.rmSync(CIPDocsPath, { recursive: true });
}
fs.mkdirSync(CIPDocsPath, { recursive: true });

Expand Down
2 changes: 1 addition & 1 deletion scripts/token-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const main = async () => {

// Create token registry folder to store markdown files locally
if (fs.existsSync(TRDocsPath)) {
fs.rmdirSync(TRDocsPath, { recursive: true });
fs.rmSync(TRDocsPath, { recursive: true });
}
fs.mkdirSync(TRDocsPath, { recursive: true });

Expand Down

0 comments on commit e41c93d

Please sign in to comment.