Skip to content
This repository was archived by the owner on Aug 14, 2025. It is now read-only.

Commit 83328c5

Browse files
committed
add comment
1 parent 18bea72 commit 83328c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tasks/compile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ task(TASK_COMPILE, async function (args, hre, runSuper) {
3131
}
3232

3333
if (fs.existsSync(directory)) {
34+
// delete directory only if tracker is found or directory is empty
3435
if (fs.existsSync(tracker) || fs.readdirSync(directory).length == 0) {
3536
fs.rmSync(directory, { recursive: true });
3637
} else {

0 commit comments

Comments
 (0)