Socket
Socket
Sign inDemoInstall

@lerna/init

Package Overview
Dependencies
1
Maintainers
2
Versions
107
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lerna/init

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


Version published
Weekly downloads
490K
decreased by-0.23%
Maintainers
2
Created
Weekly downloads
 

Changelog

Source

6.6.2 (2023-05-04)

Bug Fixes

  • deps: bump pacote to latest to remove install warning (#3624) (7c34521)
  • remove non-functional schema properties starting with "no" (#3645) (43c2a48)
  • run: only use run-one when not passing multiple scripts (#3620) (9db1572)

Features

  • publish: support npm provenance (9c8bb4e)

Readme

Source

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"
}

Keywords

FAQs

Last updated on 04 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc