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
Type: object

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

version string

The current version of the repository (or independent).

npmClient string

Specify which client to run commands with (change to "yarn" to run commands with yarn. Defaults to "npm".

npmClientArgs string[]

Array of strings that will be passed as arguments to the npmClient.

useWorkspaces boolean

Enable workspaces integration when using Yarn.

workspaces string[]

Array of globs to use a workspace locations.

packages string[]

Array of globs to use a package locations.

ignoreChanges string[]

Array of globs of files to ignore when detecting changed packages.

command object

Options for the CLI commands.

5 nested properties
publish object

Options for the publish command.

2 nested properties
ignoreChanges string | array

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.

message string

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.

bootstrap object

Options for the bootstrap command.

2 nested properties
ignore string | array

An array of globs that won't be bootstrapped when running "lerna bootstrap" command.

npmClientArgs string[]

Array of strings that will be passed as arguments directly to "npm install" during the "lerna bootstrap" command.

init object

Options for the init command.

1 nested properties
exact boolean

Use lerna 1.x behavior of "exact" comparison. It will enforce the exact match for all subsequent executions.

run object

Options for the run command.

1 nested properties
npmClient string

Which npm client should be used when running package scripts.

version object

Options for the version command.

2 nested properties
allowBranch string | array

A whitelist of globs that match git branches where "lerna version" is enabled.

message string

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.