Skip to content

Commit 8c61e56

Browse files
committedJan 17, 2025·
added guidance on using pnpm workspaces in the structure plugin documentation
1 parent 72392a5 commit 8c61e56

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
 

‎src/content/docs/guides/sanity/structure-plugin.mdx

+24
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,30 @@ These packages provide:
5454
- `@vyuh/sanity-plugin-structure`: The Vyuh structure plugin that combines and
5555
organizes your feature schemas
5656

57+
<Aside title="Using pnpm Workspaces" type="tip">
58+
59+
Consider using pnpm workspaces to better organize your Sanity Studio and feature
60+
packages. Workspaces allow you to manage multiple packages in a single
61+
repository, sharing dependencies and enabling easier development:
62+
63+
```bash
64+
# pnpm-workspace.yaml
65+
packages:
66+
- 'studio'
67+
- 'features/*'
68+
```
69+
70+
This setup allows you to:
71+
72+
- Keep all feature packages and studio in one repository
73+
- Share dependencies across packages
74+
- Use consistent versioning
75+
- Run commands across all packages
76+
77+
Learn more about [pnpm workspaces](https://pnpm.io/workspaces).
78+
79+
</Aside>
80+
5781
## Using FeatureDescriptor
5882

5983
### Basic Structure

0 commit comments

Comments
 (0)
Please sign in to comment.