Skip to content

build(package): enable validation checks and update tooling#8

Merged
wiyco merged 3 commits into
mainfrom
build/package-validation-and-tooling-updates
Jun 22, 2026
Merged

build(package): enable validation checks and update tooling#8
wiyco merged 3 commits into
mainfrom
build/package-validation-and-tooling-updates

Conversation

@wiyco

@wiyco wiyco commented Jun 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Enable tsdown package validation with publint and Are The Types Wrong checks for the published SVGO plugin package.
  • Update pnpm, workspace dependencies, and pinned pnpm/action-setup workflow references.
  • Migrate the Oxlint configuration toward the recommended correctness category and keep only project-specific rule overrides.
  • Fix newly enabled JSX accessibility findings in the playground UI.

Validation

  • pnpm install --frozen-lockfile
  • pnpm run typecheck
  • pnpm run check
  • pnpm run test
  • pnpm --filter ./packages/svgo-plugin-hoist-stroke-width build

Notes

The package build now runs both [attw] and [publint] through tsdown and reports no issues.

wiyco added 2 commits June 22, 2026 19:14
Install publint and @arethetypeswrong/core so tsdown can validate package exports and type resolution during package builds.

Configure attw for the ESM-only package and make publint warnings fail through strict mode.
Update pnpm, dependency pins, and GitHub Action pins used by the workspace.

Migrate oxlint configuration toward the recommended correctness category and fix the newly enabled JSX accessibility checks.
@wiyco
wiyco marked this pull request as ready for review June 22, 2026 10:35
@github-actions

Copy link
Copy Markdown

Code Metrics Report

Download coverage report: lcov-report

main (eb5b89c) #8 (0132495) +/-
Coverage 100.0% 100.0% 0.0%
Code to Test Ratio 1:1.8 1:1.8 -0.1
Test Execution Time 1s 1s 0s
Details
  |                     | main (eb5b89c) | #8 (0132495) | +/-  |
  |---------------------|----------------|--------------|------|
  | Coverage            |         100.0% |       100.0% | 0.0% |
  |   Files             |             64 |           64 |    0 |
  |   Lines             |           1358 |         1358 |    0 |
  |   Covered           |           1358 |         1358 |    0 |
- | Code to Test Ratio  |          1:1.8 |        1:1.8 | -0.1 |
  |   Code              |           4356 |         4357 |   +1 |
  |   Test              |           8080 |         8080 |    0 |
  | Test Execution Time |             1s |           1s |   0s |

Code coverage of files in pull request scope (100.0% → 100.0%)

Files Coverage +/- Status
apps/playground/src/core/svg-playground/ui/SvgPlayground/panels/PreviewPanel.tsx 100.0% 0.0% modified
apps/playground/src/landing/LandingCatalogItem.tsx 100.0% 0.0% modified

Reported by octocov

@wiyco
wiyco merged commit df85c77 into main Jun 22, 2026
4 checks passed
@wiyco
wiyco deleted the build/package-validation-and-tooling-updates branch June 22, 2026 10:51
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.

1 participant