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

Add ESM/CJS double-publishing #28

Merged
merged 8 commits into from
Feb 6, 2024

Conversation

kibertoad
Copy link
Collaborator

Fixes #25

OK, that was easier than expected! I would appreciate it if you could publish a prerelease version of this to npm, so that I could test if it works as expected.

},
"type": "commonjs",
Copy link
Collaborator Author

@kibertoad kibertoad Jan 21, 2024

Choose a reason for hiding this comment

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

I've removed explicit type, because it can actually be either ESM or CommonJS, but we can't default it to ESM, because otherwise tests break, as older TAP does not support CJS format, and older Node versions don't support ESM

@kibertoad
Copy link
Collaborator Author

@brianloveswords How can we proceed with this one?

@brianloveswords
Copy link
Owner

@kibertoad hey sorry for the delay, it's been a good many years since I've published an npm package and I didn't want to mess it up, I started refreshing myself on those instructions before I got distracted.

If you're more seasoned at this, I'm happy to make you a maintainer, but I also don't wanna burden you with that if you're not interested. let me know and I'll either give you the permissions, or I'll get to it later this week!

@kibertoad
Copy link
Collaborator Author

@brianloveswords I can do the publishing if you don't mind giving the access; I'm already maintaining fair amount of packages, what is one more :D

@brianloveswords
Copy link
Owner

@kibertoad fantastic, I've added you on npm and in GitHub. also, I did not realize it's getting this many downloads 🤯
image

@kibertoad
Copy link
Collaborator Author

oh yeah, your library definitely found its niche!

@kibertoad
Copy link
Collaborator Author

@brianloveswords OK, after several iteration this finally works as expected. See https://arethetypeswrong.github.io/?p=buffer-crc32%401.0.0-RC9 report.

@kibertoad
Copy link
Collaborator Author

@brianloveswords After this is approved and merged, we are good to release a new version. Do you think that it's time for a big 1.0.0 release?

@brianloveswords
Copy link
Owner

Do you think that it's time for a big 1.0.0 release?

@kibertoad yeah, I think so! 🎉

@kibertoad kibertoad merged commit 6488b48 into brianloveswords:master Feb 6, 2024
8 checks passed
@kibertoad kibertoad deleted the chore/esm branch February 6, 2024 17:40
@kibertoad
Copy link
Collaborator Author

Awesome! should I release it already?

@brianloveswords
Copy link
Owner

ship it! 🚢

@kibertoad
Copy link
Collaborator Author

@brianloveswords Aaaaaand it's up!

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.

ESM support
2 participants