create-eigen-game 0.9.2 → 0.9.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-eigen-game",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Scaffold an EigenInteractive game Worker and Flutter app without cloning the engine repositories.",
|
|
6
6
|
"type": "module",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"vitest": "^4.1.10",
|
|
30
30
|
"wrangler": "^4.110.0",
|
|
31
31
|
"zod": "^4.4.3",
|
|
32
|
-
"@eigeninteractive/rules": "0.
|
|
33
|
-
"@eigeninteractive/server": "0.
|
|
34
|
-
"@eigeninteractive/testkit": "0.
|
|
32
|
+
"@eigeninteractive/rules": "0.3.0",
|
|
33
|
+
"@eigeninteractive/server": "0.3.0",
|
|
34
|
+
"@eigeninteractive/testkit": "0.3.0"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=22"
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"contract:check": "eigen-contract --check",
|
|
32
32
|
"deploy": "wrangler d1 migrations apply GAME_DB --remote && wrangler deploy",
|
|
33
33
|
"dev": "{{PACKAGE_MANAGER}} run db:migrate:local && wrangler dev",
|
|
34
|
+
"inspect": "eigen-inspect",
|
|
34
35
|
"start": "{{PACKAGE_MANAGER}} run db:migrate:local && wrangler dev",
|
|
35
36
|
"test": "vitest run",
|
|
36
37
|
"test:watch": "vitest",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { configDefaults, defineConfig } from "vitest/config";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The twin fixtures are read with `readFileSync` at collect time, so they are
|
|
5
|
+
* not in Vite's module graph, and `test:watch` would ignore a fixture-only
|
|
6
|
+
* edit: Vitest looks a changed path up in the graph, finds nothing, and reruns
|
|
7
|
+
* nothing. `forceRerunTriggers` is the supported way to watch a file consumed
|
|
8
|
+
* outside the graph, and Vitest's own defaults use it for `package.json` and
|
|
9
|
+
* the config files for exactly that reason.
|
|
10
|
+
*
|
|
11
|
+
* Spread the defaults rather than replacing them. Config resolution is a
|
|
12
|
+
* shallow merge, so a bare array silently stops manifest and config edits from
|
|
13
|
+
* triggering a rerun.
|
|
14
|
+
*
|
|
15
|
+
* A match reruns the whole suite rather than one file. That is cheap here
|
|
16
|
+
* because these tests are pure Node. Keep the trigger off any
|
|
17
|
+
* `@cloudflare/vitest-pool-workers` project added later, where a fixture
|
|
18
|
+
* cannot change the result and the rebuild is not free.
|
|
19
|
+
*/
|
|
20
|
+
export default defineConfig({
|
|
21
|
+
test: {
|
|
22
|
+
forceRerunTriggers: [...configDefaults.forceRerunTriggers, "**/src/module/fixtures/**/*.json"],
|
|
23
|
+
},
|
|
24
|
+
});
|