Skip to content

Commit

Permalink
refactor(peer deps styled): move styled components to peer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rileylnapier committed May 11, 2024
1 parent 56f686b commit a8bca8a
Show file tree
Hide file tree
Showing 12 changed files with 267 additions and 112 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/setup-node@v2
with:
registry-url: "https://registry.npmjs.org"
node-version: "14.x"
node-version: "18.x"
scope: "@trycourier"
always-auth: true
- run: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-node@v2
with:
registry-url: "https://registry.npmjs.org"
node-version: "14.x"
node-version: "18.x"
scope: "@trycourier"
always-auth: true
- run: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14.X"
node-version: "18.X"
- run: yarn
- name: Typecheck
run: yarn types
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.17.4
18.16.0
5 changes: 1 addition & 4 deletions packages/react-brand-designer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,10 @@
"@trycourier/react-elements": "^5.1.2",
"rimraf": "^3.0.2"
},
"devDependencies": {
"@types/styled-components": "^5.1.25"
},
"peerDependencies": {
"deep-extend": "0.6.x",
"react": ">=17.X.X",
"react-dom": ">=17.X.X",
"styled-components": "5.x"
"styled-components": ">=^5.X.X"
}
}
5 changes: 1 addition & 4 deletions packages/react-elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,10 @@
"dependencies": {
"rimraf": "^3.0.2"
},
"devDependencies": {
"@types/styled-components": "^5.1.25"
},
"peerDependencies": {
"deep-extend": "0.6.x",
"react": ">=17.X.X",
"react-dom": ">=17.X.X",
"styled-components": "5.x"
"styled-components": ">=^5.X.X"
}
}
7 changes: 3 additions & 4 deletions packages/react-inbox-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
},
"license": "ISC",
"devDependencies": {
"@types/styled-components": "^5.1.7",
"concat-md": "^0.3.5"
},
"dependencies": {
Expand All @@ -29,12 +28,12 @@
"deep-extend": "^0.6.0",
"markdown-to-jsx": "7.1.7",
"react-loading-skeleton": "^2.2.0",
"rimraf": "^3.0.2",
"styled-components": "^5.2.1"
"rimraf": "^3.0.2"
},
"peerDependencies": {
"react": "^17.0.1",
"react-dom": "^17.0.1"
"react-dom": "^17.0.1",
"styled-components": ">=^5.X.X"
},
"files": [
"dist/",
Expand Down
5 changes: 2 additions & 3 deletions packages/react-inbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
},
"license": "ISC",
"devDependencies": {
"@types/styled-components": "^5.1.7",
"concat-md": "^0.3.5"
},
"dependencies": {
Expand All @@ -31,14 +30,14 @@
"react-intersection-observer": "^9.4.0",
"react-loading-skeleton": "^2.2.0",
"rimraf": "^3.0.2",
"styled-components": "^5.2.1",
"tinycolor2": "^1.4.2",
"urql": "^2.0.1"
},
"peerDependencies": {
"@trycourier/react-provider": ">=4.X.X",
"react": ">=17.X.X",
"react-dom": ">=17.X.X"
"react-dom": ">=17.X.X",
"styled-components": ">=^5.X.X"
},
"files": [
"dist/",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-preferences/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"types": "tsc --emitDeclarationOnly"
},
"peerDependencies": {
"styled-components": ">=^5.X.X",
"@trycourier/react-provider": ">=4.X.X",
"react": ">=17.X.X",
"react-dom": ">=17.X.X"
Expand All @@ -25,7 +26,6 @@
"dependencies": {
"@trycourier/react-hooks": "^5.1.2",
"date-fns": "^2.19.0",
"react-toggle": "^4.1.2",
"styled-components": "^5.3.6"
"react-toggle": "^4.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/react-toast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"markdown-to-jsx": "7.1.7",
"react-toastify": "^9.1.3",
"rimraf": "^3.0.2",
"styled-components": "^5.2.1",
"tinycolor2": "^1.4.2"
},
"peerDependencies": {
"@trycourier/react-provider": ">=4.X.X",
"react": ">=17.X.X",
"react-dom": ">=17.X.X"
"react-dom": ">=17.X.X",
"styled-components": ">=^5.X.X"
},
"files": [
"dist/",
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"react-markdown": "^8.0.1",
"rehype-raw": "^6.1.1",
"storybook": "^6.5.9",
"styled-components": "^5.2.1",
"styled-components": "^6.0.0",
"styled-normalize": "^8.0.7"
}
}
Loading

0 comments on commit a8bca8a

Please sign in to comment.