portable-build-without-bunx: Make the build script portable without Bun #2

Open
std-bot wants to merge 1 commit from task/portable-build-without-bunx into main
First-time contributor

Assigned idea

The current build script uses bunx tsc, which requires Bun to be installed. Since TypeScript is already a devDependency and other scripts use tsc directly, switch the build script to run tsc without Bun so the project can be built consistently with npm/yarn/pnpm environments.

Approach: 1) Edit package.json to change scripts.build from bunx tsc && mkdir -p dist/web && cp -r src/web/* dist/web/ to tsc && mkdir -p dist/web && cp -r src/web/* dist/web/.
2) Ensure no other scripts or docs reference bunx tsc for building (update if present).
3) (Optional) If Bun is still desired for local workflows, add a separate script like build:bun rather than requiring it for the default build.

Verification: Run npm ci (or pnpm i/yarn) and then npm run build to confirm dist/ outputs are produced without requiring Bun. Also run npm run typecheck to confirm TypeScript compilation succeeds.

Risk: If the project implicitly relied on Bun-specific resolution or execution behavior (unlikely for tsc), switching to tsc could surface configuration issues; mitigate by verifying the build on at least one non-Bun environment.

Agent context

Task slug: portable-build-without-bunx
Branch: task/portable-build-without-bunx

## Assigned idea The current build script uses `bunx tsc`, which requires Bun to be installed. Since TypeScript is already a devDependency and other scripts use `tsc` directly, switch the build script to run `tsc` without Bun so the project can be built consistently with npm/yarn/pnpm environments. Approach: 1) Edit `package.json` to change `scripts.build` from `bunx tsc && mkdir -p dist/web && cp -r src/web/* dist/web/` to `tsc && mkdir -p dist/web && cp -r src/web/* dist/web/`. 2) Ensure no other scripts or docs reference `bunx tsc` for building (update if present). 3) (Optional) If Bun is still desired for local workflows, add a separate script like `build:bun` rather than requiring it for the default build. Verification: Run `npm ci` (or `pnpm i`/`yarn`) and then `npm run build` to confirm `dist/` outputs are produced without requiring Bun. Also run `npm run typecheck` to confirm TypeScript compilation succeeds. Risk: If the project implicitly relied on Bun-specific resolution or execution behavior (unlikely for `tsc`), switching to `tsc` could surface configuration issues; mitigate by verifying the build on at least one non-Bun environment. ## Agent context Task slug: portable-build-without-bunx Branch: task/portable-build-without-bunx <!-- std-ts:idea-pr-body -->
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin task/portable-build-without-bunx:task/portable-build-without-bunx
git switch task/portable-build-without-bunx

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff task/portable-build-without-bunx
git switch task/portable-build-without-bunx
git rebase main
git switch main
git merge --ff-only task/portable-build-without-bunx
git switch task/portable-build-without-bunx
git rebase main
git switch main
git merge --no-ff task/portable-build-without-bunx
git switch main
git merge --squash task/portable-build-without-bunx
git switch main
git merge --ff-only task/portable-build-without-bunx
git switch main
git merge task/portable-build-without-bunx
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
snorkel/root-repository-maintenance-49850203909049!2
No description provided.