File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,24 +10,23 @@ import color from "npm:picocolors@^1.1.1";
1010const DREAMLAB_ROOT = path . join ( path . fromFileUrl ( import . meta. url ) , "../.." ) ;
1111
1212const cli = new Command ( )
13- . name ( "wql " )
13+ . name ( "dreamlab " )
1414 . command (
1515 "up [path:string]" ,
1616 "Start the Dreamlab Engine in a project directory. Defaults to cwd" ,
1717 )
1818 . action ( async ( _opts : any , dir = Deno . cwd ( ) ) => {
19- intro ( color . bgCyan ( " wql up " ) ) ;
19+ intro ( color . bgCyan ( " dreamlab up " ) ) ;
2020
2121 const exists = await fs . exists ( path . join ( dir , "project.json" ) ) ;
2222 if ( ! exists ) {
2323 log . error ( "not a valid dreamlab project" ) ;
2424 Deno . exit ( 1 ) ;
2525 }
2626
27- // Create symlink to .worldql-dreamlab-engine if it doesn't exist
28- const homeDir = Deno . env . get ( "HOME" ) ;
29- if ( homeDir ) {
30- const sourcePath = path . join ( homeDir , ".worldql-dreamlab-engine" ) ;
27+ // Create symlink to dreamlab engine root if it doesn't exist
28+ {
29+ const sourcePath = Deno . env . get ( "DREAMLAB_DIR" ) ?? DREAMLAB_ROOT ;
3130 const targetPath = path . join ( dir , ".dreamlab-engine" ) ;
3231
3332 const symlinkExists = await fs . exists ( targetPath ) ;
You can’t perform that action at this time.
0 commit comments