svelte-check-daemon
Provides instant svelte-check typechecking and diagnostics for SvelteKit projects by running a background daemon process. It monitors svelte-check --watch and returns the latest results on demand, eliminating the need to wait for a full typecheck each time.
Purpose: To speed up the development feedback loop by making typechecking results available instantly while working on a SvelteKit project.
Target Audience: Developers working with SvelteKit who want faster, on-demand typechecking during development.
How it works: A daemon is started alongside the dev server (using svelte-check-daemon start). This daemon runs svelte-check --watch in the background. When you run svelte-check-daemon check, it instantly retrieves the latest results from the daemon instead of executing a new, full check.
Key Commands:
svelte-check-daemon start- Starts the background daemon.svelte-check-daemon check- Fetches the latest diagnostics from the running daemon.svelte-check-daemon stop- Stops the daemon.svelte-check-daemon status- Shows the daemon's current status.
Fallback Behavior: If the daemon is not running, the check command will execute a standard svelte-check as a fallback, ensuring it works in CI environments or if the daemon was forgotten.