@lerna/create
Create a new lerna-managed package
Usage
lerna create <name> [loc]
Create a new lerna-managed package
Positionals:
name The package name (including scope), which must be locally unique _and_
publicly available [string] [required]
loc A custom package location, defaulting to the first configured package
location [string]
Command Options:
--access When using a scope, set publishConfig.access value
[choices: "public", "restricted"] [default: public]
--bin Package has an executable. Customize with --bin
<executableName> [default: <name>]
--description Package description [string]
--dependencies A list of package dependencies [array]
--es-module Initialize a transpiled ES Module
--homepage The package homepage, defaulting to a subpath of the root
pkg.homepage [string]
--keywords A list of package keywords [array]
--license The desired package license (SPDX identifier) [default: ISC]
--private Make the new package private, never published
--registry Configure the package's publishConfig.registry [string]
--tag Configure the package's publishConfig.tag [string]
--yes Skip all prompts, accepting default values
3.0.0-beta.18 (2018-04-24)
Bug Fixes
- cli: Exit immediately when error is caught (5b01599), closes #1384
- diff: Diff since last release in branch, not most recent global tag (9879fef)
- git-utils: Pass --no-verify to
git push
(#1376) (0b88ffb), closes #1366 - git-utils: Pass
--follow-tags
to git push
(6907e90)
Features
- collect-updates: Copy remaining git utilities into module (cb9c19d)
- command: Move GitUtilities.isInitialized into class method (abecfcc)
- diff: Move diff-only git utilities (47dc0e2)
- Remove core/git-utils package (48096c4)
- filters: Add
--include-filtered-dependents
flag (#1393) (2838260) - git-utils: Devolve getCurrentSHA() to consumers (ecbc1d3)
- git-utils: Devolve getShortSHA() to consumers (95d179d)
- import: Inline GitUtilities.getWorkspaceRoot() (925080e)
- init: Inline GitUtilities.init() (6e401e1)
- publish: Move publish-only git utilities (5594749)
BREAKING CHANGES
- cli: Previously, lerna would accept
--scope
and --ignore
options where they were not intended,
despite logging the unexpected arguments correctly. This would result in the commands continuing to run with unexpected configuration.
Going forward, lerna will exit non-zero immediately upon encountering these errors.
@lerna/git-utils
is gone. Don't use it.- collect-updates: GitUtilities is going away soon.
- diff: Don't use GitUtilities.
- git-utils: Don't use GitUtilities!
- git-utils: Don't use GitUtilities.
- import: GitUtilities.getWorkspaceRoot no longer exists. You shouldn't be using GitUtilities.
- init: GitUtilities.init() no longer exists. You shouldn't be using GitUtilities.
- command: GitUtilities.isInitialized no longer exists. You shouldn't be using GitUtilities.
- publish: Many named exports of GitUtilities are no longer provided. Don't use GitUtilities, it's a bad pattern.
<a name="3.0.0-beta.17"></a>