@bendyline/molen-tooling 0.0.1 → 0.0.2

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 (137) hide show
  1. package/README.md +22 -4
  2. package/dist/cli.mjs +26 -4
  3. package/dist/docs-src/guide/3d-art-guidelines.md +2 -2
  4. package/dist/docs-src/guide/3d-model-assets.md +15 -11
  5. package/dist/docs-src/guide/aircraft.md +9 -10
  6. package/dist/docs-src/guide/browser-mount.md +14 -0
  7. package/dist/docs-src/guide/building-interiors.md +2 -1
  8. package/dist/docs-src/guide/determinism.md +16 -11
  9. package/dist/docs-src/guide/entities.md +16 -5
  10. package/dist/docs-src/guide/examples.md +38 -23
  11. package/dist/docs-src/guide/experience-playback.md +2 -3
  12. package/dist/docs-src/guide/game-samples.md +30 -18
  13. package/dist/docs-src/guide/project.md +22 -2
  14. package/dist/docs-src/guide/quickstart.md +37 -28
  15. package/dist/docs-src/guide/recognizable-places.md +21 -15
  16. package/dist/docs-src/guide/rendering-backends.md +5 -4
  17. package/dist/docs-src/guide/scripting.md +4 -2
  18. package/dist/docs-src/guide/sky.md +10 -9
  19. package/dist/docs-src/guide/structure-library.md +18 -8
  20. package/dist/docs-src/guide/terrain.md +6 -4
  21. package/dist/docs-src/guide/vehicles.md +9 -5
  22. package/dist/docs-src/guide/worldgen.md +31 -21
  23. package/dist/docs-src/llms.txt +26 -15
  24. package/dist/docs-src/schemas/README.md +1 -1
  25. package/dist/index.d.mts +26 -2
  26. package/dist/index.mjs +2 -2
  27. package/dist/{mcp-BFnCWrg0.mjs → mcp-AOfIp89b.mjs} +12 -2
  28. package/dist/{ops-BGxhSP6w.mjs → ops-C4BvDgP-.mjs} +267 -33
  29. package/dist/templates/city-courier/README.md +53 -0
  30. package/dist/templates/city-courier/checks.json +20 -0
  31. package/dist/templates/city-courier/commands.json +32 -0
  32. package/dist/templates/city-courier/delivery-run.replay.json +214 -0
  33. package/dist/templates/city-courier/gen/molen-types.ts +878 -0
  34. package/dist/templates/city-courier/index.html +2 -0
  35. package/dist/templates/city-courier/package.json +25 -0
  36. package/dist/templates/city-courier/project.json +8 -0
  37. package/dist/templates/city-courier/scene.json +3395 -0
  38. package/dist/templates/city-courier/scripts/game.ts +127 -0
  39. package/dist/templates/city-courier/scripts/molen-scripts.d.ts +1125 -0
  40. package/dist/templates/city-courier/scripts/tsconfig.json +16 -0
  41. package/dist/templates/city-courier/src/game-shell.css +309 -0
  42. package/dist/templates/city-courier/src/main.ts +81 -0
  43. package/dist/templates/city-courier/src/scene.ts +17 -0
  44. package/dist/templates/city-courier/src/vite-env.d.ts +1 -0
  45. package/dist/templates/city-courier/src/worker.ts +5 -0
  46. package/dist/templates/city-courier/test/headless.test.ts +95 -0
  47. package/dist/templates/city-courier/test/playthrough.test.js +52 -0
  48. package/dist/templates/city-courier/test/replay.test.ts +22 -0
  49. package/dist/templates/city-courier/tsconfig.json +17 -0
  50. package/dist/templates/city-courier/vite.config.ts +19 -0
  51. package/dist/templates/cubes/README.md +51 -0
  52. package/dist/templates/cubes/index.html +16 -0
  53. package/dist/templates/cubes/package.json +24 -0
  54. package/dist/templates/cubes/scene.json +15 -0
  55. package/dist/templates/cubes/src/cubes.ts +100 -0
  56. package/dist/templates/cubes/src/main.ts +21 -0
  57. package/dist/templates/cubes/src/worker.ts +15 -0
  58. package/dist/templates/cubes/test/headless.test.ts +98 -0
  59. package/dist/templates/cubes/tsconfig.json +17 -0
  60. package/dist/templates/cubes/vite.config.ts +17 -0
  61. package/dist/templates/data-viz/README.md +47 -0
  62. package/dist/templates/data-viz/camera-track.json +12 -0
  63. package/dist/templates/data-viz/data.json +9 -0
  64. package/dist/templates/data-viz/index.html +16 -0
  65. package/dist/templates/data-viz/package.json +25 -0
  66. package/dist/templates/data-viz/scene.json +7 -0
  67. package/dist/templates/data-viz/src/main.ts +39 -0
  68. package/dist/templates/data-viz/src/viz.ts +91 -0
  69. package/dist/templates/data-viz/src/worker.ts +12 -0
  70. package/dist/templates/data-viz/test/headless.test.ts +75 -0
  71. package/dist/templates/data-viz/tsconfig.json +17 -0
  72. package/dist/templates/data-viz/vite.config.ts +16 -0
  73. package/dist/templates/figures-gallery/README.md +46 -0
  74. package/dist/templates/figures-gallery/index.html +16 -0
  75. package/dist/templates/figures-gallery/package.json +25 -0
  76. package/dist/templates/figures-gallery/scene.json +276 -0
  77. package/dist/templates/figures-gallery/src/main.ts +44 -0
  78. package/dist/templates/figures-gallery/src/worker.ts +17 -0
  79. package/dist/templates/figures-gallery/test/headless.test.ts +90 -0
  80. package/dist/templates/figures-gallery/tsconfig.json +17 -0
  81. package/dist/templates/figures-gallery/vite.config.ts +17 -0
  82. package/dist/templates/index.json +188 -0
  83. package/dist/templates/skybound/README.md +53 -0
  84. package/dist/templates/skybound/checks.json +24 -0
  85. package/dist/templates/skybound/commands.json +32 -0
  86. package/dist/templates/skybound/first-leap.replay.json +224 -0
  87. package/dist/templates/skybound/gen/molen-types.ts +878 -0
  88. package/dist/templates/skybound/index.html +2 -0
  89. package/dist/templates/skybound/package.json +25 -0
  90. package/dist/templates/skybound/project.json +8 -0
  91. package/dist/templates/skybound/scene.json +1737 -0
  92. package/dist/templates/skybound/scripts/game.ts +119 -0
  93. package/dist/templates/skybound/scripts/molen-scripts.d.ts +1125 -0
  94. package/dist/templates/skybound/scripts/tsconfig.json +16 -0
  95. package/dist/templates/skybound/src/game-shell.css +309 -0
  96. package/dist/templates/skybound/src/main.ts +60 -0
  97. package/dist/templates/skybound/src/scene.ts +17 -0
  98. package/dist/templates/skybound/src/vite-env.d.ts +1 -0
  99. package/dist/templates/skybound/src/worker.ts +5 -0
  100. package/dist/templates/skybound/test/headless.test.ts +124 -0
  101. package/dist/templates/skybound/test/playthrough.test.js +38 -0
  102. package/dist/templates/skybound/test/replay.test.ts +22 -0
  103. package/dist/templates/skybound/tsconfig.json +17 -0
  104. package/dist/templates/skybound/vite.config.ts +19 -0
  105. package/dist/templates/terrain-flyover/README.md +46 -0
  106. package/dist/templates/terrain-flyover/index.html +16 -0
  107. package/dist/templates/terrain-flyover/package.json +26 -0
  108. package/dist/templates/terrain-flyover/src/flyover.ts +23 -0
  109. package/dist/templates/terrain-flyover/src/main.ts +93 -0
  110. package/dist/templates/terrain-flyover/terrain.json +15 -0
  111. package/dist/templates/terrain-flyover/test/headless.test.ts +72 -0
  112. package/dist/templates/terrain-flyover/tsconfig.json +17 -0
  113. package/dist/templates/terrain-flyover/vite.config.ts +15 -0
  114. package/dist/templates/top-down-arena/README.md +52 -0
  115. package/dist/templates/top-down-arena/arena-skirmish.replay.json +204 -0
  116. package/dist/templates/top-down-arena/index.html +16 -0
  117. package/dist/templates/top-down-arena/package.json +25 -0
  118. package/dist/templates/top-down-arena/project.json +10 -0
  119. package/dist/templates/top-down-arena/scene.json +162 -0
  120. package/dist/templates/top-down-arena/scripts/chase.ts +17 -0
  121. package/dist/templates/top-down-arena/scripts/combat.ts +12 -0
  122. package/dist/templates/top-down-arena/scripts/control.ts +8 -0
  123. package/dist/templates/top-down-arena/scripts/molen-scripts.d.ts +1095 -0
  124. package/dist/templates/top-down-arena/scripts/spawner.ts +11 -0
  125. package/dist/templates/top-down-arena/scripts/tsconfig.json +16 -0
  126. package/dist/templates/top-down-arena/src/arena.ts +8 -0
  127. package/dist/templates/top-down-arena/src/gen/molen-types.ts +882 -0
  128. package/dist/templates/top-down-arena/src/main.ts +31 -0
  129. package/dist/templates/top-down-arena/src/scene.ts +24 -0
  130. package/dist/templates/top-down-arena/src/vite-env.d.ts +1 -0
  131. package/dist/templates/top-down-arena/src/worker.ts +7 -0
  132. package/dist/templates/top-down-arena/test/headless.test.ts +87 -0
  133. package/dist/templates/top-down-arena/test/replay.test.ts +22 -0
  134. package/dist/templates/top-down-arena/tsconfig.json +17 -0
  135. package/dist/templates/top-down-arena/types/arena.types.json +54 -0
  136. package/dist/templates/top-down-arena/vite.config.ts +21 -0
  137. package/package.json +14 -14
@@ -0,0 +1,31 @@
1
+ import { mountExperience } from '@bendyline/molen-client';
2
+ import { arenaScene } from './scene';
3
+
4
+ // Browser entry: kernel in a Worker, client mounted on it. The scene's `camera` (top-down
5
+ // ortho) and `input` (WASD -> move.dir) blocks are applied by mountExperience, so this file
6
+ // declares nothing the scene already does. The client never mutates simulation state.
7
+ const scene = arenaScene();
8
+ const canvas = document.getElementById('view') as HTMLCanvasElement;
9
+ const worker = new Worker(new URL('./worker.ts', import.meta.url), { type: 'module' });
10
+
11
+ const { client } = await mountExperience({ link: worker, scene, canvas, clearColor: '#1a1d24' });
12
+
13
+ // A tiny HUD from mirrored state + events: hit points and kills, no wire-protocol parsing.
14
+ const hud = document.createElement('div');
15
+ hud.style.cssText =
16
+ 'position:fixed;left:12px;top:10px;font:14px system-ui;color:#dfe6ee;pointer-events:none';
17
+ document.body.appendChild(hud);
18
+ let kills = 0;
19
+ client.onEvent('collision', () => {
20
+ kills++;
21
+ });
22
+ setInterval(() => {
23
+ const hp = (client.get('player', 'health') as { hp?: number } | undefined)?.hp ?? '–';
24
+ hud.textContent = `hp ${hp} · contacts ${kills}`;
25
+ }, 100);
26
+
27
+ const hint = document.createElement('div');
28
+ hint.textContent = 'WASD to move · survive the swarm';
29
+ hint.style.cssText =
30
+ 'position:fixed;left:12px;bottom:10px;font:13px system-ui;color:#9aa;pointer-events:none';
31
+ document.body.appendChild(hint);
@@ -0,0 +1,24 @@
1
+ import { type LoadedProject, loadProject } from '@bendyline/molen-kernel';
2
+ import type { SceneManifest } from '@bendyline/molen-schema';
3
+ import sceneDoc from '../scene.json';
4
+ import typesDoc from '../types/arena.types.json';
5
+
6
+ // The arena is DATA: scene.json declares the world, the `move` command, the input rules, and
7
+ // its scripts as file refs. loadProject validates all of it and inlines those scripts from the
8
+ // sources Vite hands over, so the browser, the tests and the CLI all build the same manifest.
9
+ const scripts = import.meta.glob('../scripts/*.ts', {
10
+ query: '?raw',
11
+ import: 'default',
12
+ eager: true,
13
+ }) as Record<string, string>;
14
+
15
+ let loaded: LoadedProject | undefined;
16
+ /** The validated scene (scripts inlined) and the flattened type registry. */
17
+ export function arenaProject(): LoadedProject {
18
+ loaded ??= loadProject({ scene: sceneDoc, types: typesDoc, scripts });
19
+ return loaded;
20
+ }
21
+
22
+ export function arenaScene(): SceneManifest {
23
+ return arenaProject().scene;
24
+ }
@@ -0,0 +1 @@
1
+ /// <reference types="vite/client" />
@@ -0,0 +1,7 @@
1
+ /// <reference lib="webworker" />
2
+ import { startKernelWorker } from '@bendyline/molen-kernel';
3
+ import { arenaProject } from './arena';
4
+
5
+ // The kernel Worker: kinematics from `physics`, the declared `move` command, and the scene's
6
+ // scripts all install from data; startKernelWorker builds the world and hosts it on this port.
7
+ startKernelWorker({ ...arenaProject() });
@@ -0,0 +1,87 @@
1
+ import { buildWorld, defineComponent, type World } from '@bendyline/molen-kernel';
2
+ import { runHeadless } from '@bendyline/molen-kernel/testing';
3
+ import type { Command } from '@bendyline/molen-schema';
4
+ import { describe, expect, it } from 'vitest';
5
+ import { ARENA, arenaProject } from '../src/arena';
6
+
7
+ const Tag = defineComponent<{ name: string }>('tag');
8
+ const Transform = defineComponent<{ pos: [number, number, number] }>('transform');
9
+ const Health = defineComponent<{ hp: number }>('health');
10
+
11
+ /** The arena is pure data: no setup module, everything installs from scene.json. */
12
+ function build(): World {
13
+ const { scene, types } = arenaProject();
14
+ return buildWorld(scene, undefined, { types });
15
+ }
16
+
17
+ function countEnemies(w: World): number {
18
+ let n = 0;
19
+ for (const [, tag] of w.query(Tag)) if (tag.name === 'enemy') n++;
20
+ return n;
21
+ }
22
+
23
+ const move = (dir: [number, number], seq = 0): Command => ({
24
+ kind: 'command',
25
+ seq,
26
+ source: 'local',
27
+ tick: 0,
28
+ type: 'move',
29
+ payload: { dir },
30
+ });
31
+
32
+ describe('top-down arena (headless, data + scripts only)', () => {
33
+ it('scene validates and spawns the arena (walls + player)', () => {
34
+ const w = build();
35
+ expect(w.exists('player')).toBe(true);
36
+ expect(w.exists('wall-n')).toBe(true);
37
+ expect(w.get('player', Health)?.hp).toBe(10);
38
+ expect(w.commandTypes()).toEqual(['move']);
39
+ });
40
+
41
+ it('spawner produces enemies over time', () => {
42
+ const w = build();
43
+ w.stepN(ARENA.spawnInterval * 3 + 1);
44
+ expect(countEnemies(w)).toBeGreaterThanOrEqual(3);
45
+ });
46
+
47
+ it('move commands drive the player and walls stop it', () => {
48
+ const w = build();
49
+ // push east hard for a while; the east wall is at x=10, so the player is bounded.
50
+ expect(w.submitCommand(move([1, 0])).accepted).toBe(true);
51
+ w.stepN(60);
52
+ const x = w.get('player', Transform)?.pos[0] ?? 0;
53
+ expect(x).toBeGreaterThan(2); // moved east
54
+ expect(x).toBeLessThan(ARENA.size / 2); // stopped by the wall
55
+ });
56
+
57
+ it('rejects a malformed move payload with a pointer into the payload', () => {
58
+ const w = build();
59
+ const r = w.submitCommand({ ...move([1, 0]), payload: { dir: 'east' } });
60
+ expect(r.accepted).toBe(false);
61
+ expect(r.reason).toContain('/dir');
62
+ const outOfRange = w.submitCommand({ ...move([1, 0]), payload: { dir: [5, 0] } });
63
+ expect(outOfRange.accepted).toBe(false);
64
+ });
65
+
66
+ it('enemies chase the player and damage it on contact', () => {
67
+ const w = build();
68
+ w.stepN(120); // enough for enemies to reach the stationary player at center
69
+ const hp = w.get('player', Health)?.hp ?? 10;
70
+ expect(hp).toBeLessThan(10); // took damage from at least one enemy
71
+ });
72
+
73
+ it('is deterministic (full game loop hash + events)', () => {
74
+ const a = runHeadless(build, { ticks: 90 });
75
+ const b = runHeadless(build, { ticks: 90 });
76
+ expect(a.finalHash).toBe(b.finalHash);
77
+ expect(a.events.length).toBe(b.events.length);
78
+ });
79
+
80
+ it('matches the pinned hash (a broad-phase or ordering change must not move it)', () => {
81
+ // Pinned after continuation hash v2 and the registry-spawn migration; the kinematics grid broad phase is required to
82
+ // reproduce the brute-force resolution sequence bit for bit.
83
+ expect(runHeadless(build, { ticks: 90 }).finalHash).toBe(
84
+ 'sha256:471d0a560278ddde2286f11bb03b955c319f9b2ba0656dfb80a0d546aad69e4d',
85
+ );
86
+ });
87
+ });
@@ -0,0 +1,22 @@
1
+ /// <reference types="node" />
2
+ import { join } from 'node:path';
3
+ import { runReplayFile } from '@bendyline/molen-tooling';
4
+ import { describe, expect, it } from 'vitest';
5
+
6
+ // A committed replay fixture is the long-lived half of the determinism guarantee. The pinned hash
7
+ // in headless.test.ts freezes one run of the current build; this freezes a *recorded command log*
8
+ // plus per-tick reference hashes, so when behaviour drifts the harness reports the first tick that
9
+ // diverged instead of "the hash moved". It also distinguishes a non-deterministic build from an
10
+ // intentional behaviour change — refresh with `molen replay <fixture> --record`.
11
+
12
+ describe('top-down-arena: recorded replay', () => {
13
+ it('reproduces the recorded run tick for tick', async () => {
14
+ const result = await runReplayFile({
15
+ path: join(process.cwd(), 'arena-skirmish.replay.json'),
16
+ });
17
+ expect(result.error).toBeUndefined();
18
+ expect(result.ok, result.report).toBe(true);
19
+ expect(result.actualHash).toBe(result.expectedHash);
20
+ expect(result.firstDivergentTick).toBeUndefined();
21
+ }, 60_000);
22
+ });
@@ -0,0 +1,17 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
+ "lib": ["ES2023", "DOM", "DOM.Iterable"],
7
+ "types": [],
8
+ "strict": true,
9
+ "noUncheckedIndexedAccess": true,
10
+ "verbatimModuleSyntax": true,
11
+ "skipLibCheck": true,
12
+ "forceConsistentCasingInFileNames": true,
13
+ "noEmit": true,
14
+ "resolveJsonModule": true
15
+ },
16
+ "include": ["src", "test"]
17
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "format": "molen/types@1",
3
+ "namespace": "arena",
4
+ "owner": "examples",
5
+ "doc": "Entity vocabulary for the top-down arena. Scenes instantiate these; the spawner script spawns enemies with the same component shape as arena.enemy.",
6
+ "types": {
7
+ "arena.wall": {
8
+ "doc": "Static arena boundary segment. Override collider.halfExtents + renderable.primitive.size per wall.",
9
+ "components": {
10
+ "transform": { "pos": [0, 0, 0], "rot": [0, 0, 0, 1] },
11
+ "collider": {
12
+ "shape": "aabb",
13
+ "halfExtents": [1, 1],
14
+ "layer": 1,
15
+ "mask": 1,
16
+ "isStatic": true
17
+ },
18
+ "renderable": { "kind": "primitive", "ref": "box", "materialRef": "palette:#3a3f4b" }
19
+ }
20
+ },
21
+ "arena.player": {
22
+ "doc": "The player-controlled body: kinematic circle, 10 hp, driven by the move command.",
23
+ "components": {
24
+ "transform": { "pos": [0, 0, 0], "rot": [0, 0, 0, 1] },
25
+ "collider": { "shape": "circle", "radius": 0.8, "layer": 1, "mask": 1 },
26
+ "kinematicBody": { "vel": [0, 0, 0], "slide": true },
27
+ "health": { "hp": 10 },
28
+ "tag": { "name": "player" },
29
+ "renderable": {
30
+ "kind": "primitive",
31
+ "ref": "box",
32
+ "materialRef": "palette:#4ade80",
33
+ "primitive": { "size": [1.5, 1, 1.5] }
34
+ }
35
+ }
36
+ },
37
+ "arena.enemy": {
38
+ "doc": "A chaser: 1 hp kinematic circle that damages the player on contact.",
39
+ "components": {
40
+ "transform": { "pos": [0, 0, 0], "rot": [0, 0, 0, 1] },
41
+ "collider": { "shape": "circle", "radius": 0.6, "layer": 1, "mask": 1 },
42
+ "kinematicBody": { "vel": [0, 0, 0], "slide": true },
43
+ "health": { "hp": 1 },
44
+ "tag": { "name": "enemy" },
45
+ "renderable": {
46
+ "kind": "primitive",
47
+ "ref": "box",
48
+ "materialRef": "palette:#e63946",
49
+ "primitive": { "size": [1.1, 1, 1.1] }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,21 @@
1
+ import { molenScripts } from '@bendyline/molen-client/vite';
2
+ import { defineConfig } from 'vite';
3
+
4
+ export default defineConfig({
5
+ // Relative asset URLs, so one production build plays from any directory (molen.dev/play hosts
6
+ // the samples beneath subdirectories).
7
+ base: './',
8
+ // Scene scripts are authored in TypeScript; strip types when they are read as text.
9
+ plugins: [molenScripts()],
10
+ // Vite gives worker bundles their own plugin pipeline, and the kernel runs in the Worker —
11
+ // without this the Worker would receive unstripped TypeScript.
12
+ worker: { format: 'es', plugins: () => [molenScripts()] },
13
+ build: {
14
+ target: 'es2022',
15
+ // main.ts mounts with a top-level `await`, and the client lazy-loads its WebGPU driver. By
16
+ // default Rollup puts three.js and the client in the entry chunk, so the lazy chunk imports
17
+ // the entry while the entry is still suspended at that `await`: the import never settles and
18
+ // the page stays blank in every browser with a WebGPU adapter. Their own chunk breaks the cycle.
19
+ rollupOptions: { output: { manualChunks: { vendor: ['three', '@bendyline/molen-client'] } } },
20
+ },
21
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/molen-tooling",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -63,16 +63,16 @@
63
63
  "quickhull3d": "3.1.1",
64
64
  "sharp": "0.35.4",
65
65
  "zod": "^4.6.5",
66
- "@bendyline/molen-client": "0.0.1",
67
- "@bendyline/molen-figures": "0.0.1",
68
- "@bendyline/molen-materials": "0.0.1",
69
- "@bendyline/molen-pack": "0.0.1",
70
- "@bendyline/molen-kernel": "0.0.1",
71
- "@bendyline/molen-physics-rapier": "0.0.1",
72
- "@bendyline/molen-schema": "0.0.1",
73
- "@bendyline/molen-terrain": "0.0.1",
74
- "@bendyline/molen-worldgen": "0.0.1",
75
- "@bendyline/molen-worldgen-earth": "0.0.1"
66
+ "@bendyline/molen-client": "0.0.2",
67
+ "@bendyline/molen-figures": "0.0.2",
68
+ "@bendyline/molen-kernel": "0.0.2",
69
+ "@bendyline/molen-materials": "0.0.2",
70
+ "@bendyline/molen-physics-rapier": "0.0.2",
71
+ "@bendyline/molen-pack": "0.0.2",
72
+ "@bendyline/molen-schema": "0.0.2",
73
+ "@bendyline/molen-terrain": "0.0.2",
74
+ "@bendyline/molen-worldgen": "0.0.2",
75
+ "@bendyline/molen-worldgen-earth": "0.0.2"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@biomejs/biome": "^2.5.0",
@@ -84,13 +84,13 @@
84
84
  "three": "0.184.0",
85
85
  "tsdown": "^0.22.2",
86
86
  "typescript": "^6.0.3",
87
- "vitest": "^4.1.8"
87
+ "vitest": "^5.0.1"
88
88
  },
89
89
  "scripts": {
90
- "build": "tsdown && node scripts/build-capture.mjs && node scripts/build-docs.mjs",
90
+ "build": "tsdown && node scripts/build-capture.mjs && node scripts/build-docs.mjs && node scripts/build-templates.mjs",
91
91
  "typecheck": "tsc -p tsconfig.json",
92
92
  "lint": "biome check src",
93
- "test:unit": "vitest run --passWithNoTests --exclude \"test/golden/**\"",
93
+ "test:unit": "vitest run --passWithNoTests --exclude \"test/golden/**\" --exclude \"dist/**\"",
94
94
  "test:golden": "vitest run --config vitest.golden.config.ts"
95
95
  }
96
96
  }