Skip to content

Commit 24196e6

Browse files
committed
Only run sync.ts main if run directly
1 parent 63d3d63 commit 24196e6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎pr-checks/sync.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,4 +852,6 @@ function main(): void {
852852
);
853853
}
854854

855-
main();
855+
if (import.meta.main) {
856+
main();
857+
}

0 commit comments

Comments
 (0)