Skip to content

Commit bf39b0a

Browse files
committed
fix: fix cd method
1 parent dd95c08 commit bf39b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/cd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function cd(dir: string) {
55
console.log($.brightBlue("$ %s"), `cd ${dir}`);
66
}
77
try {
8-
Deno.chdir(new URL(dir, $.mainModule).pathname);
8+
Deno.chdir(dir);
99
} catch (err) {
1010
if (err instanceof Deno.errors.NotFound) {
1111
const stack: string = (new Error().stack!.split("at ")[2]).trim();

0 commit comments

Comments
 (0)