Lerna project configuration
Lerna's file-based configuration is located in
lerna.json or the
lerna property of
Wherever this configuration is found is considered the "root" of the lerna-managed multi-package repository.
A minimum-viable configuration only needs a
version property; the following examples are equivalent:
Any other properties on this configuration object will be used as defaults for CLI options of all lerna subcommands. That is to say, CLI options always override values found in configuration files (a standard practice for CLI applications).
To focus configuration on a particular subcommand, use the
command subtree. Each subproperty of
command corresponds to a lerna subcommand (
In the example above,
lerna publish will act as if
--loglevel verbose was passed.
All other subcommands will receive the equivalent of
--loglevel success (much much quieter).