Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@lerna/create

lerna4mMIT8.1.9TypeScript support: included

Create a new lerna-managed package

lerna, command

readme

Important note: this project recently changed stewardship to Nrwl!

Your favorite tool is alive and well: https://blog.nrwl.io/lerna-5-1-new-website-new-guides-new-lerna-example-repo-distributed-caching-support-and-speed-64d66410bec7


<picture> <source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/900523/173044458-fd0b57f6-6374-4265-98b5-eb8f55fe1fb3.svg"> Lerna </picture>

Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.


MIT Licensed NPM Status CI Status Semantic Release Commitizen friendly Discord



A few links to help you get started:


Engage with the Core Team and the Community

Want to help?

If you want to file a bug or submit a PR, read up on our guidelines for contributing


Core Team

Victor Savkin James Henry Austin Fahsl
Victor Savkin James Henry Austin Fahsl
vsavkin JamesHenry fahslaj
Benjamin Cabanes Juri Strumpflohner
Benjamin Cabanes Juri Strumpflohner
bcabanes juristr

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Jeff Cross

💼

Daniel Stockman

💻 📖 🚇 🚧

Jamie Kyle

💻 📖 🚇 🚧

Henry Zhu

💻 📖 🚧

Bo Borgerson

💻 🚧

Sebastian

💻

Joscha Feth

💻 🐛

Norbert Csaba Herczeg

💻

Douglas Wade

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

8.1.9 (2024-10-31)

Bug Fixes

8.1.8 (2024-08-05)

Bug Fixes

  • publish: upgrade @npmcli/arborist to 7.5.4 (#4058) (89de0eb)

8.1.7 (2024-07-21)

Bug Fixes

8.1.6 (2024-07-05)

Bug Fixes

8.1.5 (2024-06-24)

Bug Fixes

  • update npm utility dependencies and related packages (#4033) (bd1c2d8)

8.1.4 (2024-06-09)

Note: Version bump only for package @lerna/create

8.1.3 (2024-05-13)

Bug Fixes

8.1.2 (2024-02-05)

Note: Version bump only for package @lerna/create

8.1.1 (2024-02-05)

Note: Version bump only for package @lerna/create

8.1.0 (2024-02-05)

Features

8.0.2 (2024-01-05)

Note: Version bump only for package @lerna/create

8.0.1 (2023-12-15)

Bug Fixes

  • update node-gyp usage to v10 to resolve npm warning (#3919) (f5fdcba)

8.0.0 (2023-11-23)

Note: Version bump only for package @lerna/create

8.0.0-alpha.0 (2023-11-22)

Note: Version bump only for package @lerna/create

7.4.2 (2023-10-27)

Note: Version bump only for package @lerna/create

7.4.1 (2023-10-18)

Note: Version bump only for package @lerna/create

7.4.0 (2023-10-17)

Note: Version bump only for package @lerna/create

7.3.1 (2023-10-10)

Bug Fixes

  • core: update package engines.node to correctly include only >=16 (#3861) (0674555)

7.3.0 (2023-09-13)

Bug Fixes

  • update make-dir to 4.0.0 and npm audit fix (#3828) (373b8bc)

7.2.0 (2023-08-29)

Features

  • init: detect existing package manager and auto-install packages (#3805) (2204c34)

7.1.5 (2023-08-09)

Bug Fixes

  • create: declare dependencies of @lerna/create (#3799) (b5dcbf4)

7.1.4 (2023-07-15)

Note: Version bump only for package @lerna/create

7.1.3 (2023-07-12)

Bug Fixes

  • changelog entries for 7.1.2 (f61b087)

7.1.2 (2023-07-12)

Note: Version bump only for package @lerna/create

7.1.1 (2023-06-28)

Bug Fixes

  • schema: add missing ref to changelogEntryAdditionalMarkdown (b41afab)

7.1.0 (2023-06-25)

Note: Version bump only for package @lerna/create

7.0.2 (2023-06-15)

Note: Version bump only for package @lerna/create

7.0.1 (2023-06-13)

Note: Version bump only for package @lerna/create

7.0.0 (2023-06-08)

Bug Fixes

7.0.0-alpha.8 (2023-06-07)

Bug Fixes

7.0.0-alpha.7 (2023-06-05)

Bug Fixes

7.0.0-alpha.6 (2023-06-02)

Bug Fixes

7.0.0-alpha.5 (2023-06-01)

Bug Fixes

  • migration building/publishing issues (27bf800)
  • publish: use correct version in log messages (#3702) (4be9188)

7.0.0-alpha.4 (2023-06-01)

Bug Fixes

  • migration building/publishing issues (27bf800)
  • publish: use correct version in log messages (#3702) (4be9188)

7.0.0-alpha.3 (2023-05-31)

Bug Fixes

  • migration building/publishing issues (27bf800)

7.0.0-alpha.2 (2023-05-31)

Note: Version bump only for package @lerna/create

7.0.0-alpha.1 (2023-05-31)

Note: Version bump only for package @lerna/create

7.0.0-alpha.0 (2023-05-10)

Note: Version bump only for package @lerna/create

6.6.2 (2023-05-04)

Bug Fixes

  • deps: bump pacote to latest to remove install warning (#3624) (7c34521)

6.6.1 (2023-03-24)

Note: Version bump only for package @lerna/create

6.6.0 (2023-03-23)

Note: Version bump only for package @lerna/create

6.5.1 (2023-02-14)

Note: Version bump only for package @lerna/create

6.5.0 (2023-02-13)

Bug Fixes

  • create: normalize quotes and indents in generated test and lib files (#3529) (ad39fe2)

6.4.1 (2023-01-12)

Note: Version bump only for package @lerna/create

6.4.0 (2023-01-05)

Features

  • create: support relative path from root as lerna create location (#3478) (82825ce)

6.3.0 (2022-12-26)

Note: Version bump only for package @lerna/create

6.2.0 (2022-12-13)

Note: Version bump only for package @lerna/create

6.1.0 (2022-11-29)

Note: Version bump only for package @lerna/create

6.0.3 (2022-11-07)

Note: Version bump only for package @lerna/create

6.0.2 (2022-11-02)

Note: Version bump only for package @lerna/create

6.0.1 (2022-10-14)

Note: Version bump only for package @lerna/create

6.0.0 (2022-10-12)

Note: Version bump only for package @lerna/create

6.0.0-alpha.2 (2022-10-12)

Note: Version bump only for package @lerna/create

6.0.0-alpha.1 (2022-10-09)

6.0.0-alpha.0 (2022-10-07)

Note: Version bump only for package @lerna/create

5.6.2 (2022-10-09)

Bug Fixes

5.6.1 (2022-09-30)

Note: Version bump only for package @lerna/create

5.6.0 (2022-09-29)

Note: Version bump only for package @lerna/create

5.5.4 (2022-09-28)

Note: Version bump only for package @lerna/create

5.5.3 (2022-09-28)

Note: Version bump only for package @lerna/create

5.5.2 (2022-09-20)

Note: Version bump only for package @lerna/create

5.5.1 (2022-09-09)

Note: Version bump only for package @lerna/create

5.5.0 (2022-08-31)

Note: Version bump only for package @lerna/create

5.4.3 (2022-08-16)

Note: Version bump only for package @lerna/create

5.4.2 (2022-08-14)

Note: Version bump only for package @lerna/create

5.4.1 (2022-08-12)

Note: Version bump only for package @lerna/create

5.4.0 (2022-08-08)

Bug Fixes

  • create: default test script no longer errors (#3266) (dfd30fa)

5.3.0 (2022-07-27)

Note: Version bump only for package @lerna/create

5.2.0 (2022-07-22)

Note: Version bump only for package @lerna/create

5.1.8 (2022-07-07)

Note: Version bump only for package @lerna/create

5.1.7 (2022-07-06)

Note: Version bump only for package @lerna/create

5.1.6 (2022-06-24)

Note: Version bump only for package @lerna/create

5.1.5 (2022-06-24)

Note: Version bump only for package @lerna/create

5.1.4 (2022-06-15)

Note: Version bump only for package @lerna/create

5.1.3 (2022-06-15)

Note: Version bump only for package @lerna/create

5.1.2 (2022-06-13)

Note: Version bump only for package @lerna/create

5.1.1 (2022-06-09)

Bug Fixes

  • allow maintenance LTS node 14 engines starting at 14.15.0 (#3161) (72305e4)

5.1.0 (2022-06-07)

Note: Version bump only for package @lerna/create

5.1.0-alpha.0 (2022-05-25)

Note: Version bump only for package @lerna/create

5.0.0 (2022-05-24)

Note: Version bump only for package @lerna/create

4.0.0 (2021-02-10)

Bug Fixes

  • create: Use main as default Github branch (1a951e9)

Features

  • deps: Bump dependencies (affed1c)
  • Consume named exports of sibling modules (63499e3)
  • deps: @evocateur/pacote -> pacote@^11.1.13 (99b4217)
  • deps: camelcase -> yargs-parser/camelCase (d966e8b)
  • deps: execa@^4.1.0 (9051dca)
  • deps: fs-extra@^9.0.1 (2f6f4e0)
  • deps: globby@^11.0.1 (6cb5bbe)
  • deps: init-package-json@^2.0.1 (4042e8e)
  • deps: npm-package-arg@^8.1.0 (12c8923)
  • deps: p-reduce@^2.1.0 (fd4289a)
  • deps: pify@^5.0.0 (6b34452)
  • deps: semver@^7.3.2 (003ad66)
  • deps: slash@^3.0.0 (5dec383)
  • deps: whatwg-url@^8.4.0 (5dfb7f0)
  • Drop support for Node v6.x & v8.x (ff4bb4d)

BREAKING CHANGES

  • Node v6.x & v8.x are no longer supported. Please upgrade to the latest LTS release.

Here's the gnarly one-liner I used to make these changes:

npx lerna exec --concurrency 1 --stream -- 'json -I -f package.json -e '"'"'this.engines=this.engines||{};this.engines.node=">= 10.18.0"'"'"

(requires npm i -g json beforehand)

3.22.0 (2020-05-24)

Bug Fixes

  • create: Use correct variable name in generated CLI output (#2547) (a1fd622)

3.21.0 (2020-05-13)

Note: Version bump only for package @lerna/create

3.18.5 (2019-11-20)

Note: Version bump only for package @lerna/create

3.18.0 (2019-10-15)

Note: Version bump only for package @lerna/create

3.16.5 (2019-10-07)

Note: Version bump only for package @lerna/create

3.16.0 (2019-07-18)

Bug Fixes

  • deps: Bump @evocateur/pacote (03e4797)
  • deps: Update forked npm libs (4d67426)

Features

3.15.0 (2019-06-09)

Bug Fixes

  • deps: Consume forked npm libs (bdd4fa1)

3.14.2 (2019-06-09)

Note: Version bump only for package @lerna/create

3.14.0 (2019-05-14)

Note: Version bump only for package @lerna/create

3.13.3 (2019-04-17)

Note: Version bump only for package @lerna/create

3.13.1 (2019-02-26)

Bug Fixes

3.13.0 (2019-02-15)

Features

  • meta: Add repository.directory field to package.json (aec5023)
  • meta: Normalize package.json homepage field (abeb4dc)

3.12.0 (2019-02-14)

Note: Version bump only for package @lerna/create

3.11.0 (2019-02-08)

Bug Fixes

  • create: Bump camelcase (e58a1d0)
  • deps: Explicit npm-package-arg ^6.1.0 (4b20791)
  • deps: Explicit pacote ^9.4.1 (44d05bf)
  • deps: Remove unused libnpm (replaced by direct sub-packages) (1caeb28)

3.10.6 (2019-01-19)

Note: Version bump only for package @lerna/create

3.10.0 (2019-01-08)

Note: Version bump only for package @lerna/create

3.8.5 (2019-01-05)

Note: Version bump only for package @lerna/create

3.8.1 (2018-12-31)

Note: Version bump only for package @lerna/create

3.7.2 (2018-12-21)

Note: Version bump only for package @lerna/create

3.7.1 (2018-12-20)

Note: Version bump only for package @lerna/create

3.7.0 (2018-12-19)

Bug Fixes

  • create: Pass options snapshot to pacote.manifest() (6116680)

3.6.0 (2018-12-07)

Features

  • Migrate existing usage to libnpm (0d3a786), closes #1767
  • create: Migrate npm info subprocess to libnpm.manifest (65a1d1b)

3.5.0 (2018-11-27)

Bug Fixes

3.4.1 (2018-10-04)

Note: Version bump only for package @lerna/create

3.3.1 (2018-09-11)

Bug Fixes

  • create: Upgrade whatwg-url to ^7.0.0 (00842d6)

3.3.0 (2018-09-06)

Features

  • deps: Upgrade fs-extra to ^7.0.0 (042b1a3)

3.1.3 (2018-08-21)

Note: Version bump only for package @lerna/create

3.1.2 (2018-08-20)

Note: Version bump only for package @lerna/create

3.1.0 (2018-08-17)

Note: Version bump only for package @lerna/create

3.0.6 (2018-08-16)

Bug Fixes

  • create: Use whatwg-url instead of node 8.x-dependent URL class (8701b79)

3.0.5 (2018-08-15)

Bug Fixes

  • options: Provide -y alias for --yes (3ea460c)

3.0.0 (2018-08-10)

Bug Fixes

  • create: Use filename without scope when generating imports from test file (acfd48b)

3.0.0-rc.0 (2018-07-27)

Features

3.0.0-beta.21 (2018-05-12)

Note: Version bump only for package @lerna/create

3.0.0-beta.20 (2018-05-07)

Note: Version bump only for package @lerna/create

3.0.0-beta.19 (2018-05-03)

Note: Version bump only for package @lerna/create

3.0.0-beta.18 (2018-04-24)

Note: Version bump only for package @lerna/create

3.0.0-beta.17 (2018-04-13)

Note: Version bump only for package @lerna/create

3.0.0-beta.15 (2018-04-09)

Note: Version bump only for package @lerna/create

3.0.0-beta.14 (2018-04-03)

Bug Fixes

  • create: Actually publish the module data helper (4775cc4)

3.0.0-beta.13 (2018-03-31)

Features

  • Enable progress bars only when necessary (b766c83)

3.0.0-beta.12 (2018-03-30)

Bug Fixes

  • create: Silently ignore missing builtin npmrc (1523520), closes #1353

Features

  • package: Add Map-like get/set methods, remove raw json getter (707d1f0)
  • project: Merge package and packageJson into manifest (9a47ff7)

BREAKING CHANGES

  • package: The Package class no longer provides direct access to the JSON object used to construct the instance. Map-like get()/set(val) methods are available to modify the internal representation.

3.0.0-beta.11 (2018-03-29)

Note: Version bump only for package @lerna/create

3.0.0-beta.10 (2018-03-27)

Features

  • commands: Delay require of command instantiation (a1284f3)

BREAKING CHANGES

  • commands: The default export of command packages is now a factory, not the subclass (which is now a named export).

3.0.0-beta.9 (2018-03-24)

Features

  • command: Rename this.repository -> this.project (43e98a0)

3.0.0-beta.8 (2018-03-22)

Bug Fixes

  • create: Skip repository property when git remote is missing (98c8be6)

Features

  • utils: Add "vendored" npm-conf (9c24a25)

3.0.0-beta.7 (2018-03-20)

Note: Version bump only for package @lerna/create

3.0.0-beta.4 (2018-03-19)

Features