lerna.json
A lerna.json files
| Type | object |
|---|---|
| File match |
lerna.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/lerna-json/latest.json |
| Source | https://www.schemastore.org/lerna.json |
Validate with Lintel
npx @lintel/lintel check
Lerna is a tool used in JavaScript monorepo projects. The lerna.json file is used to configure lerna to to best fit your project.
Properties
The current version of the repository (or independent).
Specify which client to run commands with (change to "yarn" to run commands with yarn. Defaults to "npm".
Array of strings that will be passed as arguments to the npmClient.
Enable workspaces integration when using Yarn.
Array of globs to use a workspace locations.
Array of globs to use a package locations.
Array of globs of files to ignore when detecting changed packages.
Options for the CLI commands.
5 nested properties
Options for the publish command.
2 nested properties
An array of globs that won't be included in "lerna changed/publish". Use this to prevent publishing of a new version unnecessarily for changes, such as fixing a README.md typo.
A custom commit message when performing version updates for publication. See https://github.com/lerna/lerna/tree/master/commands/version#--message-msg for more information.
Options for the bootstrap command.
2 nested properties
An array of globs that won't be bootstrapped when running "lerna bootstrap" command.
Array of strings that will be passed as arguments directly to "npm install" during the "lerna bootstrap" command.
Options for the init command.
1 nested properties
Use lerna 1.x behavior of "exact" comparison. It will enforce the exact match for all subsequent executions.
Options for the run command.
1 nested properties
Which npm client should be used when running package scripts.
Options for the version command.
2 nested properties
A whitelist of globs that match git branches where "lerna version" is enabled.
A custom commit message when performing version updates for publication. See https://github.com/lerna/lerna/tree/master/commands/version#--message-msg for more information.