Closed GeeWizWow closed 2 years ago
@antongolub A work in progress, tests and docs still need doing, but would appreciate an early review just to make sure you agree on the approach!
Let's keep CLI flags but remove thei defaults
:tada: This PR is included in version 6.5.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
feat: added declarative config support
Adds declarative config support to multi-semantic-release.
Config can be declared in any
multi-release.*
file or undermulti-release
in package.json. The config will be merged with cli flags, with cli flags taking precedence.Fixes #72
Changes
Created a new
lib/getConfigMultiSemrel.js
file, this function accepts cli flags, and merges them with flags read from disk, as well as setting default options. It also supports resolving shareable config's from node_modules or relative paths.Removed setting the default flag values in
cli.js
, this is now done inlib/getConfigMultiSemrel.js
Changed
runner.js
to read config fromlib/getConfigMultiSemrel.js
before attempting to enable debug mode, or logging flags.Todo