mumei-dashboard 0.3.0 → 0.4.1

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 CHANGED
@@ -20,7 +20,7 @@ preview at `http://localhost:5173` during development.
20
20
  ```bash
21
21
  cd dashboard
22
22
  npm install
23
- npm run generate-types # build types from ../schemas/*.json
23
+ npm run schemas # regenerate ../schemas/*.schema.json from src/schemas/*.ts (TypeBox canonical)
24
24
  npm run dev # spawns Fastify (server) + Vite (frontend)
25
25
  ```
26
26
 
@@ -29,14 +29,14 @@ npm run dev # spawns Fastify (server) + Vite (frontend)
29
29
 
30
30
  ## Scripts
31
31
 
32
- | Script | Purpose |
33
- | ------------------------ | ---------------------------------------------- |
34
- | `npm run dev` | Server + Vite, both with watch mode |
35
- | `npm run build` | Produce `dist/` for production |
36
- | `npm run typecheck` | `tsc -b --noEmit` across app + server |
37
- | `npm run generate-types` | Regenerate `src/types/*.ts` from `../schemas/` |
38
- | `npm test` | Vitest |
39
- | `npm run lint` | ESLint, max-warnings 0 |
32
+ | Script | Purpose |
33
+ | ------------------- | ---------------------------------------------------------------------------- |
34
+ | `npm run dev` | Server + Vite, both with watch mode |
35
+ | `npm run build` | Produce `dist/` for production |
36
+ | `npm run typecheck` | `tsc -b --noEmit` across app + server |
37
+ | `npm run schemas` | Regenerate `../schemas/*.schema.json` from TypeBox sources in `src/schemas/` |
38
+ | `npm test` | Vitest |
39
+ | `npm run lint` | Biome `check --error-on-warnings` |
40
40
 
41
41
  ## Architecture
42
42
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Entry point for `npx @mumei/dashboard`. Boots the Fastify server in
2
+ // Entry point for `npx mumei-dashboard`. Boots the Fastify server in
3
3
  // the user's current working directory (which is read as the project
4
4
  // root). The Vite dev server is a separate concern handled by
5
5
  // `npm run dev` from the dashboard repo; the published bin always
@@ -26,7 +26,7 @@ if (!existsSync(builtEntry)) {
26
26
  process.on('SIGTERM', () => child.kill('SIGTERM'))
27
27
  } else {
28
28
  console.error(
29
- '@mumei/dashboard: no built server found at dist/server/index.js. Run `npm run build:server`.',
29
+ 'mumei-dashboard: no built server found at dist/server/index.js. Run `npm run build:server`.',
30
30
  )
31
31
  process.exit(1)
32
32
  }