feat: boilerplating @sanity/presets plugin after plugin generation run#723
Merged
feat: boilerplating @sanity/presets plugin after plugin generation run#723
Conversation
🦋 Changeset detectedLatest commit: 0593f91 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Bootstraps a new @sanity/presets plugin workspace (generated via turbo generator), wires it into the repo tooling, and adds it to the dev test studio for quick manual validation.
Changes:
- Adds a new
plugins/@sanity/presetsworkspace with package/build config, basic tool implementation, and package-exports vitest coverage. - Registers the new workspace in repo tooling (
knip) and workspace resolution (pnpm-lock.yaml). - Integrates
@sanity/presetsintodev/test-studiovia a new#presetsexample and dependency entry.
Reviewed changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | Adds workspace link + dependency resolution entries for @sanity/presets. |
| plugins/@sanity/presets/vitest.config.ts | Sets vitest config consistent with other plugin packages. |
| plugins/@sanity/presets/tsconfig.json | Adds typecheck TS config for the new plugin workspace. |
| plugins/@sanity/presets/tsconfig.build.json | Adds build TS config aligned with repo conventions. |
| plugins/@sanity/presets/src/plugin.tsx | Implements the plugin/tool scaffold and config handling. |
| plugins/@sanity/presets/src/index.ts | Exposes the public entrypoint export. |
| plugins/@sanity/presets/src/index.test.ts | Adds package-exports manifest test (dist import mode). |
| plugins/@sanity/presets/src/components/Tool.tsx | Adds placeholder tool UI (“Hello World!”). |
| plugins/@sanity/presets/package.json | Declares new package metadata, exports, scripts, deps/peers. |
| plugins/@sanity/presets/package.config.ts | Adds pkg-utils build configuration for the plugin. |
| plugins/@sanity/presets/README.md | Documents installation + basic usage. |
| knip.jsonc | Registers the new plugin workspace for knip analysis. |
| dev/test-studio/src/presets/index.tsx | Adds a test-studio example plugin that installs presets(). |
| dev/test-studio/sanity.config.ts | Includes the new presets example in the kitchen-sink workspace. |
| dev/test-studio/package.json | Adds @sanity/presets workspace dependency. |
| .changeset/add-presets-plugin.md | Adds changeset for initial scaffolding release notes/versioning. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4fc7b28 to
9cd690b
Compare
…t status and discourage use
juice49
reviewed
Mar 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Uses the turbo generate cmd (which is resolved and working from this PR) to boilerplate a new plugin directory for the
@sanity/presetsWhat to review
Testing
All tests and linting are green on this PR