prismicio / prismic-ts-codegen

A Prismic model-to-TypeScript-type generator.
Apache License 2.0
18 stars 6 forks source link

fix: compatibility with `@prismicio/client` v6 #54

Closed angeloashmore closed 1 year ago

angeloashmore commented 1 year ago

Types of changes

Description

This PR restores compatibility with @prismicio/client v6 as a peer dependency.

prismic-ts-codegen v0.1.12 makes use of @prismicio/client v7's enums and types.

This PR replaces enum usage with strings (which remains type-checked). It also inlines @prismicio/client v7 as a dependency which should only be used at build time for types.

Checklist: