bunup 0.11.11 → 0.11.12
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
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Arrayable, BuildOptions, DefineConfigItem, DefineWorkspaceItem, Plugin, WithOptional } from "./shared/bunup-
|
|
1
|
+
import { Arrayable, BuildOptions, DefineConfigItem, DefineWorkspaceItem, Plugin, WithOptional } from "./shared/bunup-j0a1h8yf";
|
|
2
2
|
declare function build(partialOptions: Partial<BuildOptions>, rootDir?: string): Promise<void>;
|
|
3
3
|
declare function defineConfig(options: Arrayable<DefineConfigItem>): Arrayable<DefineConfigItem>;
|
|
4
4
|
declare function defineWorkspace(options: WithOptional<DefineWorkspaceItem, "config">[], sharedOptions?: Partial<DefineConfigItem>): DefineWorkspaceItem[];
|
package/dist/plugins.d.ts
CHANGED
|
@@ -233,7 +233,7 @@ interface BuildOptions {
|
|
|
233
233
|
* without modification. However, bundling your server code can reduce startup times and
|
|
234
234
|
* improve running performance.
|
|
235
235
|
*
|
|
236
|
-
* All bundles generated with
|
|
236
|
+
* All bundles generated with `target: "bun"` are marked with a special `// @bun` pragma, which
|
|
237
237
|
* indicates to the Bun runtime that there's no need to re-transpile the file before execution.
|
|
238
238
|
*/
|
|
239
239
|
target?: Target;
|
|
@@ -365,12 +365,12 @@ interface BuildOptions {
|
|
|
365
365
|
* Controls how environment variables are handled during bundling.
|
|
366
366
|
*
|
|
367
367
|
* Can be one of:
|
|
368
|
-
* -
|
|
368
|
+
* - `"inline"`: Replaces all `process.env.FOO` references in your code with the actual values
|
|
369
369
|
* of those environment variables at the time the build runs.
|
|
370
|
-
* -
|
|
371
|
-
* - A string ending in
|
|
372
|
-
* For example,
|
|
373
|
-
* - An object of key-value pairs: Replaces both
|
|
370
|
+
* - `"disable"`: Disables environment variable injection entirely, leaving `process.env.*` as-is.
|
|
371
|
+
* - A string ending in `*`: Only inlines environment variables matching the given prefix.
|
|
372
|
+
* For example, `"MY_PUBLIC_*"` will inline variables like `MY_PUBLIC_API_URL`.
|
|
373
|
+
* - An object of key-value pairs: Replaces both `process.env.KEY` and `import.meta.env.KEY`
|
|
374
374
|
* with the provided values, regardless of the runtime environment.
|
|
375
375
|
*
|
|
376
376
|
* Note: Values are injected at build time. Secrets or private keys should be excluded
|
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.11.
|
|
4
|
+
"version": "0.11.12",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"picocolors": "^1.1.1",
|
|
52
52
|
"tinyexec": "^1.0.1",
|
|
53
53
|
"tree-kill": "^1.2.2",
|
|
54
|
-
"typeroll": "^0.7.
|
|
54
|
+
"typeroll": "^0.7.5"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@biomejs/biome": "2.2.0",
|