Skip to content

Commit fef8c9c

Browse files
committed
Document publishConfig.directory
fix #733
1 parent dab5644 commit fef8c9c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎site/guide/versioning-and-publishing.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ And you have released your changes! When you add more changesets again, repeat t
6363

6464
Check out the [CI automation](./automating.md) guide to simplify versioning and publishing so that releasing is as simple as merging a PR. And the [Backporting Changes](./backporting-changes.md) guide if you need to release changes in previous versions.
6565

66+
::: tip Publish a different directory
67+
Changesets supports the `publishConfig.directory` option in the `package.json` to publish a different directory than the package root. This works the same way as [pnpm's support](https://pnpm.io/package_json#publishconfigdirectory), however, Changesets normalizes this to work in all package managers.
68+
:::
69+
6670
## Publishing for the First Time
6771

6872
For packages that are being published for the first time, make sure that the [`access`](./config.md#access) option is properly set. If all your packages are public, set it to `public`:

0 commit comments

Comments
 (0)