Skip to content

Commit

Permalink
now?
Browse files Browse the repository at this point in the history
  • Loading branch information
paperclover committed Apr 3, 2024
1 parent 3a9b835 commit 25b9d5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bun-release/scripts/upload-npm.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { join, copy, exists, chmod, write, writeJson } from "../src/fs";
import { mkdtemp } from "fs/promises";
import { rmSync } from "fs";
import { rmSync, mkdirSync } from "fs";
import { tmpdir } from "os";
import { dirname } from "path";
import { fetch } from "../src/fetch";
import { spawn } from "../src/spawn";
import type { Platform } from "../src/platform";
Expand Down Expand Up @@ -133,6 +134,7 @@ async function buildModule(
}
const bun = await extractFromZip(asset.browser_download_url, `${bin}/bun`);
const cwd = join("npm", module);
mkdirSync(dirname(join(cwd, exe)), { recursive: true });
write(join(cwd, exe), await bun.async("arraybuffer"));
chmod(join(cwd, exe), 0o755);
writeJson(join(cwd, "package.json"), {
Expand Down

0 comments on commit 25b9d5d

Please sign in to comment.