Skip to content

Commit

Permalink
fix: Fix the TS2742 errors by moving some of the dependencies to root…
Browse files Browse the repository at this point in the history
… package.json (#201)
  • Loading branch information
pziemkowski authored Jun 13, 2023
1 parent 21dcdb9 commit 8eb8816
Show file tree
Hide file tree
Showing 13 changed files with 883 additions and 476 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"prepare": "husky install"
},
"devDependencies": {
"@apollo/client": "^3.7.9",
"@apollo/rover": "^0.12.2",
"@babel/preset-react": "^7.14.5",
"@nx/js": "16.3.2",
"@nx/devkit": "16.3.2",
Expand All @@ -33,6 +35,7 @@
"@types/styled-components": "5.1.26",
"@typescript-eslint/eslint-plugin": "5.59.9",
"@typescript-eslint/parser": "5.59.9",
"@graphql-typed-document-node/core": "^3.2.0",
"babel-jest": "29.4.3",
"babel-plugin-relay": "^14.1.0",
"babel-plugin-styled-components": "1.10.7",
Expand All @@ -45,6 +48,7 @@
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"graphql": "^16.6.0",
"husky": "^8.0.0",
"jest": "29.4.3",
"jest-environment-jsdom": "29.4.3",
Expand Down
2 changes: 0 additions & 2 deletions packages/internal/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
"@sb/webapp-core": "*",
"@sb/webapp-api-client": "*",
"@sb/tools": "*",
"@types/react": "^18.0.24",
"@types/react-dom": "^18.0.8",
"aws-cdk": "2.66.0",
"aws-cdk-lib": "2.66.0",
"typedoc": "^0.24.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
"@testing-library/user-event": "^14.4.3",
"@types/jest": "28.1.3",
"@types/ramda": "^0.28.23",
"@types/react": "^18.0.24",
"@types/styled-components": "^5.1.26",
"@types/testing-library__jest-dom": "^5.14.5",
"babel-jest": "28.1.3",
Expand Down
7 changes: 0 additions & 7 deletions packages/webapp-libs/webapp-api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@
"http-status-codes": "^2.2.0"
},
"peerDependencies": {
"@apollo/client": "^3.7.9",
"@storybook/react": "^7.0.10",
"@testing-library/dom": "^8.19.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.4.3",
"babel-jest": "28.1.3",
"graphql": "^16.6.0",
"jest": "28.1.3",
"jest-environment-jsdom": "28.1.3",
"msw": "^1.0.0",
Expand All @@ -35,8 +33,6 @@
"react-hook-form": "^7.34.0"
},
"devDependencies": {
"@apollo/client": "^3.7.9",
"@apollo/rover": "^0.12.2",
"@graphql-codegen/add": "^4.0.1",
"@graphql-codegen/cli": "^3.2.2",
"@graphql-codegen/client-preset": "^2.1.1",
Expand All @@ -45,7 +41,6 @@
"@graphql-codegen/typescript-graphql-request": "^4.5.8",
"@graphql-codegen/typescript-operations": "^3.0.2",
"@graphql-tools/merge": "^8.3.10",
"@graphql-typed-document-node/core": "^3.1.1",
"@storybook/react": "^7.0.10",
"@storybook/react-vite": "^7.0.10",
"@testing-library/dom": "^8.19.0",
Expand All @@ -58,10 +53,8 @@
"@types/jest": "28.1.3",
"@types/node": "^18.15.10",
"@types/ramda": "^0.28.18",
"@types/react": "^18.0.24",
"@types/testing-library__jest-dom": "^5.14.5",
"babel-jest": "28.1.3",
"graphql": "^16.6.0",
"graphql-cli": "^4.1.0",
"graphql-schema-utilities": "^1.1.4",
"graphql-ws": "^5.11.2",
Expand Down
4 changes: 0 additions & 4 deletions packages/webapp-libs/webapp-contentful/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"query-string": "^7.1.1"
},
"peerDependencies": {
"@apollo/client": "^3.7.9",
"@iconify-icons/ion": "^1.2.4",
"@iconify/react": "^4.0.0",
"@storybook/react": "^7.0.10",
Expand All @@ -38,8 +37,6 @@
"styled-components": "5.3.6"
},
"devDependencies": {
"@apollo/client": "^3.7.9",
"@apollo/rover": "^0.12.2",
"@graphql-codegen/add": "^3.2.1",
"@graphql-codegen/cli": "^2.13.11",
"@graphql-codegen/client-preset": "^1.2.6",
Expand All @@ -66,7 +63,6 @@
"@testing-library/user-event": "^14.4.3",
"@types/jest": "28.1.3",
"@types/ramda": "^0.28.23",
"@types/react": "^18.0.24",
"@types/styled-components": "^5.1.26",
"@types/testing-library__jest-dom": "^5.14.5",
"babel-jest": "28.1.3",
Expand Down
7 changes: 3 additions & 4 deletions packages/webapp-libs/webapp-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"lodash.throttle": "^4.1.1",
"ramda": "^0.28.0",
"react": "^18.2.0",
"react-dropzone": "^14.2.3"
"react-dropzone": "^14.2.3",
"styled-components": "5.3.6"
},
"peerDependencies": {
"@iconify-icons/ion": "^1.2.4",
Expand All @@ -26,8 +27,7 @@
"react-markdown": "^8.0.3",
"react-router": "^6.7.0",
"react-router-dom": "^6.7.0",
"styled-components": "5.3.6",
"styled-theming": "2.2.0"
"styled-components": "5.3.6"
},
"devDependencies": {
"@iconify-icons/ion": "^1.2.4",
Expand Down Expand Up @@ -56,7 +56,6 @@
"@types/lodash.throttle": "^4.1.7",
"@types/node": "^18.15.10",
"@types/ramda": "^0.28.18",
"@types/react": "^18.0.24",
"@types/react-dom": "^18.0.8",
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
Expand Down
5 changes: 0 additions & 5 deletions packages/webapp-libs/webapp-crud-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
"@sb/webapp-api-client": "*",
"@sb/webapp-core": "*",
"@sb/webapp-notifications": "*",
"graphql": "^16.6.0",
"react-click-away-listener": "^2.2.2"
},
"peerDependencies": {
"@apollo/client": "^3.7.9",
"@iconify-icons/ion": "^1.2.4",
"@iconify/react": "^4.0.0",
"@storybook/react": "^7.0.10",
Expand All @@ -40,8 +38,6 @@
"styled-components": "5.3.6"
},
"devDependencies": {
"@apollo/client": "^3.7.9",
"@apollo/rover": "^0.12.2",
"@graphql-codegen/cli": "^2.13.11",
"@iconify-icons/ion": "^1.2.4",
"@iconify/react": "^4.0.0",
Expand All @@ -62,7 +58,6 @@
"@testing-library/user-event": "^14.4.3",
"@types/jest": "28.1.3",
"@types/ramda": "^0.28.23",
"@types/react": "^18.0.24",
"@types/styled-components": "^5.1.26",
"@types/testing-library__jest-dom": "^5.14.5",
"babel-jest": "28.1.3",
Expand Down
5 changes: 0 additions & 5 deletions packages/webapp-libs/webapp-documents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
"dependencies": {
"@sb/webapp-api-client": "*",
"@sb/webapp-core": "*",
"graphql": "^16.6.0",
"react-loading-skeleton": "^3.1.0"
},
"peerDependencies": {
"@apollo/client": "^3.7.9",
"@iconify-icons/ion": "^1.2.4",
"@iconify/react": "^4.0.0",
"@storybook/react": "^7.0.10",
Expand All @@ -38,8 +36,6 @@
"styled-components": "5.3.6"
},
"devDependencies": {
"@apollo/client": "^3.7.9",
"@apollo/rover": "^0.12.2",
"@graphql-codegen/cli": "^2.13.11",
"@iconify-icons/ion": "^1.2.4",
"@iconify/react": "^4.0.0",
Expand All @@ -60,7 +56,6 @@
"@testing-library/user-event": "^14.4.3",
"@types/jest": "28.1.3",
"@types/ramda": "^0.28.23",
"@types/react": "^18.0.24",
"@types/styled-components": "^5.1.26",
"@types/testing-library__jest-dom": "^5.14.5",
"babel-jest": "28.1.3",
Expand Down
12 changes: 3 additions & 9 deletions packages/webapp-libs/webapp-finances/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
"@sb/webapp-notifications": "*",
"@stripe/react-stripe-js": "^1.14.2",
"@stripe/stripe-js": "^1.42.1",
"graphql": "^16.6.0",
"react-click-away-listener": "^2.2.2"
"react-click-away-listener": "^2.2.2",
"styled-components": "5.3.6"
},
"peerDependencies": {
"@apollo/client": "^3.7.9",
"@iconify-icons/ion": "^1.2.4",
"@iconify/react": "^4.0.0",
"@storybook/react": "^7.0.10",
Expand All @@ -38,14 +37,10 @@
"react-intl": "^6.2.1",
"react-markdown": "^8.0.3",
"react-router": "^6.7.0",
"react-router-dom": "^6.7.0",
"styled-components": "5.3.6"
"react-router-dom": "^6.7.0"
},
"devDependencies": {
"@apollo/client": "^3.7.9",
"@apollo/rover": "^0.12.2",
"@graphql-codegen/cli": "^2.13.11",
"@graphql-typed-document-node/core": "^3.1.1",
"@iconify-icons/ion": "^1.2.4",
"@iconify/react": "^4.0.0",
"@storybook/addon-actions": "^7.0.10",
Expand All @@ -65,7 +60,6 @@
"@testing-library/user-event": "^14.4.3",
"@types/jest": "28.1.3",
"@types/ramda": "^0.28.23",
"@types/react": "^18.0.24",
"@types/styled-components": "^5.1.26",
"@types/testing-library__jest-dom": "^5.14.5",
"babel-jest": "28.1.3",
Expand Down
5 changes: 0 additions & 5 deletions packages/webapp-libs/webapp-generative-ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
"dependencies": {
"@sb/webapp-api-client": "*",
"@sb/webapp-core": "*",
"graphql": "^16.6.0",
"react-helmet-async": "^1.3.0",
"react-loading-skeleton": "^3.1.0",
"typewriter-effect": "^2.19.0"
},
"peerDependencies": {
"@apollo/client": "^3.7.9",
"@iconify-icons/ion": "^1.2.4",
"@iconify/react": "^4.0.0",
"@storybook/react": "^7.0.10",
Expand All @@ -40,8 +38,6 @@
"styled-components": "5.3.6"
},
"devDependencies": {
"@apollo/client": "^3.7.9",
"@apollo/rover": "^0.12.2",
"@graphql-codegen/cli": "^2.13.11",
"@iconify-icons/ion": "^1.2.4",
"@iconify/react": "^4.0.0",
Expand All @@ -62,7 +58,6 @@
"@testing-library/user-event": "^14.4.3",
"@types/jest": "28.1.3",
"@types/ramda": "^0.28.23",
"@types/react": "^18.0.24",
"@types/styled-components": "^5.1.26",
"@types/testing-library__jest-dom": "^5.14.5",
"babel-jest": "28.1.3",
Expand Down
5 changes: 0 additions & 5 deletions packages/webapp-libs/webapp-notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"dependencies": {
"@sb/webapp-api-client": "*",
"@sb/webapp-core": "*",
"graphql": "^16.6.0",
"react-click-away-listener": "^2.2.2",
"react-infinite-scroll-hook": "^4.0.4"
},
Expand All @@ -30,10 +29,7 @@
"styled-components": "5.3.6"
},
"devDependencies": {
"@apollo/client": "^3.7.9",
"@apollo/rover": "^0.12.2",
"@graphql-codegen/cli": "^2.13.11",
"@graphql-typed-document-node/core": "^3.1.1",
"@iconify-icons/ion": "^1.2.4",
"@iconify/react": "^4.0.0",
"@storybook/addon-actions": "^7.0.10",
Expand All @@ -53,7 +49,6 @@
"@testing-library/user-event": "^14.4.3",
"@types/jest": "28.1.3",
"@types/ramda": "^0.28.23",
"@types/react": "^18.0.24",
"@types/styled-components": "^5.1.26",
"@types/testing-library__jest-dom": "^5.14.5",
"babel-jest": "28.1.3",
Expand Down
2 changes: 0 additions & 2 deletions packages/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"color": "^4.2.3",
"core-js": "^3.6.5",
"fontfaceobserver": "^2.3.0",
"graphql": "^16.6.0",
"http-proxy-middleware": "^2.0.6",
"http-status-codes": "^2.2.0",
"immer": "^9.0.16",
Expand Down Expand Up @@ -111,7 +110,6 @@
"@types/node": "^18.15.10",
"@types/qrcode": "^1.5.0",
"@types/ramda": "^0.28.18",
"@types/react": "^18.0.24",
"@types/react-dom": "^18.0.8",
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
Expand Down
Loading

0 comments on commit 8eb8816

Please sign in to comment.