Commit 317c061
committed
refactor(script): Improve build script compatibility by replacing rm -rf with a Node.js script
This commit replaces the `rm -rf dist` command in the build script
with a cross-platform Node.js script (`scripts/cleanDist.ts`).
This enhances compatibility, particularly for Windows environments
where `rm -rf` is not natively available.
The new script uses `node:fs/promises` to delete the 'dist' directory.1 parent 666eeb5 commit 317c061
2 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments