Skip to content

refactor: fix typecheck errors and add script execution to CI #1103

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

Merged
merged 2 commits into from
Dec 15, 2024

Conversation

marcalexiei
Copy link
Contributor

@marcalexiei marcalexiei commented Dec 14, 2024

Part of #1098.

Note

Based upon #1102 (I marked this PR as draft, will rebase and make it ready for review after #1102 is merged).

  • fixed typescript errors
  • added typecheck script to ci.yml checks
  • added typecheck:ci script to ci.yml checks
    I'm not using directly typecheck script because src/pages/[...slug].tsx file requires types from contentlayer/generated which are available only after next build.
    To resolve this issue I created a new typecheck:ci script that runs next build --no-lint before tsc --noEmit
    Let me know if you want that this explanation should be added to CONTRIBUTING.md for future reference.

Copy link

vercel bot commented Dec 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-hook-form-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 15, 2024 7:02am

Copy link
Member

@bluebill1049 bluebill1049 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks again.

@bluebill1049 bluebill1049 merged commit 4b4b39d into react-hook-form:master Dec 15, 2024
5 checks passed
@marcalexiei marcalexiei deleted the typecheck branch December 15, 2024 10:54
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