zod2nx-schema is a tool that converts Zod schemas into Nx executor/generator schema.json files. This makes it easy to define executor options using Zod's type-safe schema validation and automatically generate the JSON schema files that Nx requires.
@push-based/zod2nx-schema- Core CLI tool for converting Zod schemas to Nx schemas@push-based/zod2nx-schema-nx-plugin- Nx plugin that integrates the schema generation into your build process
npm install @push-based/zod2nx-schemazod2nx-schema --schemaModulePath ./src/schema.ts --exportName MySchemaThis will generate a schema.json file based on your Zod schema export.
- 🔒 Type-safe - Define schemas using Zod's powerful type system
- 📦 Zero config - Works out of the box with sensible defaults
- 🎯 Nx integration - Seamlessly integrates with Nx executors
- 📝 Metadata support - Add titles, descriptions, and other metadata to your schemas
See CONTRIBUTING.md for guidelines on how to contribute to this project.