prisma-next-build

Integrate Prisma Next contract emission into Vite 7 and 8 development.

47.5k|2.5k|Updated Jun 20, 2019
One-click install
npx skills add https://github.com/prisma/prisma --skill prisma-next-build
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-next-build
Source: https://github.com/prisma/prisma/tree/main/skills/prisma-next-build
Command: npx skills add https://github.com/prisma/prisma --skill prisma-next-build

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill eliminates the manual friction of re-emitting contract artifacts during development by integrating Prisma Next directly into your build system.

Core Features & Use Cases

  • Automated Contract Emission: Automatically triggers contract re-emission when you edit your data contract, keeping your type definitions and runtime artifacts in sync.
  • Vite Integration: Provides a seamless plugin for Vite 7 and 8 projects to handle hot-reloading of contract changes.
  • Use Case: When working on a TypeScript project using Prisma Next, use this skill to configure your Vite environment so that every time you save your schema, your application types update instantly without requiring a manual CLI command.

Quick Start

Use the prisma-next-build skill to install and configure the Vite plugin for your current project.

Frequently Asked Questions about prisma-next-build

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Prisma Next contract emission in Vite?

Automating Prisma Next contract emission in Vite requires a plugin that watches contract source files and triggers re-emission on change. This eliminates manual CLI commands by keeping type definitions and runtime artifacts synced automatically during development.

Does the Prisma Next Vite plugin support Vite 7 and 8 environments?

Yes, the Prisma Next Vite plugin supports Vite 7 and 8 environments. It provides seamless integration into your build system to handle hot-reloading of contract changes without manual intervention.

What do I need to configure before automating Prisma Next contract emission?

Automating Prisma Next contract emission requires the @prisma-next/vite-plugin-contract-emit package and a valid prisma-next.config.ts file. You must install and configure these in your TypeScript project before the Vite plugin can function correctly.

Why do I need to re-emit contract artifacts during Prisma Next development?

Re-emitting contract artifacts during Prisma Next development keeps your type definitions and runtime artifacts in sync. Without automated emission, you must manually run CLI commands every time you edit your data contract.

How to set up hot-reloading for Prisma Next schema changes in Vite?

Setting up hot-reloading for Prisma Next schema changes in Vite involves adding the contract emission plugin to your configuration. The plugin watches contract source files and triggers automatic re-emission whenever you save your schema.