bun 1.2.16-canary.20250619.1 → 1.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/install.js +3 -24
  2. package/package.json +13 -13
  3. package/bin/bunx.exe +0 -0
package/install.js CHANGED
@@ -213,17 +213,6 @@ function chmod(path2, mode) {
213
213
  debug("chmod", path2, mode), import_fs.default.chmodSync(path2, mode);
214
214
  }
215
215
  __name(chmod, "chmod");
216
- function copy(path2, newPath) {
217
- debug("copy", path2, newPath);
218
- try {
219
- import_fs.default.copyFileSync(path2, newPath);
220
- return;
221
- } catch (error2) {
222
- debug("fs.copyFileSync failed", error2);
223
- }
224
- write(newPath, read(path2));
225
- }
226
- __name(copy, "copy");
227
216
  function exists(path2) {
228
217
  debug("exists", path2);
229
218
  try {
@@ -234,16 +223,6 @@ function exists(path2) {
234
223
  return !1;
235
224
  }
236
225
  __name(exists, "exists");
237
- function link(path2, newPath) {
238
- debug("link", path2, newPath);
239
- try {
240
- import_fs.default.unlinkSync(newPath), import_fs.default.linkSync(path2, newPath);
241
- return;
242
- } catch (error2) {
243
- copy(path2, newPath), debug("fs.linkSync failed, reverting to copy", error2);
244
- }
245
- }
246
- __name(link, "link");
247
226
 
248
227
  // src/spawn.ts
249
228
  var import_child_process = __toESM(require("child_process"));
@@ -439,7 +418,7 @@ function installBun(platform, dst) {
439
418
  write(join(cwd, "package.json"), "{}");
440
419
  let { exitCode } = spawn(
441
420
  "npm",
442
- ["install", "--loglevel=error", "--prefer-offline", "--no-audit", "--progress=false", `${module2}@1.2.16-canary.20250619.1+346e97d`],
421
+ ["install", "--loglevel=error", "--prefer-offline", "--no-audit", "--progress=false", `${module2}@1.2.16`],
443
422
  {
444
423
  cwd,
445
424
  stdio: "pipe",
@@ -460,7 +439,7 @@ function installBun(platform, dst) {
460
439
  __name(installBun, "installBun");
461
440
  function downloadBun(platform, dst) {
462
441
  return __async(this, null, function* () {
463
- let tgz = yield (yield fetch(`https://registry.npmjs.org/@oven/${platform.bin}/-/${platform.bin}-1.2.16-canary.20250619.1+346e97d.tgz`)).arrayBuffer(), buffer;
442
+ let tgz = yield (yield fetch(`https://registry.npmjs.org/@oven/${platform.bin}/-/${platform.bin}-1.2.16.tgz`)).arrayBuffer(), buffer;
464
443
  try {
465
444
  buffer = (0, import_zlib.unzipSync)(tgz);
466
445
  } catch (cause) {
@@ -489,7 +468,7 @@ __name(downloadBun, "downloadBun");
489
468
  function optimizeBun(path2) {
490
469
  let installScript = os2 === "win32" ? 'powershell -c "irm bun.sh/install.ps1 | iex"' : "curl -fsSL https://bun.sh/install | bash";
491
470
  try {
492
- rename(path2, join(__dirname, "bin", "bun.exe")), link(join(__dirname, "bin", "bun.exe"), join(__dirname, "bin", "bunx.exe"));
471
+ rename(path2, join(__dirname, "bin", "bun.exe"));
493
472
  return;
494
473
  } catch (error2) {
495
474
  debug("optimizeBun failed", error2);
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "bun",
3
3
  "description": "Bun is a fast all-in-one JavaScript runtime.",
4
- "version": "1.2.16-canary.20250619.1+346e97d",
4
+ "version": "1.2.16",
5
5
  "scripts": {
6
6
  "postinstall": "node install.js"
7
7
  },
8
8
  "optionalDependencies": {
9
- "@oven/bun-darwin-aarch64": "1.2.16-canary.20250619.1+346e97d",
10
- "@oven/bun-darwin-x64": "1.2.16-canary.20250619.1+346e97d",
11
- "@oven/bun-darwin-x64-baseline": "1.2.16-canary.20250619.1+346e97d",
12
- "@oven/bun-linux-aarch64": "1.2.16-canary.20250619.1+346e97d",
13
- "@oven/bun-linux-x64": "1.2.16-canary.20250619.1+346e97d",
14
- "@oven/bun-linux-x64-baseline": "1.2.16-canary.20250619.1+346e97d",
15
- "@oven/bun-linux-aarch64-musl": "1.2.16-canary.20250619.1+346e97d",
16
- "@oven/bun-linux-x64-musl": "1.2.16-canary.20250619.1+346e97d",
17
- "@oven/bun-linux-x64-musl-baseline": "1.2.16-canary.20250619.1+346e97d",
18
- "@oven/bun-windows-x64": "1.2.16-canary.20250619.1+346e97d",
19
- "@oven/bun-windows-x64-baseline": "1.2.16-canary.20250619.1+346e97d"
9
+ "@oven/bun-darwin-aarch64": "1.2.16",
10
+ "@oven/bun-darwin-x64": "1.2.16",
11
+ "@oven/bun-darwin-x64-baseline": "1.2.16",
12
+ "@oven/bun-linux-aarch64": "1.2.16",
13
+ "@oven/bun-linux-x64": "1.2.16",
14
+ "@oven/bun-linux-x64-baseline": "1.2.16",
15
+ "@oven/bun-linux-aarch64-musl": "1.2.16",
16
+ "@oven/bun-linux-x64-musl": "1.2.16",
17
+ "@oven/bun-linux-x64-musl-baseline": "1.2.16",
18
+ "@oven/bun-windows-x64": "1.2.16",
19
+ "@oven/bun-windows-x64-baseline": "1.2.16"
20
20
  },
21
21
  "bin": {
22
22
  "bun": "bin/bun.exe",
23
- "bunx": "bin/bunx.exe"
23
+ "bunx": "bin/bun.exe"
24
24
  },
25
25
  "os": [
26
26
  "darwin",
package/bin/bunx.exe DELETED
File without changes