From 0a5d2a8195fbbaab7ff1f40ad54ba94726bcc104 Mon Sep 17 00:00:00 2001 From: dave caruso Date: Wed, 30 Aug 2023 18:30:06 -0700 Subject: feat(node:fs): add `cp`/`cpSync`/`promises.cp` + async `copyFile` (#4340) * half working disaster code * this * async copyFile * . * its failing symlink tests * asdfg * asdf * hmm * okay i think ti works * small edits * fix test on linux * i hate atomics / atomics hate me back <3 * add a message in the builtins bundler that 0.8 is needed. it breaks on older versions lol. * fixed * rebase --- src/js/_codegen/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/js/_codegen/index.ts') diff --git a/src/js/_codegen/index.ts b/src/js/_codegen/index.ts index 4e048b144..15fa7defd 100644 --- a/src/js/_codegen/index.ts +++ b/src/js/_codegen/index.ts @@ -1,2 +1,12 @@ +const [major, minor] = Bun.version + .split("_")[0] + .split(".") + .map(x => parseInt(x)); + +if (minor < 8) { + console.error("Please install bun >= 0.8.0"); + process.exit(1); +} + import "./build-modules"; import "./build-functions"; -- cgit v1.2.3