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.
- package/dist/{chunk-0m5t1rjt.js → chunk-by2b1r3m.js} +9 -6
- package/dist/cli/index.js +2 -2
- package/dist/index.js +1 -1
- package/package.json +92 -102
|
@@ -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
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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,
|
|
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:
|
|
210
|
+
relativePathToOutputDir: file.outputPath,
|
|
209
211
|
dts: true,
|
|
210
212
|
format: buildConfig.format,
|
|
211
|
-
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-
|
|
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.
|
|
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
package/package.json
CHANGED
|
@@ -1,103 +1,93 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
+
}
|