prismicio / prismic-react

React components and hooks to fetch and present Prismic content
https://prismic.io/docs/technologies/homepage-reactjs
Apache License 2.0
153 stars 40 forks source link

fix: properly resolve types when using TypeScript's latest module resolution strategy #182

Closed angeloashmore closed 11 months ago

angeloashmore commented 11 months ago

Types of changes

Description

This PR fixes the bug described in https://github.com/prismicio/prismic-typescript-template/pull/27

Checklist:

github-actions[bot] commented 11 months ago

size-limit report 📦

Path Size
./dist/index.cjs 7.94 KB (+12.19% 🔺)
./dist/index.js 5.95 KB (+27.66% 🔺)
./dist/react-server.cjs 7.14 KB (+13.87% 🔺)
./dist/react-server.js 5.48 KB (+29.97% 🔺)
codecov-commenter commented 11 months ago

Codecov Report

Merging #182 (ef110a7) into master (436ebd9) will increase coverage by 0.12%. The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master     #182      +/-   ##
==========================================
+ Coverage   99.44%   99.56%   +0.12%     
==========================================
  Files          21       20       -1     
  Lines        2531     2540       +9     
  Branches      129      129              
==========================================
+ Hits         2517     2529      +12     
+ Misses         14       11       -3     
Impacted Files Coverage Δ
src/index.ts 100.00% <ø> (ø)
src/PrismicImage.tsx 100.00% <100.00%> (ø)
src/PrismicText.tsx 100.00% <100.00%> (ø)
src/PrismicToolbar.tsx 100.00% <100.00%> (ø)
src/SliceZone.tsx 99.09% <100.00%> (+<0.01%) :arrow_up:
src/react-server/PrismicLink.tsx 100.00% <100.00%> (ø)
src/react-server/PrismicRichText.tsx 99.29% <100.00%> (+<0.01%) :arrow_up: