@bct-app/game-model
v0.1.11
Published
Game model package generated from TypeScript declaration emit
Readme
@bct-app/game-model
@bct-app/game-model uses Zod models as source of truth and generates:
- Pure declaration output in
dist/index.d.ts - Runtime Zod entry in
dist/zod.mjs/dist/zod.js - JSON Schema files in
dist/json-schema
Exports:
@bct-app/game-model-> type-only entry (forimport type)@bct-app/game-model/zod-> runtime Zod schemas@bct-app/game-model/json-schema-> schema index map@bct-app/game-model/json-schema/*-> individual JSON schema files
Usage:
import type { TGame } from '@bct-app/game-model';
import { Game } from '@bct-app/game-model/zod';Build
pnpm --filter @bct-app/game-model buildPublish
pnpm --filter @bct-app/game-model pack:check
pnpm --filter @bct-app/game-model prepack
pnpm --filter @bct-app/game-model publish --access publicPublished package includes only dist artifacts and has no runtime dependencies.
