Skip to content

Commit 5ec7f01

Browse files
committed
use concurrently
1 parent b261e53 commit 5ec7f01

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@ npm install --save-dev svelte-check-daemon
1212
pnpm add -D svelte-check-daemon
1313
```
1414

15-
Then update your `package.json` scripts to run `svelte-check-daemon start` in the background (usually alongside your dev server) and `svelte-check-daemon check` to get results:
15+
Then update your `package.json` scripts to run `svelte-check-daemon start` alongside your dev server and `svelte-check-daemon check` to get results:
1616

1717
```json
1818
{
19-
// ...
2019
"scripts": {
21-
"dev": "svelte-check-daemon start --tsconfig tsconfig.json & vite dev",
20+
"dev": "concurrently \"svelte-check-daemon start --tsconfig tsconfig.json\" \"vite dev\"",
2221
"check": "svelte-check-daemon check"
2322
}
2423
}
2524
```
2625

26+
This uses [concurrently](https://www.npmjs.com/package/concurrently) to run both processes and ensure the daemon is properly terminated when you stop the dev server.
27+
2728
If the daemon isn't running, `svelte-check-daemon check` will just run `svelte-check`, which is a fallback in CI or if you've forgotten to run the daemon.
2829

2930
## Commands

0 commit comments

Comments
 (0)