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

Switch to ESM, enable TypeScript strict mode #92

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

longnguyen2004
Copy link
Collaborator

@longnguyen2004 longnguyen2004 commented Apr 25, 2024

It's 2024, the ESM ecosystem on Node.js has been stable for a while, and many packages (like p-cancelable) are now ESM only. Let's convert this to ESM also.

Along the way, I also enabled TypeScript strict mode and fixed all the little type errors throughout, along with some refactoring.

FAQ on CommonJS -> ESM conversion: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

Also, if this were to be merged, it'd have to come with a major version bump.

@dank074 dank074 merged commit 2c24971 into Discord-RE:master Apr 26, 2024
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.

2 participants