Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom generator #449

Merged
merged 54 commits into from
Nov 13, 2024
Merged

Custom generator #449

merged 54 commits into from
Nov 13, 2024

Conversation

foyarash
Copy link
Collaborator

Title

Migrate the current generator (prisma-json-schema-generator) to a custom generator that overloads the json schema given by prisma-json-schema-generator.

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • Example update
  • Refactoring
  • Hotfix
  • Security patch
  • UI/UX improvement

Issue

#414

Description

This PR creates a custom Prisma generator that overloads the prisma-json-schema-generator JSON schema and creates it in the node_modules. This has 2 benefits:

  • no more DMMF dependency
  • no more schema imports on the app side

Copy link

changeset-bot bot commented Sep 30, 2024

🦋 Changeset detected

Latest commit: 5d78cc8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@premieroctet/next-admin Major
@premieroctet/next-admin-generator-prisma Patch
@premieroctet/next-admin-json-schema Patch
@premieroctet/next-admin-cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@foyarash foyarash force-pushed the feat/generator-custom branch 2 times, most recently from 5a03a7a to bf43640 Compare October 2, 2024 12:33
@foyarash foyarash requested a review from cregourd October 2, 2024 15:22
@foyarash foyarash marked this pull request as ready for review October 2, 2024 15:26
@cregourd cregourd changed the title feat: custom generator Custom generator Nov 12, 2024
@cregourd cregourd merged commit 64737aa into main Nov 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants