-
Notifications
You must be signed in to change notification settings - Fork 58
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
added ESM support #140
added ESM support #140
Conversation
removed lodash dependency for easier use of ESM because of ESM import now ending with *.js needed to replace ts-prune with unimported as it ts-prune does not support esm imports updated dependencies
Awesome, thank you! Unfortunately I won't have a proper computer available for the next couple weeks to check it over and publish the new version. Hope it's okay to wait. |
If the result is the same, then yes let’s drop the lodash dependency.
|
Thanks, ok I think it won't break anything to remove lodash. |
If the tests are passing on your end, please bump the version number in package.json and I'll merge it. With any luck, the GitHub action will work and automatically publish it to NPM so you don't need to wait for me to get back to my laptop. |
updated minor dependencies
Thanks.
But no hurry regarding the release. If you want to check by yourself, I understand that. It's no issue to wait a while. |
Thanks a lot. I will wait then, just in case something goes awry. |
changed package.json provode support for both versions in parallel
@MarkusDeutschmann I managed to get it working so that both CJS and ESM are in the same |
…emoved-lodash-dependency Merge remote-tracking branch 'origin/main' into add-ESM-support-and-removed-lodash-dependency postbuild step now also Windiows compatible
Hi @patik Thanks a lot. From my point of view it you change are fine. The only thing that I changed is the postbuild step. I just moved it from the bash script into the package.json script section. Reason is that I would like to prevent the break of local dev builds on Windows systems. I hope this is ok for you. |
@MarkusDeutschmann Looks good Works well on the Mac too. Thanks again for the PR! |
Closes #141 |
dist-esm
will be created in addition to distlodash
dependency for easier use of ESMts-prune
withunimported
asts-prune
does not supporting ESM imports