bunup 0.14.16 → 0.14.18

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-jccqd6kz.js";
7
+ } from "../shared/bunup-t1h1xwhf.js";
8
8
  import {
9
9
  BunupCLIError,
10
10
  BunupWatchError,
@@ -20,13 +20,13 @@ import {
20
20
  logTime,
21
21
  logger,
22
22
  parseErrorMessage
23
- } from "../shared/bunup-025ckbke.js";
23
+ } from "../shared/bunup-3v7q72zg.js";
24
24
 
25
25
  // packages/bunup/src/cli/index.ts
26
26
  import { loadConfig } from "coffi";
27
27
  import pc4 from "picocolors";
28
28
  // packages/bunup/package.json
29
- var version = "0.14.16";
29
+ var version = "0.14.18";
30
30
 
31
31
  // packages/bunup/src/printer/print-build-report.ts
32
32
  import { promisify } from "util";
@@ -207,8 +207,8 @@ async function watch(userOptions, rootDir, configFilePath) {
207
207
  };
208
208
  watcher.on("change", (changedPath) => {
209
209
  if (configFilePath && changedPath === configFilePath) {
210
- console.log(pc2.yellow(` Please restart watch mode to apply configuration changes.
211
- `));
210
+ console.log(pc2.yellow(`
211
+ Please restart watch mode to apply configuration changes.`));
212
212
  cleanup();
213
213
  return;
214
214
  }
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Arrayable, BuildContext, BuildMeta, BuildOptions, BuildOutput, BuildOutputFile, BunupPlugin, DefineConfigItem, DefineWorkspaceItem, WithOptional } from "./shared/bunup-a8zeh83z";
1
+ import { Arrayable, BuildContext, BuildMeta, BuildOptions, BuildOutput, BuildOutputFile, BunupPlugin, DefineConfigItem, DefineWorkspaceItem, WithOptional } from "./shared/bunup-h9mcrzvs";
2
2
  declare function build(userOptions: Partial<BuildOptions>, rootDir?: string): Promise<BuildOutput>;
3
3
  declare function defineConfig(options: Arrayable<DefineConfigItem>): Arrayable<DefineConfigItem>;
4
4
  declare function defineWorkspace(options: WithOptional<DefineWorkspaceItem, "config">[], sharedOptions?: Partial<DefineConfigItem>): DefineWorkspaceItem[];
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  build
4
- } from "./shared/bunup-jccqd6kz.js";
5
- import"./shared/bunup-025ckbke.js";
4
+ } from "./shared/bunup-t1h1xwhf.js";
5
+ import"./shared/bunup-3v7q72zg.js";
6
6
  // packages/bunup/src/define.ts
7
7
  function defineConfig(options) {
8
8
  return options;
package/dist/plugins.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BuildOptions, BunupPlugin, BunupPluginHooks, exports, injectStyles, unused } from "./shared/bunup-a8zeh83z";
1
+ import { BuildOptions, BunupPlugin, BunupPluginHooks, exports, injectStyles, unused } from "./shared/bunup-h9mcrzvs";
2
2
  type CopyOptions = {
3
3
  /** Whether to follow symbolic links when copying files. */
4
4
  followSymlinks?: boolean;
package/dist/plugins.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  logger,
8
8
  shims,
9
9
  unused
10
- } from "./shared/bunup-025ckbke.js";
10
+ } from "./shared/bunup-3v7q72zg.js";
11
11
 
12
12
  // packages/bunup/src/plugins/copy.ts
13
13
  import { basename, extname, join } from "path";
@@ -235,6 +235,7 @@ var handleError = (error, context) => {
235
235
  if (!knownError) {
236
236
  console.error(`
237
237
  ${pc2.bgRed(` ${errorType} `)}
238
+
238
239
  ${contextPrefix}${errorMessage}`.split(`
239
240
  `).map((line) => ` ${line}`).join(`
240
241
  `));
@@ -262,8 +263,7 @@ ${contextPrefix}${errorMessage}`.split(`
262
263
  }
263
264
  };
264
265
  var noEntryPointsFoundError = (defaultEntrypoints) => {
265
- return `${pc2.red(pc2.bold(`
266
- No entry points found`))}
266
+ return `${pc2.red(pc2.bold("No entry points found"))}
267
267
 
268
268
  ` + `Looked for these default entry points:
269
269
 
@@ -274,8 +274,7 @@ You can specify entry points via CLI like ${pc2.green("bunup lib/main.ts")}, ` +
274
274
  var invalidEntryPointsError = (userEntrypoints) => {
275
275
  const entryPointsFormatted = logger.list(userEntrypoints, { dim: true });
276
276
  const isMultiple = userEntrypoints.length > 1;
277
- return `${pc2.red(pc2.bold(`
278
- Entry ${isMultiple ? "points do not exist" : "point does not exist"}`))}
277
+ return `${pc2.red(pc2.bold(`Entry ${isMultiple ? "points do not exist" : "point does not exist"}`))}
279
278
 
280
279
  ${entryPointsFormatted}
281
280
 
@@ -598,6 +598,6 @@ type DefineConfigItem = WithOptional<BuildOptions, "outDir" | "format" | "entry"
598
598
  type DefineWorkspaceItem = {
599
599
  name: string;
600
600
  root: string;
601
- config: DefineConfigItem | DefineConfigItem[];
601
+ config?: DefineConfigItem | DefineConfigItem[];
602
602
  };
603
603
  export { WithOptional, Arrayable, DefineConfigItem, DefineWorkspaceItem, BuildMeta, BuildOutputFile, BuildOutput, BuildContext, BunupPluginHooks, BunupPlugin, exports, injectStyles, unused, BuildOptions };
@@ -22,7 +22,7 @@ import {
22
22
  replaceExtension,
23
23
  shims,
24
24
  unused
25
- } from "./bunup-025ckbke.js";
25
+ } from "./bunup-3v7q72zg.js";
26
26
 
27
27
  // packages/bunup/src/loaders.ts
28
28
  import path from "path";
@@ -30,7 +30,7 @@ import { loadConfig } from "coffi";
30
30
  async function processLoadedConfigs(config, cwd, filter) {
31
31
  return Array.isArray(config) && "root" in config[0] ? config.filter((c) => filter ? filter.includes(c.name) : true).map((c) => ({
32
32
  rootDir: path.resolve(cwd, c.root),
33
- options: setOrSuffixField(c.config, "name", c.name)
33
+ options: setOrSuffixField(c.config ?? {}, "name", c.name)
34
34
  })) : [
35
35
  {
36
36
  rootDir: cwd,
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.14.16",
4
+ "version": "0.14.18",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -47,7 +47,7 @@
47
47
  "bunup": "dist/cli/index.js"
48
48
  },
49
49
  "dependencies": {
50
- "@bunup/dts": "0.14.16",
50
+ "@bunup/dts": "0.14.18",
51
51
  "chokidar": "^4.0.3",
52
52
  "coffi": "^0.1.37",
53
53
  "lightningcss": "^1.30.2",
@@ -55,7 +55,7 @@
55
55
  "tinyexec": "^1.0.1",
56
56
  "tree-kill": "^1.2.2",
57
57
  "zlye": "^0.4.4",
58
- "@bunup/shared": "0.14.16"
58
+ "@bunup/shared": "0.14.18"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "typescript": "latest"