Skip to content

Commit

Permalink
Only actually run the import if etl is being run as a module, not imp…
Browse files Browse the repository at this point in the history
…orted
  • Loading branch information
gausie committed Jun 24, 2024
1 parent 670d8a5 commit 55c268c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/excavator-web/etl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,6 @@ async function main() {
}
}

main();
if (import.meta.filename === process?.argv[1]) {
main();
}

0 comments on commit 55c268c

Please sign in to comment.