Skip to content

Commit e41c93d

Browse files
fill-the-fillfill-the-fill
andauthored
Replace fs.rmdir (will be removed in future Node.js version) with fs.rm (cardano-foundation#692)
Co-authored-by: fill-the-fill <[email protected]>
1 parent 1a4cc4a commit e41c93d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/cip.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const processCIPContentAsync = async (cipName: string, content: string) => {
4848
);
4949

5050
if (fs.existsSync(`.${CIPStaticResourcePath}${cipName}`)) {
51-
fs.rmdirSync(`.${CIPStaticResourcePath}${cipName}`, {
51+
fs.rmSync(`.${CIPStaticResourcePath}${cipName}`, {
5252
recursive: true,
5353
});
5454
}
@@ -131,7 +131,7 @@ const main = async () => {
131131
const cipUrlsUnique = [...new Set(cipUrls)];
132132

133133
if (fs.existsSync(CIPDocsPath)) {
134-
fs.rmdirSync(CIPDocsPath, { recursive: true });
134+
fs.rmSync(CIPDocsPath, { recursive: true });
135135
}
136136
fs.mkdirSync(CIPDocsPath, { recursive: true });
137137

scripts/token-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const main = async () => {
138138

139139
// Create token registry folder to store markdown files locally
140140
if (fs.existsSync(TRDocsPath)) {
141-
fs.rmdirSync(TRDocsPath, { recursive: true });
141+
fs.rmSync(TRDocsPath, { recursive: true });
142142
}
143143
fs.mkdirSync(TRDocsPath, { recursive: true });
144144

0 commit comments

Comments
 (0)