-
-
Notifications
You must be signed in to change notification settings - Fork 590
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(repo): provide typings for both cjs and es builds #1782
base: master
Are you sure you want to change the base?
Conversation
Great addition. Thank you for taking this on (and sorry for the delay in getting eyes on this. I'm in Florida and was hit by two hurricanes in the last few weeks) You're correct. We could merge this as-is, but we'd have no protection against regressions that others might introduce. Ideally, we'd have a |
I went with the first option. 😄 |
Impressive turn-around on that. A few things:
|
The names refer to the I'm testing the 4 possible cases :
That was my first shot, but it wasn't appropriate. I did some builds with I borrowed the idea of linking the package to itself to node-resolve, so if it's not working in CI maybe I did something wrong? I made symbolic links, was this the right choice? |
I read on SO that symlinks have to be relative to the root of the repo (makes sense). Let's try again. |
@Septh FYI, there's a useful little utility for that: https://github.com/brandt/symlinks. |
@shellscape > any chance you could review my latest push, please? |
Rollup Plugin Name:
all (except Beep)
This PR contains:
Are tests included?
Breaking Changes?
If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.
List any relevant issue numbers:
resolves #1541, #1578
supersedes #1744
Description
As soon as you start using
"moduleResolution": "Node16"
(or"NodeNext"
) intsconfig.json
, TypeScript complains that the default export for the plugins in this repo "is not callable" because it "has no call signatures".This PR fixes this by providing each package with distinct typings for the ESM build and the CJS build. It is a follow-up of the work @danielbayley started on #1744.
@shellscape > this passes all the current tests. However, given your past comment here, I think you'd prefer some specific tests to be added... Could you please just put me on the right track for this?