4 Commits

Author SHA1 Message Date
eric
769b95d05b chore(release): v0.4.0
Some checks failed
CI / test (ubuntu-latest, linux-x64) (push) Failing after 31s
Copilot Setup Steps / copilot-setup-steps (push) Failing after 36s
CI / test (macos-14, darwin-arm64) (push) Has been cancelled
CI / test (windows-latest, windows) (push) Has been cancelled
2026-03-15 01:20:57 +01:00
eric
2a25cfb91a fix: include .env files 2026-03-15 01:20:45 +01:00
eric
2a9bd09aa4 fix: include .env files 2026-03-15 01:13:52 +01:00
eric
4b7ebb1536 fix: include .env files 2026-03-15 01:07:36 +01:00
10 changed files with 18 additions and 5 deletions

2
.gitignore vendored
View File

@@ -22,4 +22,6 @@ node_modules/
.env
!tests/.env
!tests/**/.env
!examples/.env
!examples/**/.env

3
.gitleaksignore Normal file
View File

@@ -0,0 +1,3 @@
tests/binary_test/.env:environment-file:1
tests/script_test/.env:environment-file:1
tests/binary_test/env_parent/.env:environment-file:1

View File

@@ -1,6 +1,6 @@
module(
name = "rules_bun",
version = "0.2.2",
version = "0.4.0",
)
# Core ruleset dependencies.

4
MODULE.bazel.lock generated
View File

@@ -193,7 +193,7 @@
"//bun:extensions.bzl%bun": {
"general": {
"bzlTransitiveDigest": "lzOUyaXDbkH922ruNkkwEF2cnI4m0XpzrOti0qypwtA=",
"usagesDigest": "/0BcCMA6AOzLhQaRK6DquxrCfpPHJUjSUaFz4zmQrsM=",
"usagesDigest": "3e3c2oTwajnFd8qnwby/r5XJjkCbXcs0Y4hgl0tOBes=",
"recordedInputs": [
"REPO_MAPPING:,bazel_tools bazel_tools"
],
@@ -284,7 +284,7 @@
"//bun:extensions.bzl%bun_install": {
"general": {
"bzlTransitiveDigest": "lzOUyaXDbkH922ruNkkwEF2cnI4m0XpzrOti0qypwtA=",
"usagesDigest": "f9pNm3AOxJDZmpHhL2vrrCo23IW33im/l/VYCTW2BWM=",
"usagesDigest": "Rpb8CFAx+vMvmPf6ZPeHR/gweyP8QXMGdOfSou7lKNg=",
"recordedInputs": [
"REPO_MAPPING:,bazel_tools bazel_tools"
],

View File

@@ -60,7 +60,7 @@ Release announcements should provide a copy-pasteable module snippet in the
standard ruleset form:
```starlark
bazel_dep(name = "rules_bun", version = "0.2.2")
bazel_dep(name = "rules_bun", version = "0.4.0")
```
Then add the Bun repositories and register the toolchains in `MODULE.bazel`:

View File

@@ -1,3 +1,3 @@
0.2.2
0.4.0
stable
0

View File

@@ -75,6 +75,11 @@
' "$README" > "$TMP" && mv "$TMP" "$README"
'';
}
{
run.script = ''
bazel cquery //tests/... >/dev/null
'';
}
];
postVersion = ''

1
tests/binary_test/.env Normal file
View File

@@ -0,0 +1 @@
BUN_ENV_CWD_TEST=from-dotenv

View File

@@ -0,0 +1 @@
BUN_ENV_PARENT_TEST=from-parent-dotenv

1
tests/script_test/.env Normal file
View File

@@ -0,0 +1 @@
BUN_SCRIPT_ENV_TEST=from-dotenv