Skip to content

Commit

Permalink
treat styled-components as peer dependency due to risk of having two …
Browse files Browse the repository at this point in the history
…theming environments.

reference: styled-components/styled-components#2379
  • Loading branch information
adghayes committed Aug 4, 2023
1 parent c9582bc commit 9f06eb6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions libs/dev-dock/frontend/package.json
Expand Up @@ -37,8 +37,7 @@
"@votingworks/dev-dock-backend": "workspace:*",
"@votingworks/grout": "workspace:*",
"@votingworks/types": "workspace:*",
"@votingworks/utils": "workspace:*",
"styled-components": "^5.3.11"
"@votingworks/utils": "workspace:*"
},
"devDependencies": {
"@tanstack/react-query": "^4.32.1",
Expand All @@ -65,12 +64,14 @@
"lint-staged": "^11.0.0",
"react": "17.0.1",
"sort-package-json": "^1.50.0",
"styled-components": "^5.3.11",
"ts-jest": "^29.1.1"
},
"peerDependencies": {
"@tanstack/react-query": "^4.22.0",
"@tanstack/react-query-devtools": "^4.3.9",
"react": "^17.0.1"
"react": "^17.0.1",
"styled-components": "^5.3.11"
},
"packageManager": "pnpm@8.1.0"
}
5 changes: 3 additions & 2 deletions libs/mark-flow-ui/package.json
Expand Up @@ -62,7 +62,6 @@
"react-idle-timer": "^5.7.2",
"react-modal": "^3.16.1",
"react-router-dom": "^5.3.4",
"styled-components": "^5.3.11",
"use-interval": "^1.4.0",
"zod": "3.14.4"
},
Expand Down Expand Up @@ -117,12 +116,14 @@
"react": "17.0.1",
"sort-package-json": "^1.50.0",
"stream-browserify": "^3.0.0",
"styled-components": "^5.3.11",
"ts-jest": "^29.1.1",
"util": "^0.12.4",
"vite": "^4.0.4"
},
"peerDependencies": {
"react": "17.0.1"
"react": "17.0.1",
"styled-components": "^5.3.11"
},
"packageManager": "pnpm@8.1.0"
}
5 changes: 3 additions & 2 deletions libs/ui/package.json
Expand Up @@ -61,7 +61,6 @@
"react-idle-timer": "^5.7.2",
"react-modal": "^3.16.1",
"react-router-dom": "^5.3.4",
"styled-components": "^5.3.11",
"use-interval": "^1.4.0",
"zod": "3.14.4"
},
Expand Down Expand Up @@ -114,12 +113,14 @@
"react": "17.0.1",
"sort-package-json": "^1.50.0",
"stream-browserify": "^3.0.0",
"styled-components": "^5.3.11",
"ts-jest": "^29.1.1",
"util": "^0.12.4",
"vite": "^4.0.4"
},
"peerDependencies": {
"react": "17.0.1"
"react": "17.0.1",
"styled-components": "^5.3.11"
},
"packageManager": "pnpm@8.1.0"
}

0 comments on commit 9f06eb6

Please sign in to comment.