Skip to content

Commit d7024b3

Browse files
committed
fix.
1 parent 4ec4de1 commit d7024b3

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

scripts/dreamlab.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,23 @@ import color from "npm:picocolors@^1.1.1";
1010
const DREAMLAB_ROOT = path.join(path.fromFileUrl(import.meta.url), "../..");
1111

1212
const 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);

0 commit comments

Comments
 (0)