Closed jgnieuwhof closed 4 years ago
If you ignore the examples directory does it then pick up the root?
I did try ignoring the examples directory, but unfortunately the part of the script that ignores those packages is separate from the part of the script that checks for a monorepo (@minkimcello may have more details on that).
This issue may be something that magically disappears, or is far easier to tackle, after the bash -> JS rewrite.
We encountered an issue trying to publish graphql-voyager to the organization's package registry.
It's a single-repo (as opposed to a monorepo), however it contains an
example
directory which has apackage.json
file in it.Current Behaviour
The transparent publishing script assumes that this single-repo is a monorepo, due to the sub directory
package.json
files. Because of this it does not allow the root package to be published.Desired Behaviour
The script should give the option for the root package to be published, despite the presence of sub-packages.
In the GraphQL Voyager case this would allow publishing of the root package. The example packages could also be published by setting
private: false
in theirpackage.json
.This would also give monorepo's the ability to publish their root package. This is not typically desired, however giving the option to do so does not seem to be particularly harmful.