bunup 0.8.33 → 0.8.35

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.
@@ -180,6 +180,7 @@ async function build(partialOptions, rootDir = process.cwd()) {
180
180
  externalOptionPlugin(options, packageJson.data),
181
181
  ...filterBunupBunPlugins(options.plugins).map((p) => p.plugin)
182
182
  ];
183
+ let hasBuiltAnyFormat = false;
183
184
  if (options.dts) {
184
185
  const { resolve, entry, splitting } = typeof options.dts === "object" ? options.dts : {};
185
186
  let entrypoints2;
@@ -195,20 +196,21 @@ async function build(partialOptions, rootDir = process.cwd()) {
195
196
  entry: entrypoints2,
196
197
  cwd: rootDir,
197
198
  splitting,
198
- onDeclarationsGenerated({ results, buildConfig }) {
199
- for (const result of results) {
200
- logger.progress("DTS", `${options.outDir}/${result.outputPath}`, {
199
+ silent: () => !hasBuiltAnyFormat,
200
+ onDeclarationsGenerated({ result, buildConfig }) {
201
+ for (const file of result.files) {
202
+ logger.progress("DTS", `${options.outDir}/${file.outputPath}`, {
201
203
  identifier: options.name
202
204
  });
203
- const fullPath = path.join(rootDir, options.outDir, result.outputPath);
205
+ const fullPath = path.join(rootDir, options.outDir, file.outputPath);
204
206
  if (buildConfig.format) {
205
207
  buildOutput.files.push({
206
208
  fullPath,
207
209
  relativePathToRootDir: getRelativePathToRootDir(fullPath, rootDir),
208
- relativePathToOutputDir: result.outputPath,
210
+ relativePathToOutputDir: file.outputPath,
209
211
  dts: true,
210
212
  format: buildConfig.format,
211
- kind: result.kind
213
+ kind: file.kind
212
214
  });
213
215
  }
214
216
  }
@@ -240,6 +242,7 @@ async function build(partialOptions, rootDir = process.cwd()) {
240
242
  plugins,
241
243
  throw: false
242
244
  });
245
+ hasBuiltAnyFormat = true;
243
246
  for (const log of result.logs) {
244
247
  if (log.level === "error") {
245
248
  throw new BunupBuildError(log.message);
package/dist/cli/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  build,
5
5
  createBuildOptions
6
- } from "../chunk-0m5t1rjt.js";
6
+ } from "../chunk-by2b1r3m.js";
7
7
  import"../chunk-0r7kktgh.js";
8
8
  import {
9
9
  processLoadedConfigs
@@ -26,7 +26,7 @@ import {
26
26
  // src/cli/index.ts
27
27
  import { exec } from "tinyexec";
28
28
  // package.json
29
- var version = "0.8.33";
29
+ var version = "0.8.34";
30
30
 
31
31
  // src/cli/options.ts
32
32
  import pc from "picocolors";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  build
4
- } from "./chunk-0m5t1rjt.js";
4
+ } from "./chunk-by2b1r3m.js";
5
5
  import"./chunk-0r7kktgh.js";
6
6
  import"./chunk-gh7z7s46.js";
7
7
  import"./chunk-8z361mhm.js";
package/package.json CHANGED
@@ -1,103 +1,93 @@
1
1
  {
2
- "name": "bunup",
3
- "description": "⚡ A blazing-fast build tool for your libraries built with Bun.",
4
- "version": "0.8.33",
5
- "type": "module",
6
- "files": [
7
- "dist",
8
- "bin"
9
- ],
10
- "types": "./dist/index.d.ts",
11
- "module": "./dist/index.js",
12
- "exports": {
13
- ".": {
14
- "types": "./dist/index.d.ts",
15
- "import": "./dist/index.js"
16
- },
17
- "./plugins": {
18
- "types": "./dist/plugins.d.ts",
19
- "import": "./dist/plugins.js"
20
- },
21
- "./cli": {
22
- "import": "./dist/cli/index.js"
23
- }
24
- },
25
- "license": "MIT",
26
- "author": "Arshad Yaseen <m@arshadyaseen.com> (https://arshadyaseen.com)",
27
- "maintainers": [
28
- {
29
- "name": "Arshad Yaseen",
30
- "email": "m@arshadyaseen.com",
31
- "url": "https://arshadyaseen.com"
32
- }
33
- ],
34
- "repository": {
35
- "type": "git",
36
- "url": "git+https://github.com/arshad-yaseen/bunup.git"
37
- },
38
- "funding": "https://github.com/sponsors/arshad-yaseen",
39
- "homepage": "https://bunup.dev",
40
- "keywords": [
41
- "bun",
42
- "bunup",
43
- "bun-bundler"
44
- ],
45
- "bin": {
46
- "bunup": "bin/bunup.mjs"
47
- },
48
- "dependencies": {
49
- "@clack/prompts": "^0.10.1",
50
- "bun-dts": "^0.1.54",
51
- "chokidar": "^4.0.3",
52
- "coffi": "^0.1.31",
53
- "giget": "^2.0.0",
54
- "picocolors": "^1.1.1",
55
- "replace-in-file": "^8.3.0",
56
- "tinyexec": "^1.0.1"
57
- },
58
- "devDependencies": {
59
- "@biomejs/biome": "^1.9.4",
60
- "@types/bun": "^1.2.5",
61
- "bumpp": "^10.1.0",
62
- "husky": "^9.1.7",
63
- "lightningcss": "^1.30.1",
64
- "lint-staged": "^15.5.1",
65
- "typescript": "^5.8.3"
66
- },
67
- "peerDependencies": {
68
- "typescript": ">=4.5.0",
69
- "lightningcss": ">=1.17.0"
70
- },
71
- "peerDependenciesMeta": {
72
- "typescript": {
73
- "optional": true
74
- },
75
- "lightningcss": {
76
- "optional": true
77
- }
78
- },
79
- "scripts": {
80
- "build": "bunx bunup@latest",
81
- "build:docs": "bun run --cwd docs build",
82
- "dev": "bunx bunup@latest --watch",
83
- "dev:docs": "bun run --cwd docs dev",
84
- "format": "biome format .",
85
- "format:fix": "biome format --write .",
86
- "lint": "biome check .",
87
- "lint:fix": "biome check --write .",
88
- "prepare": "husky",
89
- "test": "bun test",
90
- "test-build": "bun run --cwd tests build",
91
- "tsc": "tsc --noEmit",
92
- "publish:ci": "bun publish --access public --no-git-checks",
93
- "release": "bumpp"
94
- },
95
- "lint-staged": {
96
- "*": "bun run format:fix && git add .",
97
- "src/**/*.(m|c)?(j|t)s": "bun run tsc"
98
- },
99
- "workspaces": [
100
- "docs",
101
- "tests"
102
- ]
103
- }
2
+ "name": "bunup",
3
+ "description": "⚡ A blazing-fast build tool for your libraries built with Bun.",
4
+ "version": "0.8.35",
5
+ "type": "module",
6
+ "files": ["dist", "bin"],
7
+ "types": "./dist/index.d.ts",
8
+ "module": "./dist/index.js",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./plugins": {
15
+ "types": "./dist/plugins.d.ts",
16
+ "import": "./dist/plugins.js"
17
+ },
18
+ "./cli": {
19
+ "import": "./dist/cli/index.js"
20
+ }
21
+ },
22
+ "license": "MIT",
23
+ "author": "Arshad Yaseen <m@arshadyaseen.com> (https://arshadyaseen.com)",
24
+ "maintainers": [
25
+ {
26
+ "name": "Arshad Yaseen",
27
+ "email": "m@arshadyaseen.com",
28
+ "url": "https://arshadyaseen.com"
29
+ }
30
+ ],
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/arshad-yaseen/bunup.git"
34
+ },
35
+ "funding": "https://github.com/sponsors/arshad-yaseen",
36
+ "homepage": "https://bunup.dev",
37
+ "keywords": ["bun", "bunup", "bun-bundler"],
38
+ "bin": {
39
+ "bunup": "bin/bunup.mjs"
40
+ },
41
+ "dependencies": {
42
+ "@clack/prompts": "^0.10.1",
43
+ "bun-dts": "^0.1.59",
44
+ "chokidar": "^4.0.3",
45
+ "coffi": "^0.1.31",
46
+ "giget": "^2.0.0",
47
+ "picocolors": "^1.1.1",
48
+ "replace-in-file": "^8.3.0",
49
+ "tinyexec": "^1.0.1"
50
+ },
51
+ "devDependencies": {
52
+ "@biomejs/biome": "^1.9.4",
53
+ "@types/bun": "^1.2.5",
54
+ "bumpp": "^10.1.0",
55
+ "husky": "^9.1.7",
56
+ "lightningcss": "^1.30.1",
57
+ "lint-staged": "^15.5.1",
58
+ "typescript": "^5.8.3"
59
+ },
60
+ "peerDependencies": {
61
+ "typescript": ">=4.5.0",
62
+ "lightningcss": ">=1.17.0"
63
+ },
64
+ "peerDependenciesMeta": {
65
+ "typescript": {
66
+ "optional": true
67
+ },
68
+ "lightningcss": {
69
+ "optional": true
70
+ }
71
+ },
72
+ "scripts": {
73
+ "build": "bunx bunup@latest",
74
+ "build:docs": "bun run --cwd docs build",
75
+ "dev": "bunx bunup@latest --watch",
76
+ "dev:docs": "bun run --cwd docs dev",
77
+ "format": "biome format .",
78
+ "format:fix": "biome format --write .",
79
+ "lint": "biome check .",
80
+ "lint:fix": "biome check --write .",
81
+ "prepare": "husky",
82
+ "test": "bun test",
83
+ "test-build": "bun run --cwd tests build",
84
+ "tsc": "tsc --noEmit",
85
+ "publish:ci": "bun publish --access public --no-git-checks",
86
+ "release": "bumpp"
87
+ },
88
+ "lint-staged": {
89
+ "*": "bun run format:fix && git add .",
90
+ "src/**/*.(m|c)?(j|t)s": "bun run tsc"
91
+ },
92
+ "workspaces": ["docs", "tests"]
93
+ }