@nutzy/schema
v2.0.0
Published
Zod schemas and inferred TypeScript types for Nutzy jobs and companies
Readme
@nutzy/schema
Zod schemas and inferred TypeScript types for Nutzy jobs and companies.
import {
jobSchema,
companySchema,
type JobFrontmatter,
type CompanyFrontmatter,
} from "@nutzy/schema";Updating the schema
- Edit src/index.ts — add/change fields on
jobSchema,companySchema, or their building blocks. - Build locally to type-check:
npm run build - Commit and push your changes to
main. - Bump the version following semver:
npm version patch— bug fix or internal-only changenpm version minor— new optional field (backwards compatible)npm version major— removed/renamed field, or stricter validation (breaking)
- Push the tag — this triggers .github/workflows/publish.yml which publishes to npm via Trusted Publishers (no token needed).
git push --follow-tags
Local development
npm install
npm run buildOutput lands in dist/ (gitignored, npm-published).
Consumers
zod is a peer dependency — installers bring their own:
npm i @nutzy/schema zod