@azodik/schemas
v0.0.3
Published
A collection of Zod schemas for the Azodik platform.
Downloads
20
Readme
@azodik/schemas
A collection of Zod schemas for the Azodik platform.
Installation
npm install @azodik/schemas
# or
pnpm add @azodik/schemas
# or
yarn add @azodik/schemasUsage
import { userSchema, tenantSchema } from '@azodik/schemas';
// Use the schemas for validation
const userData = userSchema.parse({
id: '123',
email: '[email protected]',
name: 'John Doe'
});Development
This package uses changesets for versioning and publishing.
Available Scripts
pnpm build- Build the packagepnpm dev- Build in watch modepnpm clean- Clean the dist folderpnpm changeset- Create a new changesetpnpm version- Version packages based on changesetspnpm publish:changeset- Publish packages to npm
Workflow
- Make changes to your code
- Create a changeset:
pnpm changeset- Select the type of change (patch, minor, major)
- Write a description of the changes
- Build the package:
pnpm build - Version and publish:
pnpm version- This will update versions and create git tagspnpm publish:changeset- This will publish to npm
Using in Other Repositories
After publishing, you can use this package in other repositories:
npm install @azodik/schemas@latestLicense
MIT
