最佳答案
如 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/