bunup 0.8.63 → 0.8.65

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
@@ -28,7 +28,7 @@ import { loadConfig } from "coffi";
28
28
  import pc3 from "picocolors";
29
29
  import { exec } from "tinyexec";
30
30
  // package.json
31
- var version = "0.8.63";
31
+ var version = "0.8.65";
32
32
 
33
33
  // src/watch.ts
34
34
  import path from "path";
package/dist/index.d.ts CHANGED
@@ -352,5 +352,5 @@ interface BuildOptions {
352
352
  }
353
353
  declare function build(partialOptions: Partial<BuildOptions>, rootDir?: string): Promise<void>;
354
354
  declare function defineConfig(options: Arrayable<DefineConfigItem>): Arrayable<DefineConfigItem>;
355
- declare function defineWorkspace(options: DefineWorkspaceItem[]): DefineWorkspaceItem[];
355
+ declare function defineWorkspace(options: WithOptional<DefineWorkspaceItem, "config">[], sharedOptions?: DefineConfigItem): DefineWorkspaceItem[];
356
356
  export { defineWorkspace, defineConfig, build, Plugin, DefineWorkspaceItem, DefineConfigItem, BuildOptions };
package/dist/index.js CHANGED
@@ -9,8 +9,14 @@ import"./shared/chunk-fw4fyhnc.js";
9
9
  function defineConfig(options) {
10
10
  return options;
11
11
  }
12
- function defineWorkspace(options) {
13
- return options;
12
+ function defineWorkspace(options, sharedOptions) {
13
+ return options.map((item) => {
14
+ const config = item.config && Array.isArray(item.config) ? item.config.map((config2) => ({
15
+ ...sharedOptions,
16
+ ...config2
17
+ })) : item.config ? { ...sharedOptions, ...item.config } : sharedOptions;
18
+ return { ...item, config };
19
+ });
14
20
  }
15
21
  export {
16
22
  defineWorkspace,
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.8.63",
4
+ "version": "0.8.65",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"