Skip to content

Commit 763fbbc

Browse files
committed
small fix
1 parent e32536a commit 763fbbc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

build/dev.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,11 @@ async function watchDictionary(): Promise<number> {
4545
assert(!status.success);
4646
return status.code;
4747
}
48-
async function main(): Promise<void> {
48+
if (import.meta.main) {
4949
if (!await exists(DICTIONARY)) {
5050
await Deno.create(DICTIONARY);
5151
}
5252
const statusCodePromise = watchDictionary();
5353
await using _ = await watchMain();
5454
Deno.exitCode = await statusCodePromise;
5555
}
56-
if (import.meta.main) {
57-
await main();
58-
}

0 commit comments

Comments
 (0)