SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

spacetimedb generate + Bun + Windows => tsc is not found

Open dottedmag opened this issue 2 months ago • 1 comments

When Bun installs typescript module on Windows it installs node_modules\bin\tsc.exe (without a .cmd wrapper).

"spacetimedb generate" checks for tsc.cmd specifically and skips type checking if it is not found:

https://github.com/clockworklabs/SpacetimeDB/blob/master/crates/cli/src/tasks/javascript.rs#L47

dottedmag avatar Sep 30 '26 14:09 dottedmag

I would like to work on this. I plan to keep the change focused and open a small Rust PR against master. Please let me know if the issue is no longer desired or if there is a preferred approach.

akshitj11 avatar Sep 30 '26 20:09 akshitj11