-
Notifications
You must be signed in to change notification settings - Fork 905
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
wrapper.mjs is not included in published @commitlint/config-conventional package #3958
Comments
/cc @dargmuesli do you have time to look into this? |
Mmh, no, but I did anyway. Commit 3423735 removed the wrapper script, so it would be better to tag JounQin / marcalexiei. But most sense would make to share the contents of |
https://unpkg.com/browse/@commitlint/config-conventional@18.6.2/ It's indeed a valid issue. To fix it, @escapedcat we need to create a branch like |
Not sure I can follow. Would this be a fix for the previous v18? Does this work in v19? |
@escapedcat It needs to be fixed on v18 only. |
Is updating to v19 an option? |
Not for those who're not ready for pure ESM yet? It depends on the users like @drewbrend . |
Updating to pure ESM isn't on the table at the moment for us, I'm a maintainer of a large internal library used by many different projects so we have to plan these things carefully. We will get there and upgrade to v19 at that time. We can stay on an older version, this patch upgrade isn't important to us. Dependabot found it and I figured you'd want to fix this so the latest v18 continues to work for everyone. |
Here you go: https://github.com/conventional-changelog/commitlint/tree/release-v18 |
Why this issue is not automatically closed by GitHub with #3966? |
🤷♂️ not sure |
Steps to Reproduce
I have some custom scripting, which accesses one of the
@commitlint/config-conventional
rules to do something with.It gets this by doing:
This works fine in v18.6.0. Dependabot recently opened a PR to upgrade to latest and we started hitting this issue.
Current Behavior
Expected Behavior
Config can be imported and used
Affected packages
Possible Solution
Include
./wrapper.mjs
in thefiles
property of the package.jsonContext
This looks like it was introduced in #3911, which added
wrapper.mjs
, however it is not being included in the built/published package.https://unpkg.com/browse/@commitlint/config-conventional@18.6.2/
commitlint --version
@commitlint/cli@18.6.1 @commitlint/config-conventional@18.6.2
git --version
git version 2.39.2 (Apple Git-143)
node --version
v20.9.0
The text was updated successfully, but these errors were encountered: