-
Notifications
You must be signed in to change notification settings - Fork 3
Convert from npm to bun #608
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
anth-volk
left a comment
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.
I'm able to install this code, but when attempting to run make dev, I get an endless loop of bun attempting to build the design package file, and the number of times the package invokes the policyengine-app-v2 filter increases each time the loop attempts to build. I'm going to guess there's a circular dependency somewhere in this setup.
|
Fixed the infinite loop issue. The problem was the Root cause: In bun,
The output showed the bug clearly — each iteration accumulated another After the fix, |
anth-volk
left a comment
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.
Thank you, this does now work. Could you just deal with the merge conflicts? Then this should be good to go.
React Query now passes additional context parameters (client, meta, mutationKey) to mutation functions. Updated test assertions to check only the first argument (the actual payload) instead of exact parameter matching. Changes: - Check mock was called, then verify first argument with .mock.calls[0][0] - This allows tests to pass regardless of additional React Query context Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Change installCommand to use bun install --frozen-lockfile - Change buildCommand to use bun run commands - Applies to root vercel.json (website) and calculator/vercel.json Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Update app/package.json scripts to use 'bun run' instead of previous package manager - Simplify Vercel build commands to cd into app directory and run build scripts directly - Remove workspace flags that don't work with Bun - Ensure design-system builds before calculator and website Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The --filter flag must come before the script name in bun run commands. When placed after (e.g., `bun run dev --filter=pkg`), it's passed as an argument to the script rather than being interpreted as a workspace filter, causing infinite recursion. Fixes the issue where `make dev` would loop endlessly, accumulating --filter arguments with each iteration. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
fbe8ac9 to
dd4be7d
Compare
|
Took the liberty of fixing new merge conflicts I created by merging #636 |
Summary
oven-sh/setup-bun@v2andbun install --frozen-lockfileTest plan
make install && make devmake buildGenerated with Claude Code
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com