Skip to content

feat: boilerplating @sanity/presets plugin after plugin generation run#723

Merged
jordanl17 merged 2 commits intomainfrom
feat/boilerplate-presets-plugin
Mar 13, 2026
Merged

feat: boilerplating @sanity/presets plugin after plugin generation run#723
jordanl17 merged 2 commits intomainfrom
feat/boilerplate-presets-plugin

Conversation

@jordanl17
Copy link
Member

@jordanl17 jordanl17 commented Mar 13, 2026

Description

Uses the turbo generate cmd (which is resolved and working from this PR) to boilerplate a new plugin directory for the @sanity/presets

What to review

Testing

All tests and linting are green on this PR

@changeset-bot
Copy link

changeset-bot bot commented Mar 13, 2026

🦋 Changeset detected

Latest commit: 0593f91

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sanity/presets Patch

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

@vercel
Copy link

vercel bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
plugins-studio Ready Ready Preview, Comment Mar 13, 2026 2:41am

Request Review

@jordanl17 jordanl17 requested a review from juice49 March 13, 2026 00:43
@jordanl17 jordanl17 marked this pull request as ready for review March 13, 2026 00:43
Copilot AI review requested due to automatic review settings March 13, 2026 00:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/presets workspace 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/presets into dev/test-studio via a new #presets example 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.

@jordanl17 jordanl17 marked this pull request as ready for review March 13, 2026 10:27
@jordanl17 jordanl17 requested a review from juice49 March 13, 2026 11:09
Copy link
Contributor

@juice49 juice49 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant! Thanks 🙇.

@jordanl17 jordanl17 enabled auto-merge March 13, 2026 11:29
@jordanl17 jordanl17 disabled auto-merge March 13, 2026 11:29
@jordanl17 jordanl17 merged commit 9118a7d into main Mar 13, 2026
10 checks passed
@jordanl17 jordanl17 deleted the feat/boilerplate-presets-plugin branch March 13, 2026 12:20
@squiggler-app squiggler-app bot mentioned this pull request Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants