mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-10 01:30:37 -04:00
b2bb2180c5
## Summary - Fix `spacetime dev` failing on C# projects by watching the module directory itself instead of hardcoded `spacetimedb_dir/src/` (which doesn't exist for C# templates) - Add layered file-watch filtering to avoid triggering rebuilds on build artifacts: 1. Always-ignore dirs (`target/`, `bin/`, `obj/`, `node_modules/`, etc.) 2. Always-watch exceptions (`.env.local`, `spacetime.*.local.json`) 3. `.gitignore` rules from global, project, and module levels - Suppress init's generic "Next steps" message when called from `spacetime dev`, print a dev-appropriate `cd` hint instead when a new project is created in a subdirectory - Update 12 quickstart docs to tell users to open a new terminal and `cd my-spacetime-app` before running CLI commands ## Test plan - [x] `cargo build -p spacetimedb-cli` compiles successfully - [ ] `spacetime dev --template basic-cs` no longer errors with "Input watch path is neither a file nor a directory" - [ ] Modifying a `.cs` file in `spacetimedb/` triggers a rebuild - [ ] Build artifacts in `obj/`/`bin/` do not trigger rebuilds - [ ] Rust projects (`spacetimedb/src/` exists) continue to work as before - [ ] `spacetime dev --template basic-cs` from a non-project directory prints the "Tip: cd" hint, not the generic "Next steps" - [ ] `spacetime init` standalone still prints "Next steps" as before --------- Co-authored-by: clockwork-labs-bot <clockwork-labs-bot@users.noreply.github.com> Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>