Licence
MIT
Version
0.1.16
Deps
0
Size
1.3 MB
Vulns
0
Weekly
0
@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 build
Publish
pnpm --filter @bct-app/game-model pack:check
pnpm --filter @bct-app/game-model prepack
pnpm --filter @bct-app/game-model publish --access public
Published package includes only dist artifacts and has no runtime dependencies.