code-foundry 1.9.12 → 1.9.13

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.
@@ -87,15 +87,25 @@ jobs:
87
87
  env:
88
88
  CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
89
89
  CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
90
+ BUILD_SCRIPT: ${{ inputs.build-script }}
90
91
  WRANGLER_VERSION: ${{ inputs.wrangler-version }}
91
92
  MODE: ${{ inputs.mode }}
92
93
  run: |
93
94
  set -euo pipefail
94
- npx -y wrangler@"$WRANGLER_VERSION" --version
95
+ # Bun callers install workspace dependencies with Bun. Keep that
96
+ # package-manager context for Wrangler's OpenNext auto-delegation;
97
+ # Wrangler otherwise selects npm/npx and cannot resolve the local
98
+ # opennextjs-cloudflare binary from a Bun workspace.
99
+ if [ -n "$BUILD_SCRIPT" ]; then
100
+ wrangler=(bunx --bun "wrangler@$WRANGLER_VERSION")
101
+ else
102
+ wrangler=(npx -y "wrangler@$WRANGLER_VERSION")
103
+ fi
104
+ "${wrangler[@]}" --version
95
105
  if [ "$MODE" = "production" ]; then
96
- npx -y wrangler@"$WRANGLER_VERSION" deploy 2>&1 | tee deploy-output.txt
106
+ "${wrangler[@]}" deploy 2>&1 | tee deploy-output.txt
97
107
  elif [ "$MODE" = "preview" ]; then
98
- npx -y wrangler@"$WRANGLER_VERSION" versions upload --message "preview ${GITHUB_SHA::7}" 2>&1 | tee deploy-output.txt
108
+ "${wrangler[@]}" versions upload --message "preview ${GITHUB_SHA::7}" 2>&1 | tee deploy-output.txt
99
109
  else
100
110
  echo "Unsupported mode: $MODE (use preview or production)" >&2
101
111
  exit 1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.9.13](https://github.com/0xPlayerOne/code-foundry/compare/v1.9.12...v1.9.13) (2026-09-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **cloudflare:** preserve Bun package manager for OpenNext deploys ([#529](https://github.com/0xPlayerOne/code-foundry/issues/529)) ([2f1bc00](https://github.com/0xPlayerOne/code-foundry/commit/2f1bc000ea28e207e4f12cc7abb5c330cb8448b9))
9
+
3
10
  ## [1.9.12](https://github.com/0xPlayerOne/code-foundry/compare/v1.9.11...v1.9.12) (2026-09-08)
4
11
 
5
12
 
@@ -183,4 +183,6 @@ GitHub deployment plus status with the workers.dev URL, and respects
183
183
  `CLOUDFLARE_ACCOUNT_ID` secrets in the consumer repository. Bun consumers may
184
184
  also pass `build-script`, `install-working-directory`, and `bun-version`; the
185
185
  runtime installs the frozen lockfile and builds the Worker before invoking
186
- Wrangler.
186
+ Wrangler. Bun-backed callers invoke Wrangler through `bunx` so OpenNext's
187
+ production delegation resolves the workspace-local `opennextjs-cloudflare`
188
+ binary; callers without `build-script` retain the npm/npx path.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-foundry",
3
- "version": "1.9.12",
3
+ "version": "1.9.13",
4
4
  "description": "A fast, language-aware repository factory for agent-ready workflows, testing, security, and release automation.",
5
5
  "homepage": "https://github.com/0xPlayerOne/code-foundry#readme",
6
6
  "bugs": {