prismicio / prismic-ts-codegen

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

fix(cli): config schema to support `clientIntegration.includeCreateClientInterface` option #22

Closed angeloashmore closed 2 years ago

angeloashmore commented 2 years ago

Types of changes

Description

This PR fixes a bug in the CLI's configuration schema when using the clientIntegration.includeCreateClientInterface option.

Before this PR, the option would not pass validation if provided, even if it was the correct type.

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%)
codecov-commenter commented 2 years ago

Codecov Report

Merging #22 (f7fb4bd) into main (d3365fe) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #22   +/-   ##
=======================================
  Coverage   95.31%   95.31%           
=======================================
  Files          20       20           
  Lines         320      320           
  Branches       67       67           
=======================================
  Hits          305      305           
  Misses          2        2           
  Partials       13       13           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d3365fe...f7fb4bd. Read the comment docs.