We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6636b67 commit 27b0d9dCopy full SHA for 27b0d9d
src/runtime/cd.ts
@@ -11,7 +11,7 @@ export function cd(dir: string) {
11
if (dir[0] === "~") {
12
dir = path.join(homedir() as string, dir.slice(1));
13
} else if (dir[0] !== path.sep) {
14
- dir = new URL(dir, path.toFileUrl(cwd + path.sep)).pathname;
+ dir = path.join(cwd, dir);
15
}
16
Deno.chdir(dir);
17
} catch (err) {
0 commit comments