Skip to content

refactor: Zod-based config loader #998

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

fabiovincenzi
Copy link
Contributor

@fabiovincenzi fabiovincenzi commented Apr 30, 2025

Replace JSON-Schema with Zod for config validation and default injection
Add typed config export, loadConfig(), validate() and setConfigFile()
Update index.ts to use the new loader and pass the validated config.

Copy link

netlify bot commented Apr 30, 2025

Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Name Link
🔨 Latest commit fa83356
🔍 Latest deploy log https://app.netlify.com/projects/endearing-brigadeiros-63f9d0/deploys/682c9c978a3f2100088e4f66

@fabiovincenzi fabiovincenzi changed the title Config refactor: Zod-based config loader Apr 30, 2025
@fabiovincenzi fabiovincenzi linked an issue Apr 30, 2025 that may be closed by this pull request
Copy link

codecov bot commented Apr 30, 2025

Codecov Report

Attention: Patch coverage is 80.76923% with 5 lines in your changes missing coverage. Please review.

Project coverage is 48.08%. Comparing base (fc6f166) to head (fa83356).

Files with missing lines Patch % Lines
src/config/file.ts 50.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #998      +/-   ##
==========================================
- Coverage   48.51%   48.08%   -0.44%     
==========================================
  Files          51       52       +1     
  Lines        2092     2111      +19     
  Branches      241      241              
==========================================
  Hits         1015     1015              
- Misses       1040     1052      +12     
- Partials       37       44       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Refactor]: Improve configuration loading
2 participants