You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I only want to publish two packages, packages/is-even and packages/is-odd. The packages/base directory contains utility functions and is not intended to be published as a package. Therefore, I have set packages/base as private:
Well, I thought lerna would filter and exclude packages/base first because they are private. Indeed, lerna does do that, but before excluding them, lerna also reads private packages to obtain metadata information. This is because packages/base matches the definition in the root package.json under workspaces: ["packages/*"]. During the metadata reading process, lerna reads the "name" property of sub-packages, and since packages/base does not define a "name," it leads to the occurrence of this issue.
Solutions
option 1: add "name" property in packages/base, or
option 2: update workspaces: ["packages/is-*"] in root package.json;
After the update, lerna publish from-package works properly! 😄
Current Behavior
Expected Behavior
I can publish above 3 package to npmjs.com successfully.
Failure Logs / Configuration
lerna.json
lerna-debug.log
Environment
The text was updated successfully, but these errors were encountered: