@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.
Files changed (2) hide show
  1. package/README.md +6 -4
  2. 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` 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:
16
16
 
17
17
  ```json
18
18
  {
19
19
  "scripts": {
20
- "dev": "svelte-check-daemon start --tsconfig tsconfig.json & vite dev",
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
@@ -2,7 +2,7 @@
2
2
  "name": "@ampcode/svelte-check-daemon",
3
3
  "publisher": "ampcode",
4
4
  "description": "A daemon for svelte-check that caches results for faster type checking",
5
- "version": "0.0.1",
5
+ "version": "0.0.3",
6
6
  "license": "Apache-2.0",
7
7
  "type": "module",
8
8
  "bin": {