bun-types 1.3.6-canary.20251223T140652 → 1.3.6-canary.20251224T140738

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/bun.d.ts CHANGED
@@ -1970,6 +1970,26 @@ declare module "bun" {
1970
1970
  * @default true
1971
1971
  */
1972
1972
  autoloadBunfig?: boolean;
1973
+ /**
1974
+ * Whether to autoload tsconfig.json when the standalone executable runs
1975
+ *
1976
+ * Standalone-only: applies only when building/running the standalone executable.
1977
+ *
1978
+ * Equivalent CLI flags: `--compile-autoload-tsconfig`, `--no-compile-autoload-tsconfig`
1979
+ *
1980
+ * @default false
1981
+ */
1982
+ autoloadTsconfig?: boolean;
1983
+ /**
1984
+ * Whether to autoload package.json when the standalone executable runs
1985
+ *
1986
+ * Standalone-only: applies only when building/running the standalone executable.
1987
+ *
1988
+ * Equivalent CLI flags: `--compile-autoload-package-json`, `--no-compile-autoload-package-json`
1989
+ *
1990
+ * @default false
1991
+ */
1992
+ autoloadPackageJson?: boolean;
1973
1993
  windows?: {
1974
1994
  hideConsole?: boolean;
1975
1995
  icon?: string;
@@ -115,6 +115,26 @@ Currently we do not collect telemetry and this setting is only used for enabling
115
115
  telemetry = false
116
116
  ```
117
117
 
118
+ ### `env`
119
+
120
+ Configure automatic `.env` file loading. By default, Bun automatically loads `.env` files. To disable this behavior:
121
+
122
+ ```toml title="bunfig.toml" icon="settings"
123
+ # Disable automatic .env file loading
124
+ env = false
125
+ ```
126
+
127
+ You can also use object syntax with the `file` property:
128
+
129
+ ```toml title="bunfig.toml" icon="settings"
130
+ [env]
131
+ file = false
132
+ ```
133
+
134
+ This is useful in production environments or CI/CD pipelines where you want to rely solely on system environment variables.
135
+
136
+ Note: Explicitly provided environment files via `--env-file` will still be loaded even when default loading is disabled.
137
+
118
138
  ### `console`
119
139
 
120
140
  Configure console output behavior.
@@ -376,16 +376,18 @@ timeout = 10000
376
376
 
377
377
  ## Environment Variables
378
378
 
379
- You can also set environment variables in your configuration that affect test behavior:
379
+ Environment variables for tests should be set using `.env` files. Bun automatically loads `.env` files from your project root. For test-specific variables, create a `.env.test` file:
380
380
 
381
- ```toml title="bunfig.toml" icon="settings"
382
- [env]
383
- NODE_ENV = "test"
384
- DATABASE_URL = "postgresql://localhost:5432/test_db"
385
- LOG_LEVEL = "error"
381
+ ```ini title=".env.test" icon="settings"
382
+ NODE_ENV=test
383
+ DATABASE_URL=postgresql://localhost:5432/test_db
384
+ LOG_LEVEL=error
385
+ ```
386
386
 
387
- [test]
388
- coverage = true
387
+ Then load it with `--env-file`:
388
+
389
+ ```bash terminal icon="terminal"
390
+ bun test --env-file=.env.test
389
391
  ```
390
392
 
391
393
  ## Complete Configuration Example
@@ -398,13 +400,6 @@ Here's a comprehensive example showing all available test configuration options:
398
400
  registry = "https://registry.npmjs.org/"
399
401
  exact = true
400
402
 
401
- [env]
402
- # Environment variables for tests
403
- NODE_ENV = "test"
404
- DATABASE_URL = "postgresql://localhost:5432/test_db"
405
- API_URL = "http://localhost:3001"
406
- LOG_LEVEL = "error"
407
-
408
403
  [test]
409
404
  # Test discovery
410
405
  root = "src"
package/package.json CHANGED
@@ -33,5 +33,5 @@
33
33
  "bun.js",
34
34
  "types"
35
35
  ],
36
- "version": "1.3.6-canary.20251223T140652"
36
+ "version": "1.3.6-canary.20251224T140738"
37
37
  }