Skip to content

Commit

Permalink
fix: make styled-components a peer (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan authored Feb 18, 2025
1 parent 48f6c8b commit f5cbec0
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{
"matchDepTypes": ["peerDependencies"],
"rangeStrategy": "bump",
"matchPackageNames": ["!astro", "!react", "!react-dom"],
"matchPackageNames": ["!astro", "!react", "!react-dom", "!react-is"],
"semanticCommitType": "fix"
}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity-astro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Note: `@astrojs/react` is only needed if you plan to embed a Sanity Studio in yo
### Manual installation of dependencies

```bash
npm install @astrojs/react @sanity/astro @sanity/client sanity @types/react-dom @types/react react-dom react
npm install @astrojs/react @sanity/astro @sanity/client sanity @types/react-dom @types/react-is @types/react react-dom react-is react styled-components
```

### Adding types for `sanity:client`
Expand Down
7 changes: 4 additions & 3 deletions packages/sanity-astro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sanity/astro",
"version": "3.2.4",
"version": "3.2.5-canary.0",
"description": "Official Sanity Astro integration",
"keywords": [
"astro-integration",
Expand Down Expand Up @@ -52,7 +52,7 @@
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@sanity/visual-editing": "^2.13.4",
"@sanity/visual-editing": "^2.13.5",
"history": "^5.3.0"
},
"devDependencies": {
Expand All @@ -73,7 +73,8 @@
"react": "^18.2.0 || ^19.0.0",
"react-dom": "^18.2.0 || ^19.0.0",
"react-is": "^18.2.0 || ^19.0.0",
"sanity": "^3.76.1"
"sanity": "^3.76.1",
"styled-components": "^6.1.15"
},
"engines": {
"node": ">=18.14.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity-astro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export default function sanityIntegration(
vite: {
optimizeDeps: {
include: [
'shallowequal',
'react-compiler-runtime',
'react-is',
'styled-components',
'lodash/startCase.js',
],
},
Expand Down
38 changes: 21 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f5cbec0

Please sign in to comment.