File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import * as ESBuild from "esbuild" ;
4
4
import { OPTIONS } from "./config.ts" ;
5
- import * as Dictionary from "./dictionary/build.ts" ;
5
+ import * as Dictionary from ".. /dictionary/build.ts" ;
6
6
7
7
const BUILD_OPTIONS : ESBuild . BuildOptions = { ...OPTIONS , minify : true } ;
8
8
File renamed without changes.
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ const BUILD_OPTIONS: ESBuild.BuildOptions = {
10
10
define : { LIVE_RELOAD : "true" } ,
11
11
} ;
12
12
if ( import . meta. main ) {
13
- if ( ! await exists ( new URL ( "./dictionary/dictionary.ts" , import . meta. url ) ) ) {
14
- const Dictionary = await import ( "./dictionary/build.ts" ) ;
13
+ if ( ! await exists ( new URL ( ".. /dictionary/dictionary.ts" , import . meta. url ) ) ) {
14
+ const Dictionary = await import ( ".. /dictionary/build.ts" ) ;
15
15
await Dictionary . build ( ) ;
16
16
}
17
17
const command = new Deno . Command ( Deno . execPath ( ) , {
@@ -25,7 +25,7 @@ if (import.meta.main) {
25
25
"--watch" ,
26
26
"./dictionary/watch.ts" ,
27
27
] ,
28
- cwd : new URL ( "./" , import . meta. url ) ,
28
+ cwd : new URL ( ".. /" , import . meta. url ) ,
29
29
stdout : "inherit" ,
30
30
stderr : "inherit" ,
31
31
stdin : "null" ,
Original file line number Diff line number Diff line change 5
5
"tasks" : {
6
6
"build" : {
7
7
"description" : " Builds every static files needed for GitHub pages" ,
8
- "command" : " deno run -E -R -W -N=jsr.io --allow-run --no-prompt --frozen --cached-only ./build.ts"
8
+ "command" : " deno run -E -R -W -N=jsr.io --allow-run --no-prompt --frozen --cached-only ./build/build .ts"
9
9
},
10
10
"start" : {
11
11
"description" : " Starts a development server. The provided page will auto-reload whenever there are changes to the code." ,
12
- "command" : " deno run -E -R -W -N=jsr.io --allow-run --no-prompt --frozen --cached-only ./dev.ts"
12
+ "command" : " deno run -E -R -W -N=jsr.io --allow-run --no-prompt --frozen --cached-only ./build/ dev.ts"
13
13
},
14
14
"repl" : {
15
15
"description" : " Starts a REPL" ,
You can’t perform that action at this time.
0 commit comments