bunup 0.8.67 → 0.8.69
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 +6 -6
- package/dist/index.js +3 -3
- package/dist/plugins.js +11 -9
- package/dist/shared/{chunk-22a2den8.js → chunk-29mdzdnt.js} +1 -1
- package/dist/shared/{chunk-e55jtfn8.js → chunk-388r1g46.js} +6 -2
- package/dist/shared/{chunk-vdgwvbgq.js → chunk-cdrh2sea.js} +2 -2
- package/dist/shared/{chunk-hraxj72e.js → chunk-gc7rjej4.js} +2 -2
- package/dist/shared/{chunk-zj5506zn.js → chunk-ge1jevhp.js} +1 -1
- package/dist/shared/{chunk-fw4fyhnc.js → chunk-hb0esw52.js} +7 -11
- package/package.json +104 -104
package/dist/cli/index.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import {
|
|
4
4
|
build,
|
|
5
5
|
createBuildOptions
|
|
6
|
-
} from "../shared/chunk-
|
|
7
|
-
import"../shared/chunk-
|
|
6
|
+
} from "../shared/chunk-388r1g46.js";
|
|
7
|
+
import"../shared/chunk-ge1jevhp.js";
|
|
8
8
|
import {
|
|
9
9
|
processLoadedConfigs
|
|
10
10
|
} from "../shared/chunk-295440tx.js";
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
logger,
|
|
22
22
|
parseErrorMessage,
|
|
23
23
|
setSilent
|
|
24
|
-
} from "../shared/chunk-
|
|
24
|
+
} from "../shared/chunk-hb0esw52.js";
|
|
25
25
|
|
|
26
26
|
// src/cli/index.ts
|
|
27
27
|
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.
|
|
31
|
+
var version = "0.8.69";
|
|
32
32
|
|
|
33
33
|
// src/watch.ts
|
|
34
34
|
import path from "path";
|
|
@@ -482,12 +482,12 @@ var parseCliOptions = (argv) => {
|
|
|
482
482
|
async function main(args = Bun.argv.slice(2)) {
|
|
483
483
|
const cliOptions = parseCliOptions(args);
|
|
484
484
|
if (cliOptions.new) {
|
|
485
|
-
const { newProject } = await import("../shared/chunk-
|
|
485
|
+
const { newProject } = await import("../shared/chunk-cdrh2sea.js");
|
|
486
486
|
await newProject();
|
|
487
487
|
return;
|
|
488
488
|
}
|
|
489
489
|
if (cliOptions.init) {
|
|
490
|
-
const { init } = await import("../shared/chunk-
|
|
490
|
+
const { init } = await import("../shared/chunk-gc7rjej4.js");
|
|
491
491
|
await init();
|
|
492
492
|
return;
|
|
493
493
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
build
|
|
4
|
-
} from "./shared/chunk-
|
|
5
|
-
import"./shared/chunk-
|
|
4
|
+
} from "./shared/chunk-388r1g46.js";
|
|
5
|
+
import"./shared/chunk-ge1jevhp.js";
|
|
6
6
|
import"./shared/chunk-295440tx.js";
|
|
7
|
-
import"./shared/chunk-
|
|
7
|
+
import"./shared/chunk-hb0esw52.js";
|
|
8
8
|
// src/define.ts
|
|
9
9
|
function defineConfig(options) {
|
|
10
10
|
return options;
|
package/dist/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
getPackageForPlugin
|
|
4
|
-
} from "./shared/chunk-
|
|
4
|
+
} from "./shared/chunk-ge1jevhp.js";
|
|
5
5
|
import {
|
|
6
6
|
CSS_RE,
|
|
7
7
|
JS_DTS_RE,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
formatListWithAnd,
|
|
11
11
|
isDirectoryPath,
|
|
12
12
|
logger
|
|
13
|
-
} from "./shared/chunk-
|
|
13
|
+
} from "./shared/chunk-hb0esw52.js";
|
|
14
14
|
|
|
15
15
|
// src/plugins/built-in/copy.ts
|
|
16
16
|
import { basename, join } from "path";
|
|
@@ -209,11 +209,13 @@ function mergeCustomExportsWithGenerated(baseExports, customExportsProvider, ctx
|
|
|
209
209
|
function createUpdatedPackageJson(originalData, entryPoints, exports2, files) {
|
|
210
210
|
const { main, module, types, ...restPackageJson } = originalData;
|
|
211
211
|
const newPackageJson = {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
212
|
+
...Object.fromEntries(Object.entries({
|
|
213
|
+
name: originalData.name,
|
|
214
|
+
description: originalData.description,
|
|
215
|
+
version: originalData.version,
|
|
216
|
+
type: originalData.type,
|
|
217
|
+
private: originalData.private
|
|
218
|
+
}).filter(([_, value]) => value !== undefined)),
|
|
217
219
|
files,
|
|
218
220
|
...entryPoints,
|
|
219
221
|
exports: exports2
|
|
@@ -423,10 +425,10 @@ Your project has ${count} unused ${depText}: ${coloredDeps}.`,
|
|
|
423
425
|
`You can remove ${count === 1 ? "it" : "them"} with ${removeCommand}`
|
|
424
426
|
].join(" ");
|
|
425
427
|
if (level === "error") {
|
|
426
|
-
|
|
428
|
+
logger.log(pc.red(message));
|
|
427
429
|
process.exit(1);
|
|
428
430
|
} else {
|
|
429
|
-
|
|
431
|
+
logger.log(message);
|
|
430
432
|
}
|
|
431
433
|
}
|
|
432
434
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
filterBunupPlugins,
|
|
4
4
|
runPluginBuildDoneHooks,
|
|
5
5
|
runPluginBuildStartHooks
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ge1jevhp.js";
|
|
7
7
|
import {
|
|
8
8
|
loadPackageJson
|
|
9
9
|
} from "./chunk-295440tx.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
parseErrorMessage,
|
|
26
26
|
setSilent,
|
|
27
27
|
silent
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-hb0esw52.js";
|
|
29
29
|
|
|
30
30
|
// src/build.ts
|
|
31
31
|
import path from "path";
|
|
@@ -81,6 +81,10 @@ function report() {
|
|
|
81
81
|
Gzip: formattedTotalGzipSize
|
|
82
82
|
};
|
|
83
83
|
logger.space();
|
|
84
|
+
if (options.name) {
|
|
85
|
+
logger.log(pc.bgMagentaBright(options.name));
|
|
86
|
+
logger.space();
|
|
87
|
+
}
|
|
84
88
|
logTable(columns, data, footer);
|
|
85
89
|
logger.space();
|
|
86
90
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
displayBunupGradientArt
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-29mdzdnt.js";
|
|
5
5
|
import {
|
|
6
6
|
link,
|
|
7
7
|
pathExistsSync
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-hb0esw52.js";
|
|
9
9
|
|
|
10
10
|
// src/cli/new.ts
|
|
11
11
|
import { renameSync } from "fs";
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-295440tx.js";
|
|
5
5
|
import {
|
|
6
6
|
displayBunupGradientArt
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-29mdzdnt.js";
|
|
8
8
|
import {
|
|
9
9
|
formatListWithAnd,
|
|
10
10
|
link
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-hb0esw52.js";
|
|
12
12
|
|
|
13
13
|
// src/cli/init.ts
|
|
14
14
|
import fs from "fs";
|
|
@@ -53,13 +53,12 @@ class Logger {
|
|
|
53
53
|
const iconMap = {
|
|
54
54
|
info: pc.blue("i"),
|
|
55
55
|
warn: pc.yellow("!"),
|
|
56
|
-
error: pc.red("\u2715")
|
|
57
|
-
recommended: pc.magenta("\u25D0")
|
|
56
|
+
error: pc.red("\u2715")
|
|
58
57
|
};
|
|
59
58
|
return iconMap[type];
|
|
60
59
|
}
|
|
61
60
|
formatIdentifier(identifier) {
|
|
62
|
-
return identifier ? ` ${pc.
|
|
61
|
+
return identifier ? ` ${pc.bgBlueBright(` ${identifier} `)}` : "";
|
|
63
62
|
}
|
|
64
63
|
formatMessage(options) {
|
|
65
64
|
const {
|
|
@@ -118,19 +117,16 @@ class Logger {
|
|
|
118
117
|
});
|
|
119
118
|
this.output(formattedMessage, options);
|
|
120
119
|
}
|
|
121
|
-
recommended(message, options = {}) {
|
|
122
|
-
const formattedMessage = this.formatMessage({
|
|
123
|
-
...options,
|
|
124
|
-
message,
|
|
125
|
-
type: "recommended"
|
|
126
|
-
});
|
|
127
|
-
this.output(formattedMessage, options);
|
|
128
|
-
}
|
|
129
120
|
space() {
|
|
130
121
|
if (!silent) {
|
|
131
122
|
console.log("");
|
|
132
123
|
}
|
|
133
124
|
}
|
|
125
|
+
log(...args) {
|
|
126
|
+
if (!silent) {
|
|
127
|
+
console.log(...args);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
134
130
|
}
|
|
135
131
|
function logTable(columns, data, footer) {
|
|
136
132
|
if (silent)
|
package/package.json
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
2
|
+
"name": "bunup",
|
|
3
|
+
"description": "⚡ A blazing-fast build tool for your libraries built with Bun.",
|
|
4
|
+
"version": "0.8.69",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"./plugins": {
|
|
19
|
+
"import": {
|
|
20
|
+
"types": "./dist/plugins.d.ts",
|
|
21
|
+
"default": "./dist/plugins.js"
|
|
22
|
+
}
|
|
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": "dist/cli/index.js"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@clack/prompts": "^0.10.1",
|
|
50
|
+
"chokidar": "^4.0.3",
|
|
51
|
+
"coffi": "^0.1.31",
|
|
52
|
+
"fast-deep-equal": "^3.1.3",
|
|
53
|
+
"giget": "^2.0.0",
|
|
54
|
+
"picocolors": "^1.1.1",
|
|
55
|
+
"replace-in-file": "^8.3.0",
|
|
56
|
+
"tinyexec": "^1.0.1",
|
|
57
|
+
"typeroll": "^0.6.20"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@babel/types": "^7.28.1",
|
|
61
|
+
"@biomejs/biome": "2.0.0",
|
|
62
|
+
"@types/bun": "^1.2.19",
|
|
63
|
+
"bumpp": "^10.2.0",
|
|
64
|
+
"husky": "^9.1.7",
|
|
65
|
+
"lightningcss": "^1.30.1",
|
|
66
|
+
"lint-staged": "^15.5.2",
|
|
67
|
+
"typescript": "^5.8.3"
|
|
68
|
+
},
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"typescript": ">=4.5.0",
|
|
71
|
+
"lightningcss": ">=1.17.0"
|
|
72
|
+
},
|
|
73
|
+
"peerDependenciesMeta": {
|
|
74
|
+
"typescript": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
77
|
+
"lightningcss": {
|
|
78
|
+
"optional": true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"scripts": {
|
|
82
|
+
"build": "bunx bunup@latest",
|
|
83
|
+
"build:docs": "bun run --cwd docs build",
|
|
84
|
+
"dev": "bunx bunup@latest --watch",
|
|
85
|
+
"dev:docs": "bun run --cwd docs dev",
|
|
86
|
+
"format": "biome format .",
|
|
87
|
+
"format:fix": "biome format --write .",
|
|
88
|
+
"lint": "biome check .",
|
|
89
|
+
"lint:fix": "biome check --write .",
|
|
90
|
+
"prepare": "husky",
|
|
91
|
+
"test": "bun test",
|
|
92
|
+
"test-build": "bun run --cwd tests build",
|
|
93
|
+
"tsc": "tsc --noEmit",
|
|
94
|
+
"publish:ci": "bun publish --access public --no-git-checks",
|
|
95
|
+
"release": "bumpp"
|
|
96
|
+
},
|
|
97
|
+
"lint-staged": {
|
|
98
|
+
"*": "bun run format:fix && git add .",
|
|
99
|
+
"src/**/*.(m|c)?(j|t)s": "bun run tsc"
|
|
100
|
+
},
|
|
101
|
+
"workspaces": [
|
|
102
|
+
"docs",
|
|
103
|
+
"tests"
|
|
104
|
+
]
|
|
105
|
+
}
|