Skip to content

Commit

Permalink
docs(publishing-libraries): help overcome npm publishing error
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed Oct 24, 2024
1 parent 11bf07d commit c5616fe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/repo-docs/guides/publishing-libraries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ and add a `publish-packages` script into your root `package.json`:
}
```

If your packages are public, set Changeset's `access` to `public`:

```json title="./changeset/config.json"
{
// …
"access": "public",
// …
}
```

<Callout>
We recommend `publish-packages` so that it doesn't conflict with npm's
built-in `publish` script.
Expand Down

0 comments on commit c5616fe

Please sign in to comment.