File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import { BuildOptions, context } from "esbuild";
6
6
import { AsyncDisposableStack } from "../misc/async_disposable_stack.ts" ;
7
7
import { OPTIONS } from "./config.ts" ;
8
8
9
+ const DICTIONARY = new URL ( "../dictionary/dictionary.ts" , import . meta. url ) ;
10
+
9
11
const BUILD_OPTIONS : BuildOptions = {
10
12
...OPTIONS ,
11
13
minify : false ,
@@ -44,14 +46,8 @@ async function watchDictionary(): Promise<number> {
44
46
return status . code ;
45
47
}
46
48
async function main ( ) : Promise < void > {
47
- if (
48
- ! await exists ( new URL ( "../dictionary/dictionary.ts" , import . meta. url ) )
49
- ) {
50
- const Dictionary = await import ( "../dictionary/build.ts" ) ;
51
- if ( ! await Dictionary . build ( ) ) {
52
- Deno . exitCode = 1 ;
53
- return ;
54
- }
49
+ if ( ! await exists ( DICTIONARY ) ) {
50
+ await Deno . create ( DICTIONARY ) ;
55
51
}
56
52
const statusCodePromise = watchDictionary ( ) ;
57
53
await using _ = await watchMain ( ) ;
You can’t perform that action at this time.
0 commit comments