-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: move types condition to the front #26630
Conversation
7ff57d0
to
b1c3909
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not know about this ordering. I wonder if we can link for this.
Can you add a CHANGELOG entry? https://github.com/cypress-io/cypress/actions/runs/4840113756/jobs/8625561864?pr=26630#step:4:18. This should guide you - we lint the changelog, too.
b1c3909
to
f439dc9
Compare
This is mentioned here:
Done. |
types
condition to the front
@Andarist Can you update the commit body to match our Issue template? It's causing the Semantic Pull Request step in CI to fail |
@jordanpowell88 I think i've corrected this as needed right now. Offtopic... I'm Changesets maintainer and it seems that this fairly popular project could help you to manage CHANGELOG generation and stuff like that. Might not be a perfect fit right now if you have custom needs but a lot can probably be scripted/automated around it and you could open feature requests for missing things. You probably run into a lot of such merge conflicts and stuff when editing |
Thanks @Andarist! Yeah we currently manage our |
Seeing some unrelated flake, going to try fix it here: 9d6ba66 |
Still hitting CI weirdness... debugging. I am sure it's unrelated to the changes here. I don't know why it's flaking. |
executing for example:
|
It seems that you depend on https://github.com/keithamus/sort-package-json through https://github.com/kuceb/eslint-plugin-json-format . I can file an issue there and maybe even fix this but it might take a moment. What about disabling this ESLint rule temporarily? |
Ok, it turned out that actually your own scripts were at "fault" here so I managed to fix it without any delays: #26743 |
|
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
I moved
types
condition to the front.package.json#exports
are order-sensitive - they are always matched from the top to the bottom. When a match is found then it should be used and no further matching should occur.Right now, the current setup works in TypeScript but it's considered a bug and it should not be relied upon, see the thread and the comment here. For that reason, I would like to fix all popular packages that misconfigured their
exports
this way so the bug can be fixed in TypeScript.🐛 Used fallback condition
) but this package still won't be completely correct: arethetypeswrong.