@ampcode/svelte-check-daemon 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,22 +7,24 @@ Instant `svelte-check` typechecking and diagnostics in [SvelteKit](https://svelt
|
|
|
7
7
|
Add `@ampcode/svelte-check-daemon` as a dependency to your project:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install --save-dev svelte-check-daemon
|
|
10
|
+
npm install --save-dev @ampcode/svelte-check-daemon
|
|
11
11
|
# -or-
|
|
12
|
-
pnpm add -D svelte-check-daemon
|
|
12
|
+
pnpm add -D @ampcode/svelte-check-daemon
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Then update your `package.json` scripts to run `svelte-check-daemon start`
|
|
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:
|
|
16
16
|
|
|
17
17
|
```json
|
|
18
18
|
{
|
|
19
19
|
"scripts": {
|
|
20
|
-
"dev": "svelte-check-daemon start --tsconfig tsconfig.json
|
|
20
|
+
"dev": "concurrently \"svelte-check-daemon start --tsconfig tsconfig.json\" \"vite dev\"",
|
|
21
21
|
"check": "svelte-check-daemon check"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
```
|
|
25
25
|
|
|
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
|
+
|
|
26
28
|
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.
|
|
27
29
|
|
|
28
30
|
## Commands
|
package/package.json
CHANGED