Skip to content

Commit 7e4a47e

Browse files
committed
Revert "chore: remove SC override to dedupe deps"
This reverts commit 16e7f9a.
1 parent 16e7f9a commit 7e4a47e

4 files changed

Lines changed: 442 additions & 236 deletions

File tree

.agents/skills/plugin-transfer/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Type-aware lint can fail (sometimes intermittently, especially on cold installs)
100100
To keep the plugin on the shared `sanity` variant, declare these in the plugin `devDependencies`:
101101

102102
- `"@types/node": "catalog:"`
103-
- `"styled-components": "catalog:"` (when the plugin depends on `@sanity/ui`, which peers on styled-components)
103+
- `"styled-components": "catalog:"` (when the plugin depends on `@sanity/ui`, which peers on styled-components; without the declaration pnpm auto-installs the peer and bypasses the workspace `@sanity/styled-components` override)
104104

105105
Verify alignment by checking that the plugin importer's `sanity` version string in `pnpm-lock.yaml` matches other plugins (e.g. `plugins/@sanity/sfcc`).
106106

plugins/@sanity/google-maps-input/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
"babel-plugin-react-compiler": "catalog:",
7575
"react": "catalog:",
7676
"react-dom": "catalog:",
77-
"sanity": "catalog:"
77+
"sanity": "catalog:",
78+
"styled-components": "catalog:"
7879
},
7980
"peerDependencies": {
8081
"react": "^19.2",

0 commit comments

Comments
 (0)