brookmg / prisma2keystone

A simple CLI to generate a starter schema for keystone-6 from a pre-existing prisma schema.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prisma2Keystone

A tool for converting prisma schema to keystone schema typescript

This is a proof of concept. More work is needed

Usage

npx prisma2keystone -f "prisma/model.prisma" -o "output/generated.ts" --enum

Contribution

  • Fork this project
  • Create a new branch with the format
    • feat/{gh_username}/{feat_title} OR
    • fix/{gh_username}/{fix_title}
  • Create a pr to master

About

A simple CLI to generate a starter schema for keystone-6 from a pre-existing prisma schema.


Languages

Language:JavaScript 60.7%Language:TypeScript 39.3%