Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit c458dd6

Browse files
author
Daniel K
committed
Clear console only if watching
1 parent 577a2d4 commit c458dd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/xstate-compiled/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ const fileCache: Record<
3030
> = {};
3131

3232
printJsFiles();
33-
console.clear();
33+
if (!onlyOnce) {
34+
console.clear();
35+
}
3436

3537
const watcher = chokidar.watch(patterns, {
3638
persistent: !onlyOnce,

0 commit comments

Comments
 (0)