Skip to content

Conversation

@Belco90
Copy link
Member

@Belco90 Belco90 commented Dec 12, 2025

Checks

Changes

  • Set up a bundler (tsdown)
  • Update package.json fields for CJS and ESM exposed files
  • Set up publint for linting the published bundle
  • Replace CJS imports and exports with ESM equivalents
  • Update type to "module"
  • Move remaining .cjs to ESM format
  • Rename lib/ to src/
  • Adjust types (mirroring eslint-plugin-vitest and using eslint exported types)
  • Use eslint-doc-generator --check within generate-all:check script

Context

Closes #900

There were some necessary changes to make the code
compatible with tsdown bundling:

1. Replace CJS require with ESM import
2. Replace CJS export with ESM default export
3. Type all node-type guards explicitly to avoid
"This is likely not portable. A type annotation is necessary" errors
@Belco90 Belco90 self-assigned this Dec 12, 2025
@codecov
Copy link

codecov bot commented Dec 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.39%. Comparing base (3cc095b) to head (5bc13f0).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1130      +/-   ##
==========================================
- Coverage   97.40%   97.39%   -0.02%     
==========================================
  Files          48       48              
  Lines        5826     5803      -23     
  Branches     1477     1477              
==========================================
- Hits         5675     5652      -23     
  Misses        149      149              
  Partials        2        2              

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

🚀 New features to boost your workflow:
  • 📦 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bundle plugin in ESM format

2 participants