lerna - 可以用 Lerna 发布特定的包吗?

标签 lerna

我有一个单一存储库,需要发布单个包。

示例: enter image description here

我该如何使用 Lerna 来做到这一点?

最佳答案

https://github.com/lerna/lerna/issues/1055 中所述,使用 lerna 是不可能的

As I noted above, this is impossible due to the manner in which lerna coordinates versions with git tags (and the diff since the last one is what indicates which packages should be published).

If they are both independent, and you don’t want to publish them at the same time, then don’t use lerna, it’s clearly not necessary for your use case.

也就是说,您始终可以使用 npmpublish 来发布任何单个包。

关于lerna - 可以用 Lerna 发布特定的包吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72474769/

相关文章:

node.js - lerna 导入总是返回 EDESTDIR

npm - Bump 版本并从一个分支发布包,但在另一个分支中保留标签

azure-devops - 如何将 Yarn 注册表用作 Azure DevOps 工件上游源?

Lerna 没有为每个包生成 package-lock.json

javascript - 在 Lerna 单体仓库中使用助手

javascript - 在处理 monorepo 时如何正确使用 lerna 和 webpack

node.js - 如何将 npm 包的目录公开给 monorepo 中的其他包

javascript - 如何通过修改.npmrc文件在Travis上运行lerna发布?

javascript - 如何处理monorepo中的env文件?

lerna - 如何在 monorepo 中仅打包 dist 文件夹