Skip to content

Conversation

@ibetitsmike
Copy link
Contributor

Problem

The build system has issues on Windows because bun x doesn't correctly pass arguments on Windows platforms. This causes various build commands to fail or behave unexpectedly.

Solution

Introduce a platform-specific RUNNER variable that:

  • Uses npx on Windows (where bun x has argument passing issues)
  • Uses bun x on other platforms (for better performance)

All commands throughout the Makefile now use $(RUNNER) instead of hardcoded bun x, ensuring consistent behavior across platforms.

Changes

  • Added platform detection at the top of Makefile
  • Defined RUNNER variable conditionally based on OS
  • Replaced all bun x calls with $(RUNNER)
  • Added comments explaining the Windows-specific workaround

Testing

  • ✅ Format checks pass
  • ✅ TypeScript compilation works
  • ✅ Unit tests pass

Generated with cmux

- Add RUNNER variable that uses npx on Windows, bun x elsewhere
- Windows: bun x doesn't correctly pass arguments, so use npm run/npx
- Non-Windows: Continue using bun x for better performance
- Update all commands to use $(RUNNER) instead of hardcoded bun x
- Add comments explaining why Windows needs different approach

This ensures consistent build behavior across all platforms while
working around Windows-specific limitations with bun's argument passing.
@ibetitsmike
Copy link
Contributor Author

Closing as these changes have been added to PR #540

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant