bunup 0.10.0 → 0.11.0
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/README.md +4 -4
- package/dist/cli/index.js +3 -3
- package/dist/index.js +2 -2
- package/dist/plugins.d.ts +5 -1
- package/dist/plugins.js +3 -3
- package/dist/shared/{chunk-jkkyf16j.js → chunk-55gvdg0x.js} +1 -1
- package/dist/shared/{chunk-66717fpt.js → chunk-hyatyqn5.js} +1 -1
- package/package.json +9 -11
package/README.md
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
<!-- markdownlint-disable-next-line no-alt-text -->
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-

|
|
11
11
|
|
|
12
|
-

|
|
13
13
|
|
|
14
14
|
[](https://npmjs.com/package/bunup) [](https://bun.sh) [](https://github.com/sponsors/arshad-yaseen)
|
|
15
15
|
|
|
16
|
-
Bunup is the **blazing-fast build tool** for TypeScript libraries, designed for flawless developer experience and speed, **powered by Bun**.
|
|
16
|
+
Bunup is the **blazing-fast build tool** for TypeScript libraries, designed for flawless developer experience and speed, **powered by Bun**.
|
|
17
17
|
|
|
18
18
|
</div>
|
|
19
19
|
<!-- markdownlint-restore -->
|
|
@@ -34,7 +34,7 @@ To get started, visit the [documentation](https://bunup.dev).
|
|
|
34
34
|
|
|
35
35
|
## ❤️ Contributing
|
|
36
36
|
|
|
37
|
-
For guidelines on contributing, please read the [contributing guide](
|
|
37
|
+
For guidelines on contributing, please read the [contributing guide](CONTRIBUTING.md).
|
|
38
38
|
|
|
39
39
|
We welcome contributions from the community to enhance Bunup's capabilities and make it even more powerful.
|
|
40
40
|
|
package/dist/cli/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
build,
|
|
5
5
|
createBuildOptions,
|
|
6
6
|
processLoadedConfigs
|
|
7
|
-
} from "../shared/chunk-
|
|
7
|
+
} from "../shared/chunk-55gvdg0x.js";
|
|
8
8
|
import {
|
|
9
9
|
BunupCLIError,
|
|
10
10
|
BunupWatchError,
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
logger,
|
|
19
19
|
parseErrorMessage,
|
|
20
20
|
setSilent
|
|
21
|
-
} from "../shared/chunk-
|
|
21
|
+
} from "../shared/chunk-hyatyqn5.js";
|
|
22
22
|
|
|
23
23
|
// src/cli/index.ts
|
|
24
24
|
import { loadConfig } from "coffi";
|
|
25
25
|
import pc3 from "picocolors";
|
|
26
26
|
// package.json
|
|
27
|
-
var version = "0.
|
|
27
|
+
var version = "0.11.0";
|
|
28
28
|
|
|
29
29
|
// src/watch.ts
|
|
30
30
|
import path from "path";
|
package/dist/index.js
CHANGED
package/dist/plugins.d.ts
CHANGED
|
@@ -29,8 +29,12 @@ interface ExportsPluginOptions {
|
|
|
29
29
|
* @see https://bunup.dev/docs/plugins/exports
|
|
30
30
|
*/
|
|
31
31
|
declare function exports(options?: ExportsPluginOptions): BunupPlugin;
|
|
32
|
-
type InjectStylesPluginOptions = Pick<import("lightningcss").TransformOptions<import("lightningcss").CustomAtRules>, "sourceMap" | "inputSourceMap" | "targets" | "nonStandard" | "
|
|
32
|
+
type InjectStylesPluginOptions = Pick<import("lightningcss").TransformOptions<import("lightningcss").CustomAtRules>, "sourceMap" | "inputSourceMap" | "targets" | "nonStandard" | "pseudoClasses" | "unusedSymbols" | "errorRecovery" | "visitor" | "customAtRules" | "include" | "exclude" | "drafts"> & {
|
|
33
33
|
inject?: (css: string, filePath: string) => MaybePromise<string>
|
|
34
|
+
/** Whether to minify the CSS.
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
minify?: boolean
|
|
34
38
|
};
|
|
35
39
|
/**
|
|
36
40
|
* A plugin that injects styles into the document head.
|
package/dist/plugins.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
getPackageForPlugin,
|
|
10
10
|
isDirectoryPath,
|
|
11
11
|
logger
|
|
12
|
-
} from "./shared/chunk-
|
|
12
|
+
} from "./shared/chunk-hyatyqn5.js";
|
|
13
13
|
|
|
14
14
|
// src/plugins/built-in/copy.ts
|
|
15
15
|
import { basename, join } from "path";
|
|
@@ -283,7 +283,7 @@ function injectStyles(options) {
|
|
|
283
283
|
contents: `
|
|
284
284
|
export default function injectStyle(css) {
|
|
285
285
|
if (!css || typeof document === 'undefined') return
|
|
286
|
-
|
|
286
|
+
|
|
287
287
|
const head = document.head || document.getElementsByTagName('head')[0]
|
|
288
288
|
const style = document.createElement('style')
|
|
289
289
|
head.appendChild(style)
|
|
@@ -304,7 +304,7 @@ function injectStyles(options) {
|
|
|
304
304
|
...transformOptions,
|
|
305
305
|
filename: path2.basename(args.path),
|
|
306
306
|
code: Buffer.from(source),
|
|
307
|
-
minify: transformOptions.minify ??
|
|
307
|
+
minify: transformOptions.minify ?? true
|
|
308
308
|
});
|
|
309
309
|
for (const warning of warnings) {
|
|
310
310
|
logger.warn(warning.message);
|
|
@@ -269,7 +269,7 @@ ${pc2.red(errorType)} ${contextPrefix}${errorMessage}`);
|
|
|
269
269
|
console.log(`
|
|
270
270
|
`);
|
|
271
271
|
} else {
|
|
272
|
-
const issueUrl = new URL("https://github.com/
|
|
272
|
+
const issueUrl = new URL("https://github.com/bunup/bunup/issues/new");
|
|
273
273
|
issueUrl.searchParams.set("title", `[${errorType}] Error encountered`);
|
|
274
274
|
issueUrl.searchParams.set("body", `## Error Details
|
|
275
275
|
|
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.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
|
36
|
-
"url": "git+https://github.com/
|
|
36
|
+
"url": "git+https://github.com/bunup/bunup.git"
|
|
37
37
|
},
|
|
38
38
|
"funding": "https://github.com/sponsors/arshad-yaseen",
|
|
39
39
|
"homepage": "https://bunup.dev",
|
|
@@ -57,9 +57,8 @@
|
|
|
57
57
|
"@biomejs/biome": "2.0.0",
|
|
58
58
|
"@types/bun": "^1.2.20",
|
|
59
59
|
"bumpp": "^10.2.2",
|
|
60
|
-
"husky": "^9.1.7",
|
|
61
60
|
"lightningcss": "^1.30.1",
|
|
62
|
-
"
|
|
61
|
+
"simple-git-hooks": "^2.13.1",
|
|
63
62
|
"typescript": "^5.9.2"
|
|
64
63
|
},
|
|
65
64
|
"peerDependencies": {
|
|
@@ -83,19 +82,18 @@
|
|
|
83
82
|
"format:fix": "biome format --write .",
|
|
84
83
|
"lint": "biome check .",
|
|
85
84
|
"lint:fix": "biome check --write .",
|
|
86
|
-
"prepare": "husky",
|
|
87
85
|
"test": "bun test",
|
|
88
|
-
"test-build": "bun run --cwd tests build",
|
|
89
86
|
"tsc": "tsc --noEmit",
|
|
90
87
|
"publish:ci": "bun publish --access public --no-git-checks",
|
|
91
|
-
"release": "bumpp"
|
|
88
|
+
"release": "bumpp -r --commit --push --tag",
|
|
89
|
+
"prepare": "simple-git-hooks"
|
|
92
90
|
},
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"src/**/*.(m|c)?(j|t)s": "bun run tsc"
|
|
91
|
+
"simple-git-hooks": {
|
|
92
|
+
"pre-commit": "bun run lint:fix && git add ."
|
|
96
93
|
},
|
|
97
94
|
"workspaces": [
|
|
98
95
|
"docs",
|
|
99
|
-
"tests"
|
|
96
|
+
"tests",
|
|
97
|
+
"examples/**"
|
|
100
98
|
]
|
|
101
99
|
}
|