Skip to content

Commit 5983376

Browse files
committed
ensureDirSync
1 parent b295462 commit 5983376

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

deno.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"compile-win": "deno compile --target x86_64-pc-windows-msvc --v8-flags=--max-old-space-size=8000 --include worker.ts --output repro-win.exe main.ts",
44
"compile-mac": "deno compile --target x86_64-apple-darwin --v8-flags=--max-old-space-size=8000 --include worker.ts --output no-issue-mac main.ts",
55
"compile-linux": "deno compile --target x86_64-unknown-linux-gnu --v8-flags=--max-old-space-size=8000 --include worker.ts --output no-issue-linux main.ts"
6+
},
7+
"imports": {
8+
"@std/fs": "jsr:@std/fs@^1.0.9"
69
}
710
}

deno.lock

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import { ensureDirSync } from "@std/fs";
12
if (import.meta.main) {
23
const w = new Worker(import.meta.resolve("./worker.ts"), {
34
type: "module",
45
});
56

67
try {
8+
ensureDirSync("foo/bar/baz/omg");
79
throw new Error(
810
"this will not be logged if compiled\nfor windows on deno v2.1.5",
911
);

0 commit comments

Comments
 (0)