Skip to content

Commit b61744a

Browse files
committed
fix(cli): use import.meta.url io __dirname
1 parent 537c7df commit b61744a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: .changeset/shaggy-ghosts-melt.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"treeground": patch
3+
---
4+
5+
fix(cli): use import.meta.url io \_\_dirname

Diff for: index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ import path from "node:path";
44
process.env.PORT = 7533;
55
process.env.HOST = "localhost";
66

7-
import(path.join(process.cwd(), ".output", "server", "index.mjs"));
7+
import(
8+
path.join(path.dirname(import.meta.url), ".output", "server", "index.mjs")
9+
);

0 commit comments

Comments
 (0)