bunup 0.15.8 → 0.15.9

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.
package/dist/cli/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  build,
5
5
  processLoadedConfigs,
6
6
  resolveBuildOptions
7
- } from "../shared/bunup-p9ygyewc.js";
7
+ } from "../shared/bunup-jcxzbsay.js";
8
8
  import {
9
9
  BunupBuildError,
10
10
  BunupCLIError,
@@ -27,7 +27,7 @@ import {
27
27
  import { loadConfig } from "coffi";
28
28
  import pc4 from "picocolors";
29
29
  // packages/bunup/package.json
30
- var version = "0.15.8";
30
+ var version = "0.15.9";
31
31
 
32
32
  // packages/bunup/src/printer/print-build-report.ts
33
33
  import { promisify } from "util";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  build
4
- } from "./shared/bunup-p9ygyewc.js";
4
+ } from "./shared/bunup-jcxzbsay.js";
5
5
  import"./shared/bunup-s36t5vc4.js";
6
6
  // packages/bunup/src/define.ts
7
7
  function defineConfig(options) {
@@ -286,7 +286,7 @@ function getResolvedCompile(entry, compile, format) {
286
286
  const compileObj = typeof compile === "object" ? compile : {};
287
287
  const target = typeof compile === "string" ? compile : compileObj.target;
288
288
  if (entry.length > 1) {
289
- throw new BunupBuildError("Can only compile one entrypoint at a time. If you want to compile multiple entries, use build config array. Check https://bunup.dev/docs/advanced/compile#multiple-entries for more information.");
289
+ throw new BunupBuildError("Can only compile one entrypoint at a time. If you want to compile multiple entries, use build config array. Check https://bunup.dev/docs/advanced/compile#multiple-entrypoints for more information.");
290
290
  } else {
291
291
  resolvedEntry = entry[0];
292
292
  }
@@ -297,7 +297,7 @@ function getResolvedCompile(entry, compile, format) {
297
297
  if (format !== "esm") {
298
298
  name.push(`-${format}`);
299
299
  }
300
- if (target) {
300
+ if (target && !compileObj.outfile) {
301
301
  name.push(`-${target.replace("bun-", "")}`);
302
302
  }
303
303
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bunup",
3
3
  "description": "⚡ A blazing-fast build tool for your libraries built with Bun.",
4
- "version": "0.15.8",
4
+ "version": "0.15.9",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"