Update the config.js library file to look for release-it.cjs #751
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there. This is a super-simple pull request that adds to the config.js library file to look for
release-it.cjs
in addition torelease-it.js
as a possible configuration file.In our company we use
release-it
to help automate versioning and packaging a bunch of different repositories. Most of the repos use the same release configuration, and as part of a general consolidation effort we'd like to look at a single configuration with the ability to override it if necessary.We trying out a new mechanism where we are storing the
release-it
configuration in a.js
file and putting in a little bit of logic to make overrides dead simple.A typical configuration file in one of the repos might look something like this:
Neat! Our only problem? Most of our repos are set up as modules, so in order to keep with using CommonJS for
release-it
configurations we have to use.cjs
as the file extension. Hence this PR. ;-) Thecosmiconfig
package that theconfig.js
file is using seems to follow a similar approach.Thank you for your consideration, and thank you for all of the hard work you've put into
release-it
! We love it!