-
Notifications
You must be signed in to change notification settings - Fork 0
Switch from Yarn to Bun as package manager #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,12 +7,12 @@ | |
| "packages/*" | ||
| ], | ||
| "scripts": { | ||
| "start": "yarn dev", | ||
| "start": "bun run dev", | ||
| "dev": "turbo run dev", | ||
| "build": "turbo run build", | ||
| "serve": "turbo run serve", | ||
| "test": "turbo run test", | ||
| "clean": "find . -name '.turbo' -type d -prune -exec rm -rf {} + && find . -name 'node_modules' -type d -prune -exec rm -rf {} + && find . -name 'yarn.lock' -type f -delete", | ||
| "clean": "find . -name '.turbo' -type d -prune -exec rm -rf {} + && find . -name 'node_modules' -type d -prune -exec rm -rf {} + && find . -name 'bun.lockb' -type f -delete", | ||
| "format-and-lint": "biome check .", | ||
| "format-and-lint:fix": "biome check . --write", | ||
| "prerelease": "turbo run build", | ||
|
|
@@ -25,8 +25,9 @@ | |
| }, | ||
| "dependencies": { | ||
| "@changesets/cli": "^2.27.11", | ||
| "ajv": "^8.17.1", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainConfirm ajv is used and keep its version consistent across workspace
Run this script to:
If you want, I can open a follow-up to align versions or remove ajv if unused. 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== AJV versions across workspace =="
fd -t f -a package.json | while read -r f; do
ver_dep=$(jq -r '.dependencies.ajv // empty' "$f")
ver_dev=$(jq -r '.devDependencies.ajv // empty' "$f")
if [[ -n "${ver_dep}${ver_dev}" ]]; then
echo "$f -> dependencies: ${ver_dep:--} | devDependencies: ${ver_dev:--}"
fi
done
echo
echo "== AJV usage (imports/requires) =="
rg -n -C2 -g '!**/node_modules/**' -g '!**/dist/**' -g '!**/build/**' -g '!**/.turbo/**' -P "(from\s+['\"]ajv['\"]|require\(['\"]ajv['\"]\))" || echo "No direct uses found"Length of output: 1240 Remove or justify the ajv dependency in package.json No direct imports or requires of
🤖 Prompt for AI Agents |
||
| "react-phone-number-input": "^3.4.12", | ||
| "react-router-dom": "^7.6.2" | ||
| }, | ||
| "packageManager": "yarn@4.9.1" | ||
| "packageManager": "bun@1.2.20" | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Double-check test runner compatibility.
bun test runs Bun’s built-in test runner. If the repo previously used Jest/Vitest, ensure tests are compatible or that you’ve migrated configs.
Run this script to see what test tooling is present and how tests are invoked:
Expected:
Length of output: 611
Correct the test command in GitHub Actions
The repo’s root
package.jsondefinesso
bun testwill invoke Bun’s built-in runner (and won’t trigger your Turborepo pipelines). Update the workflow step at.github/workflows/test.yml:39-41to:(or
npm run test) to ensure your monorepo’s test suites actually execute.🤖 Prompt for AI Agents