6.6.2 • Published 2 years ago

@lerna/init v6.6.2

Weekly downloads
1,065,347
License
MIT
Repository
github
Last release
2 years ago

lerna init

Create a new Lerna repo or upgrade an existing repo to the current version of Lerna

Install lerna for access to the lerna CLI.

Usage

$ lerna init

Create a new Lerna repo or upgrade an existing repo to the current version of Lerna.

Lerna assumes the repo has already been initialized with git init.

When run, this command will:

  1. Add lerna as a devDependency in package.json if it doesn't already exist.
  2. Create a lerna.json config file to store the version number.
  3. Generate a .gitignore file if one doesn't already exist.

Example output on a new git repo:

$ lerna init
lerna info version v2.0.0
lerna info Updating package.json
lerna info Creating lerna.json
lerna success Initialized Lerna files

Options

--independent

$ lerna init --independent

This flag tells Lerna to use independent versioning mode.

--exact

$ lerna init --exact

By default, lerna init will use a caret range when adding or updating the local version of lerna, just like npm install --save-dev lerna.

To retain the lerna 1.x behavior of "exact" comparison, pass this flag. It will configure lerna.json to enforce exact match for all subsequent executions.

{
  "command": {
    "init": {
      "exact": true
    }
  },
  "version": "0.0.0"
}
6.6.2

2 years ago

6.6.1

2 years ago

6.6.0

2 years ago

6.5.0

2 years ago

6.5.0-alpha.1

2 years ago

6.5.0-alpha.0

2 years ago

6.5.0-alpha.2

2 years ago

6.5.1

2 years ago

6.3.1-beta.8

2 years ago

6.3.1-beta.6

2 years ago

6.3.1-beta.5

2 years ago

6.3.1-beta.4

2 years ago

6.1.0

2 years ago

6.3.1-beta.3

2 years ago

6.3.1-beta.2

2 years ago

6.3.1-beta.1

2 years ago

6.3.1-beta.0

2 years ago

6.4.2-beta.0

2 years ago

6.2.0

2 years ago

6.3.0

2 years ago

6.0.3

2 years ago

6.4.1

2 years ago

6.4.0

2 years ago

6.0.0-alpha.0

2 years ago

6.0.0-alpha.1

2 years ago

6.0.0-alpha.2

2 years ago

5.6.2

2 years ago

5.6.1

2 years ago

5.6.0

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

6.0.2

2 years ago

5.5.4

2 years ago

5.5.3

2 years ago

5.5.1

2 years ago

5.5.0

2 years ago

5.5.2

2 years ago

5.1.5

2 years ago

5.1.4

2 years ago

5.1.3

2 years ago

5.3.0

2 years ago

5.1.2

2 years ago

5.4.3

2 years ago

5.4.2

2 years ago

5.4.1

2 years ago

5.4.0

2 years ago

5.2.0

2 years ago

5.1.8

2 years ago

5.1.7

2 years ago

5.1.6

2 years ago

5.1.1

2 years ago

5.1.0

2 years ago

5.0.0-alpha.2

3 years ago

5.0.0-alpha.1

3 years ago

5.0.0-alpha.0

3 years ago

5.0.0

3 years ago

5.1.0-alpha.0

2 years ago

4.0.0

4 years ago

3.21.0

5 years ago

3.18.5

5 years ago

3.18.0

5 years ago

3.16.5

5 years ago

3.16.0

5 years ago

3.15.0

5 years ago

3.14.2

5 years ago

3.14.0

6 years ago

3.13.3

6 years ago

3.13.1

6 years ago

3.13.0

6 years ago

3.12.0

6 years ago

3.11.0

6 years ago

3.10.6

6 years ago

3.10.0

6 years ago

3.8.5

6 years ago

3.8.1

6 years ago

3.7.2

6 years ago

3.7.1

6 years ago

3.7.0

6 years ago

3.6.0

6 years ago

3.5.0

6 years ago

3.3.0

6 years ago

3.1.3

6 years ago

3.1.2

6 years ago

3.1.0

6 years ago

3.0.6

6 years ago

3.0.5

6 years ago

3.0.0

6 years ago

3.0.0-rc.0

6 years ago

3.0.0-beta.21

7 years ago

3.0.0-beta.20

7 years ago

3.0.0-beta.19

7 years ago

3.0.0-beta.18

7 years ago

3.0.0-beta.17

7 years ago

3.0.0-beta.15

7 years ago

3.0.0-beta.14

7 years ago

3.0.0-beta.13

7 years ago

3.0.0-beta.12

7 years ago

3.0.0-beta.11

7 years ago

3.0.0-beta.10

7 years ago

3.0.0-beta.9

7 years ago

3.0.0-beta.8

7 years ago

3.0.0-beta.7

7 years ago

3.0.0-beta.4

7 years ago

3.0.0-beta.3

7 years ago

3.0.0-beta.2

7 years ago

3.0.0-beta.1

7 years ago

3.0.0-beta.0

7 years ago