Skip to content

Commit

Permalink
Adds clean script
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Aug 13, 2024
1 parent 5752a0c commit b731219
Show file tree
Hide file tree
Showing 3 changed files with 479 additions and 3 deletions.
10 changes: 10 additions & 0 deletions clean.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { existsSync, rmSync } from 'fs';
import { yellow } from 'colors';

const paths = ['dist'];
for (const path of paths) {
if (existsSync(path)) {
rmSync(path, { recursive: true });
console.log(`Path '${yellow(path)}' has been deleted`);
}
}
Loading

0 comments on commit b731219

Please sign in to comment.