@@ -25,14 +25,15 @@ export const projectTemplate = () => ({
2525 } ,
2626} ) ;
2727
28- export const denoJson = ( root : string | URL ) => ( {
28+ export const denoJson = ( root : string = "./.dreamlab-engine" ) => ( {
2929 imports : {
30- "@dreamlab/engine" : path . join ( root , "engine/mod.ts" ) ,
31- "@dreamlab/engine/internal" : path . join ( root , "engine/internal.ts" ) ,
32- "@dreamlab/vendor/" : path . join ( root , "engine/_deps/" ) ,
33- "@dreamlab/ui" : path . join ( root , "ui/mod.ts" ) ,
34- "@dreamlab/ui/jsx-runtime" : path . join ( root , "ui/jsx.ts" ) ,
35- "@dreamlab/util/" : path . join ( root , "util/" ) ,
30+ // deno demands leading ./ or it errors
31+ "@dreamlab/engine" : "./" + path . join ( root , "engine/mod.ts" ) ,
32+ "@dreamlab/engine/internal" : "./" + path . join ( root , "engine/internal.ts" ) ,
33+ "@dreamlab/vendor/" : "./" + path . join ( root , "engine/_deps/" ) ,
34+ "@dreamlab/ui" : "./" + path . join ( root , "ui/mod.ts" ) ,
35+ "@dreamlab/ui/jsx-runtime" : "./" + path . join ( root , "ui/jsx.ts" ) ,
36+ "@dreamlab/util/" : "./" + path . join ( root , "util/" ) ,
3637 } ,
3738 compilerOptions : {
3839 lib : [ "deno.window" , "dom" ] ,
0 commit comments