Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.58 KB

File metadata and controls

45 lines (28 loc) · 1.58 KB

Zod to Nx Schema

Convert Zod schemas to Nx executor/generator schema.json files


npm version license


Overview

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.

Packages

Quick Start

Installation

npm install @push-based/zod2nx-schema

Usage

zod2nx-schema --schemaModulePath ./src/schema.ts --exportName MySchema

This will generate a schema.json file based on your Zod schema export.

Features

  • 🔒 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

Contributing

See CONTRIBUTING.md for guidelines on how to contribute to this project.