Skip to content

Commit

Permalink
fix: set dev-deps correctly so styled-components is not bundled
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Apr 23, 2024
1 parent d83898b commit f785c2c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .changeset/hip-roses-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@strapi/design-system': patch
'@strapi/icons': patch
'@strapi/ui-primitives': patch
---

fix: set dev dependencies correctly to avoid styled-components being bundled
2 changes: 2 additions & 0 deletions packages/primitives/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
},
"devDependencies": {
"@strapi/pack-up": "^5.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"rimraf": "^5.0.5",
"typescript": "^5.4.4"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/strapi-design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"@types/react-router-dom": "^5.3.3",
"@types/styled-components": "^5.1.26",
"cross-env": "^7.0.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"rimraf": "^5.0.5",
"styled-components": "^5.3.11",
"typescript": "^5.4.4"
Expand Down
8 changes: 6 additions & 2 deletions packages/strapi-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@
"devDependencies": {
"@strapi/pack-up": "^5.0.0",
"@svgr/cli": "8.1.0",
"rimraf": "^5.0.5"
"react": "18.2.0",
"react-dom": "18.2.0",
"rimraf": "^5.0.5",
"styled-components": "^5.3.11"
},
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
"react-dom": "^17.0.0 || ^18.0.0",
"styled-components": "^5.2.1"
},
"scripts": {
"build": "yarn clean:generated && yarn generate:icons && yarn generate:symbols && yarn build:prod",
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5103,6 +5103,8 @@ __metadata:
"@uiw/react-codemirror": ^4.21.25
aria-hidden: ^1.2.4
cross-env: ^7.0.3
react: 18.2.0
react-dom: 18.2.0
react-remove-scroll: ^2.5.9
rimraf: ^5.0.5
styled-components: ^5.3.11
Expand Down Expand Up @@ -5152,10 +5154,14 @@ __metadata:
dependencies:
"@strapi/pack-up": ^5.0.0
"@svgr/cli": 8.1.0
react: 18.2.0
react-dom: 18.2.0
rimraf: ^5.0.5
styled-components: ^5.3.11
peerDependencies:
react: ^17.0.0 || ^18.0.0
react-dom: ^17.0.0 || ^18.0.0
styled-components: ^5.2.1
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -5215,6 +5221,8 @@ __metadata:
"@radix-ui/react-visually-hidden": ^1.0.3
"@strapi/pack-up": ^5.0.0
aria-hidden: ^1.2.4
react: 18.2.0
react-dom: 18.2.0
react-remove-scroll: ^2.5.9
rimraf: ^5.0.5
typescript: ^5.4.4
Expand Down

0 comments on commit f785c2c

Please sign in to comment.