-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Use tsc and target ESM only #55
Conversation
.d.ts are still caught by VSCode and others
I do like the notion of this PR seeing how much less setup the build step has. It's way cleaner in many ways than what I currently have. However, before I can merge this i'll need to try and publish a beta version on NPM and double check against https://arethetypeswrong.github.io/?p=is-what If the types are correct then I'd be happy to implement this PR and major upgrade is-what to require node v16. PS: a reason that I love having the dist folder in the git repo for small util packages like these is that it's really clear to see the exact changes that a build step change brings. That's the reason, and I believe another reason was for DENO, but it's been so long I can't remember fully. |
Ideally you wouldn't have to care at all! 🤣 I think that GitHub Actions Artifacts are great for this. You can and open in Codespaces in about 20s 😉 But I do understand that you like co-locating build and source code. A good compromise might be the Artifact thing or some kind of "bundle size checker" or similar? |
@mesqueeb You can use Looks good! 👍 Targetting ESM only means Node.js v12+. Node.js LTS is 16 which Ends in 3 months and 1 week (11 Sep 2023) https://endoflife.date/nodejs |
* Create all files * Split everything into its own file * Use those individual files in index.ts * prettier * Add imports that I forgot 🤣 * Use explicit .js suffix for compat with #55
Closing in favor of stacking a PR on top of #74 |
This is a BREAKING CHANGE and would necessitate a version bump.
This PR would...