Skip to content
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

feat: split CJS and ESM outputs more formally #707

Merged
merged 8 commits into from
Aug 14, 2024
Merged

Conversation

JoshuaKGoldberg
Copy link
Owner

PR Checklist

Overview

Previously, all outputs were in one lib/ directory. Now they're in lib/cjs and lib/esm. This way the package & its consumers don't have to deal with ambiguities in imports/requires around file extensions.

💖

Copy link

codecov bot commented Aug 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.33%. Comparing base (ede7cd6) to head (6a4fe86).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #707   +/-   ##
=======================================
  Coverage   80.33%   80.33%           
=======================================
  Files          37       37           
  Lines        1119     1119           
  Branches      145      145           
=======================================
  Hits          899      899           
  Misses        220      220           

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

rules: {
"package-json/sort-collections": "off",
},
},
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Irksome conflict between the ESLint plugin and Prettier. I don't have the bandwidth to investigate right now.

@JoshuaKGoldberg JoshuaKGoldberg merged commit c0ff764 into main Aug 14, 2024
10 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the cjs-too branch August 14, 2024 18:14
Copy link

🎉 This is included in version v0.5.0 🎉

The release is available on:

Cheers! 📦🚀

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.

🚀 Feature: Support CJS consumers of setup script
1 participant