cross-package-types

Official

Enforce cross-package TypeScript type flow.

Authorbitovi
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Manage TypeScript types across a three-package monorepo by deriving and propagating Prisma-generated types from @carton/shared to @carton/server and to @carton/client, avoiding duplications and drift.

Core Features & Use Cases

  • Unified type derivation: derive API schemas from Prisma models in shared, then expose type-safe interfaces to server and client without manual synchronization.
  • Derivation patterns: apply .pick(), .omit(), and .extend() to shape input and output schemas for create, update, and query operations.
  • Use Case: when adding a Prisma model or changing schema, regenerate types and ensure client components stay in sync with server APIs.

Quick Start

Update the Prisma schema, run the type generation step, and verify that derived API schemas flow correctly to server and client.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cross-package-types
Download link: https://github.com/bitovi/carton-case-management/archive/main.zip#cross-package-types

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.