Skip to content

test: validate published package contract - #6

Merged
okyrychenko-dev merged 1 commit into
mainfrom
test/validate-published-package
Sep 16, 2026
Merged

okyrychenko-dev merged 1 commit into
mainfrom
test/validate-published-package

Conversation

@okyrychenko-dev

Copy link
Copy Markdown
Owner

Summary

Add automated validation for the package consumers actually install.

Changes

  • add @arethetypeswrong/cli and publint
  • add format-specific ESM and CommonJS declaration exports
  • add a packed-artifact validation script covering:
    • published file contents
    • export targets
    • runtime and peer dependencies
    • required React peer metadata
    • sideEffects: false
    • "use client" preservation
    • ESM and CommonJS loading
    • NodeNext TypeScript consumers
  • add a public API type-consumer fixture
  • include validation scripts in lint and formatting checks
  • run package:check in CI and through release:check
  • update the pnpm lockfile

@codecov

codecov Bot commented Sep 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@okyrychenko-dev
okyrychenko-dev merged commit 50ec1fd into main Sep 16, 2026
3 checks passed
@okyrychenko-dev
okyrychenko-dev deleted the test/validate-published-package branch September 16, 2026 20:37
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