Skip to content

Commit

Permalink
Update the config.js library file to look for release-it.cjs (#751)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirbeagle committed Apr 9, 2021
1 parent aabb178 commit e5cfa9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Out of the box, release-it has sane defaults, and [plenty of options](./config/r
(only) the options to override in a configuration file. This is where release-it looks for configuration:

- `.release-it.json`
- `.release-it.js` (export the configuration object: `module.exports = {}`)
- `.release-it.js` (or `.cjs`; export the configuration object: `module.exports = {}`)
- `.release-it.yaml` (or `.yml`)
- `.release-it.toml`
- `package.json` (in the `release-it` property)
Expand Down
1 change: 1 addition & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const searchPlaces = [
'package.json',
'.release-it.json',
'.release-it.js',
'.release-it.cjs',
'.release-it.yaml',
'.release-it.yml',
'.release-it.toml'
Expand Down

0 comments on commit e5cfa9c

Please sign in to comment.