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

fix: esm exports by building with tsup #252

Merged
merged 3 commits into from
Sep 11, 2024
Merged

fix: esm exports by building with tsup #252

merged 3 commits into from
Sep 11, 2024

Conversation

boopathi
Copy link
Member

@boopathi boopathi commented Sep 11, 2024

Fix #250

Use tsup with bundle:false to build all files in src to dist/*.mjs for esm, and dist/*.js for commonjs.

Add a check-exports script that calls https://www.npmjs.com/package/@arethetypeswrong/cli to verify that commonjs and esm exports are valid.

Remove --ignore-optional during yarn install as an essential package of rollup was not installed and the build failed. Check the failed CI steps from the commits in this PR.

@boopathi
Copy link
Member Author

👍

@boopathi boopathi merged commit 93258d4 into main Sep 11, 2024
13 checks passed
@boopathi boopathi deleted the tsup-1 branch September 11, 2024 16:29
@boopathi boopathi mentioned this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build for esm uses cjs instead of esm.
2 participants