prismicio / prismic-ts-codegen

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

fix(cli): use the `fields` property when generating types #19

Closed angeloashmore closed 2 years ago

angeloashmore commented 2 years ago

Types of changes

Description

This PR fixes a CLI bug where the fields configuration property was ignored when generating types.

Cause: The fields property was accidentally not passed to the underlying generateTypes() function. Oops!

Fixes: #18

Thanks to @chamois-d-or for reporting this bug!

Checklist:

🐦

github-actions[bot] commented 2 years ago

size-limit report 📦

Path Size
dist/index.js 1.05 MB (0%)
dist/index.cjs 1.06 MB (0%)