-
Notifications
You must be signed in to change notification settings - Fork 40
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
Support ESM format for config file #147
Comments
change this package support cjs extension |
Oops, I have mistook the issue as about "supporting Package type=module environment". My suggestion above isn't that relevant then. I have checked the source code, mjs is not supported as the config is always imported via commit-and-tag-version/lib/configuration.js Lines 19 to 20 in 7ebdacd
I guess this would be a feature request. Off the top of my head, it will need to use dynamic import to load an ESM config and making the code flow async. |
I agree, I think this is a feature request. It would definitely be good to have the ability to use ESM for the config. I believe it would (almost) come for free if we upgraded it to typescript, so I'll tag #29 |
Similar to how other projects handle config files (e.g. commitlint), maybe you can leverage cosmiconfig to handle these (and other) config file formats. |
Sound sensible to me |
I don't know if this is a bug or maybe a future feature: using a config that is in the ESM format leads to errors:
Does the package understand the config in ESM format and if not is it possible to add this as a feature?
The text was updated successfully, but these errors were encountered: