Skip to content

Commit 6f28d0b

Browse files
committed
fix(ci): stabilize bun dependency and e2e flows
1 parent 7bbe950 commit 6f28d0b

6 files changed

Lines changed: 18 additions & 9 deletions

File tree

.github/workflows/checking-dependencies.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,4 @@ jobs:
1818
- run: bun run --cwd packages/app build
1919

2020
- name: Dist deps prune (lint)
21-
run: |
22-
bun x @prover-coder-ai/dist-deps-prune scan \
23-
--package ./packages/app/package.json \
24-
--prune-dev true \
25-
--silent
21+
run: bun run check:dist-deps-prune

bun.lock

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bunfig.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[install]
2+
linkWorkspacePackages = true

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"api:test": "bun run --filter @effect-template/api test",
1919
"api:typecheck": "bun run --filter @effect-template/api typecheck",
2020
"check": "bun run --filter @prover-coder-ai/docker-git check && bun run --filter @effect-template/lib typecheck",
21+
"check:dist-deps-prune": "bun node_modules/@prover-coder-ai/dist-deps-prune/dist/main.js scan --package ./packages/app/package.json --prune-dev true --silent",
2122
"changeset": "changeset",
2223
"changeset-publish": "bun -e \"if (!process.env.NPM_TOKEN) { console.log('Skipping publish: NPM_TOKEN is not set'); process.exit(0); }\" && changeset publish",
2324
"changeset-version": "changeset version",
@@ -43,7 +44,8 @@
4344
},
4445
"devDependencies": {
4546
"@changesets/changelog-github": "^0.6.0",
46-
"@changesets/cli": "^2.30.0"
47+
"@changesets/cli": "^2.30.0",
48+
"@prover-coder-ai/dist-deps-prune": "^1.0.17"
4749
},
4850
"trustedDependencies": [
4951
"@parcel/watcher",

scripts/e2e/opencode-autoconnect.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ mkdir -p "$ROOT/.orch/auth/codex"
8585

8686
# Seed a fake (but structurally valid) Codex auth.json so the entrypoint can
8787
# auto-connect OpenCode without manual /connect.
88-
bun <<'BUN' > "$ROOT/.orch/auth/codex/auth.json"
88+
bun - <<'BUN' > "$ROOT/.orch/auth/codex/auth.json"
8989
const now = Math.floor(Date.now() / 1000)
9090
const b64 = (obj) => Buffer.from(JSON.stringify(obj)).toString("base64url")
9191
const jwt = (payload) => `${b64({ alg: "none", typ: "JWT" })}.${b64(payload)}.sig`

scripts/e2e/runtime-volumes-ssh.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ dg_write_docker_host_file "$ROOT/authorized_keys" 644 < "$SSH_PUB_KEY"
9292

9393
# Seed a structurally valid auth.json so the shared Codex volume must be created
9494
# and wired into the container runtime.
95-
bun <<'BUN' | dg_write_docker_host_file "$ROOT/.orch/auth/codex/auth.json" 600
95+
bun - <<'BUN' | dg_write_docker_host_file "$ROOT/.orch/auth/codex/auth.json" 600
9696
const now = Math.floor(Date.now() / 1000)
9797
const b64 = (obj) => Buffer.from(JSON.stringify(obj)).toString("base64url")
9898
const jwt = (payload) => `${b64({ alg: "none", typ: "JWT" })}.${b64(payload)}.sig`
@@ -151,7 +151,7 @@ docker exec -u dev "$CONTAINER_NAME" bash -lc "test -d '$TARGET_DIR/.git'" \
151151
|| fail "expected cloned repo at: $TARGET_DIR"
152152

153153
MOUNTS_JSON="$(docker inspect --format '{{json .Mounts}}' "$CONTAINER_NAME")"
154-
MOUNTS_JSON="$MOUNTS_JSON" HOME_VOLUME_NAME="$VOLUME_NAME" bun <<'BUN'
154+
MOUNTS_JSON="$MOUNTS_JSON" HOME_VOLUME_NAME="$VOLUME_NAME" bun - <<'BUN'
155155
const mounts = JSON.parse(process.env.MOUNTS_JSON)
156156
const byDestination = new Map(mounts.map((mount) => [mount.Destination, mount]))
157157

0 commit comments

Comments
 (0)