Update Lerna setup so it actually publishes the packages
Problem to solve
If you attempt to run yarn publish
at the root of this repo, Lerna will attempt to publish the root rather than the individual packages as it is supposed to.
We need to update the Lerna setup to make sure that when yarn publish
is run that it will publish everything in packages/*
rather than the root.
Example output
yarn publish
yarn publish v1.22.5
error Package marked as private, not publishing.
info Visit https://yarnpkg.com/en/docs/cli/publish for documentation about
--- Manually removed private: true from root package.json to keep going---
❯ yarn publish
yarn publish v1.22.5
warning package.json: No license field
warning package.json: No license field
[1/4] Bumping version...
info Current version: 0.1.0
question New version: 0.1.0
[2/4] Logging in...
question npm username: ...username...
question npm email: ...email...
question npm password: ...password...
info Two factor authentication enabled.
question npm one-time password: ...2fa code...
success Logged in.
[3/4] Publishing...
error Couldn't publish package: "https://registry.yarnpkg.com/@gitlab%2fapplication-sdk: You must sign up for private packages"
info Visit https://yarnpkg.com/en/docs/cli/publish for documentation about this command.
Edited by Robert Hunt