We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ "packages": [ "packages/*" ], "version": "0.0.0", # 使用统一版本模式, 会自动检测改动, 仅发布有修改的包 "command": { "publish": { "conventionalCommits": true, # 自动生成 changelog "ignoreChanges": [ "*.md" # 忽略 md 文件改动 ] }, "version": { "message": "chore(publish): %s" # 自定义发版的 commit message } } }
lerna init
lerna bootstrap
为所有包添加依赖 lerna add xxx 为指定包添加依赖 lerna add xxx --scope=module1 或者 lerna add xxx --scope=module-*
lerna add xxx
lerna add xxx --scope=module1
lerna add xxx --scope=module-*
lerna publish [bump]
常用 bump 取值: x.y.z / patch / minor / major
The text was updated successfully, but these errors were encountered:
No branches or pull requests
推荐配置
常用操作
将当前目录初始化为 lerna 结构仓库
lerna init
安装所有包依赖
lerna bootstrap
添加 npm 依赖包
为所有包添加依赖
lerna add xxx
为指定包添加依赖
lerna add xxx --scope=module1
或者lerna add xxx --scope=module-*
发布
lerna publish [bump]
常用 bump 取值: x.y.z / patch / minor / major
The text was updated successfully, but these errors were encountered: