fix(@deepnote/convert): add dual ESM/CJS support#211
Conversation
📝 WalkthroughWalkthroughPackage.json updated to support dual ESM and CJS outputs. The exports map now explicitly defines types and require entry points. The main field references the CJS output, while a new module field points to ESM. Build scripts were updated to generate both formats via tsdown. Version bumped from 2.1.0 to 2.1.1. 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📜 Recent review detailsConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🔇 Additional comments (3)
✏️ Tip: You can disable this entire section by setting Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #211 +/- ##
=======================================
Coverage 91.57% 91.57%
=======================================
Files 41 41
Lines 2041 2041
Branches 652 652
=======================================
Hits 1869 1869
Misses 172 172 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
@deepnote/convertto support CJS consumers@deepnote/blocks,@deepnote/database-integrations,@deepnote/reactivity)Problem
The package was ESM-only, causing import errors in CommonJS environments:
Solution
.js) and CJS (.cjs) formatsrequirecondition to package exportsmainto CJS entry point for Node.js CJS resolutionmodulefield for bundler ESM resolutionSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.