portable-build-without-bunx: Make the build script portable without Bun #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "task/portable-build-without-bunx"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Assigned idea
The current build script uses
bunx tsc, which requires Bun to be installed. Since TypeScript is already a devDependency and other scripts usetscdirectly, switch the build script to runtscwithout Bun so the project can be built consistently with npm/yarn/pnpm environments.Approach: 1) Edit
package.jsonto changescripts.buildfrombunx tsc && mkdir -p dist/web && cp -r src/web/* dist/web/totsc && mkdir -p dist/web && cp -r src/web/* dist/web/.2) Ensure no other scripts or docs reference
bunx tscfor building (update if present).3) (Optional) If Bun is still desired for local workflows, add a separate script like
build:bunrather than requiring it for the default build.Verification: Run
npm ci(orpnpm i/yarn) and thennpm run buildto confirmdist/outputs are produced without requiring Bun. Also runnpm run typecheckto confirm TypeScript compilation succeeds.Risk: If the project implicitly relied on Bun-specific resolution or execution behavior (unlikely for
tsc), switching totsccould 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
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.