We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e32536a commit 763fbbcCopy full SHA for 763fbbc
build/dev.ts
@@ -45,14 +45,11 @@ async function watchDictionary(): Promise<number> {
45
assert(!status.success);
46
return status.code;
47
}
48
-async function main(): Promise<void> {
+if (import.meta.main) {
49
if (!await exists(DICTIONARY)) {
50
await Deno.create(DICTIONARY);
51
52
const statusCodePromise = watchDictionary();
53
await using _ = await watchMain();
54
Deno.exitCode = await statusCodePromise;
55
56
-if (import.meta.main) {
57
- await main();
58
-}
0 commit comments