Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: Change react deps to normal deps #11628

Merged
merged 15 commits into from
Sep 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions addons/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,16 @@
"core-js": "^3.0.1",
"global": "^4.3.2",
"lodash": "^4.17.15",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-sizeme": "^2.5.2",
"regenerator-runtime": "^0.13.3",
"ts-dedent": "^1.1.1",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@testing-library/react": "^10.0.4",
"@types/webpack-env": "^1.15.2",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
"@types/webpack-env": "^1.15.2"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 1 addition & 3 deletions addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"polished": "^3.4.4",
"prop-types": "^15.7.2",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-inspector": "^5.0.1",
"regenerator-runtime": "^0.13.3",
"ts-dedent": "^1.1.1",
Expand All @@ -52,9 +53,6 @@
"@types/uuid": "^7.0.3",
"@types/webpack-env": "^1.15.2"
},
"peerDependencies": {
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
Expand Down
4 changes: 1 addition & 3 deletions addons/backgrounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@
"core-js": "^3.0.1",
"memoizerific": "^1.11.3",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"regenerator-runtime": "^0.13.3"
},
"devDependencies": {
"@types/webpack-env": "^1.15.2"
},
"peerDependencies": {
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
Expand Down
6 changes: 2 additions & 4 deletions addons/controls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@
"@storybook/node-logger": "6.1.0-alpha.6",
"@storybook/theming": "6.1.0-alpha.6",
"core-js": "^3.0.1",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"ts-dedent": "^1.1.1"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 2 additions & 6 deletions addons/cssresources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,13 @@
"core-js": "^3.0.1",
"global": "^4.3.2",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"regenerator-runtime": "^0.13.3"
},
"devDependencies": {
"@types/webpack-env": "^1.15.2",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"react-dom": "^16.12.0"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
"enzyme-adapter-react-16": "^1.15.2"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 1 addition & 3 deletions addons/design-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@
"core-js": "^3.0.1",
"global": "^4.3.2",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"regenerator-runtime": "^0.13.3",
"ts-dedent": "^1.1.1",
"use-image": "^1.0.3"
},
"peerDependencies": {
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
Expand Down
9 changes: 3 additions & 6 deletions addons/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@
"js-string-escape": "^1.0.1",
"lodash": "^4.17.15",
"prop-types": "^15.7.2",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-element-to-jsx-string": "^14.3.1",
"react-is": "^16.12.0",
"regenerator-runtime": "^0.13.3",
"remark-external-links": "^6.0.0",
"remark-slug": "^6.0.0",
Expand Down Expand Up @@ -103,9 +106,6 @@
"lit-element": "^2.2.1",
"lit-html": "^1.0.0",
"prettier": "~2.0.5",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-is": "^16.12.0",
"require-from-string": "^2.0.2",
"rxjs": "^6.5.4",
"styled-components": "^5.0.1",
Expand All @@ -119,9 +119,6 @@
"peerDependencies": {
"@babel/core": "^7.0.0-0",
"babel-loader": "^8.0.0",
"react": ">=16.3.0",
"react-dom": "*",
"react-is": "^16.8.0",
"sveltedoc-parser": "^3.0.4",
"vue": "^2.6.10",
"vue-docgen-api": "^4.29.1",
Expand Down
8 changes: 4 additions & 4 deletions addons/essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"@storybook/api": "6.1.0-alpha.6",
"@storybook/node-logger": "6.1.0-alpha.6",
"core-js": "^3.0.1",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-is": "^16.8.0",
"regenerator-runtime": "^0.13.3",
"ts-dedent": "^1.1.1"
},
Expand All @@ -46,10 +49,7 @@
"@types/webpack-env": "^1.15.2"
},
"peerDependencies": {
"babel-loader": "^8.0.0",
"react": "^16.8.0",
"react-dom": "*",
"react-is": "^16.8.0"
"babel-loader": "^8.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
5 changes: 1 addition & 4 deletions addons/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,14 @@
"lodash": "^4.17.15",
"prop-types": "^15.7.2",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-lifecycles-compat": "^3.0.4",
"react-textarea-autosize": "^8.1.1",
"regenerator-runtime": "^0.13.3"
},
"devDependencies": {
"@types/webpack-env": "^1.15.2"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
Expand Down
7 changes: 2 additions & 5 deletions addons/google-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@
"@storybook/core-events": "6.1.0-alpha.6",
"core-js": "^3.0.1",
"global": "^4.3.2",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-ga": "^2.5.7",
"regenerator-runtime": "^0.13.3"
},
"peerDependencies": {
"prop-types": "^15.6.0",
"react": "^15.6.2 || ^16.0",
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
Expand Down
6 changes: 2 additions & 4 deletions addons/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@
"graphiql": "^0.17.5",
"graphql": "^15.0.0",
"prop-types": "^15.7.2",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"regenerator-runtime": "^0.13.3",
"webpack": "^4.43.0"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
Expand Down
5 changes: 1 addition & 4 deletions addons/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,14 @@
"core-js": "^3.0.1",
"global": "^4.3.2",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-sizeme": "^2.5.2",
"regenerator-runtime": "^0.13.3",
"upath": "^1.1.0"
},
"devDependencies": {
"@types/webpack-env": "^1.15.2"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
Expand Down
6 changes: 2 additions & 4 deletions addons/knobs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"lodash": "^4.17.15",
"prop-types": "^15.7.2",
"qs": "^6.6.0",
"react": "^16.8.3",
"react-color": "^2.17.0",
"react-dom": "^16.8.3",
"react-lifecycles-compat": "^3.0.4",
"react-select": "^3.0.8",
"regenerator-runtime": "^0.13.3"
Expand All @@ -58,10 +60,6 @@
"@types/webpack-env": "^1.15.2",
"enzyme": "^3.11.0"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
Expand Down
6 changes: 2 additions & 4 deletions addons/links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,15 @@
"global": "^4.3.2",
"prop-types": "^15.7.2",
"qs": "^6.6.0",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"regenerator-runtime": "^0.13.3",
"ts-dedent": "^1.1.1"
},
"devDependencies": {
"@types/webpack-env": "^1.15.2",
"enzyme": "^3.11.0"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
Expand Down
4 changes: 1 addition & 3 deletions addons/queryparams/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,13 @@
"global": "^4.3.2",
"qs": "^6.6.0",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"regenerator-runtime": "^0.13.3",
"ts-dedent": "^1.1.1"
},
"devDependencies": {
"@types/webpack-env": "^1.15.2"
},
"peerDependencies": {
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
Expand Down
9 changes: 4 additions & 5 deletions addons/storyshots/storyshots-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
"global": "^4.3.2",
"jest-specific-snapshot": "^4.0.0",
"pretty-format": "^26.4.0",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-test-renderer": "^16.8.3",
"read-pkg-up": "^7.0.0",
"regenerator-runtime": "^0.13.3",
"ts-dedent": "^1.1.1"
Expand All @@ -55,11 +58,7 @@
"babel-loader": "^8.0.6",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.4.1",
"jest-emotion": "^10.0.17",
"react": "^16.8.3"
},
"peerDependencies": {
"react-dom": "*"
"jest-emotion": "^10.0.17"
},
"publishConfig": {
"access": "public"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line import/no-extraneous-dependencies
import shallow from 'react-test-renderer/shallow';

function getRenderedTree(story: any, context: any, { renderer, serializer }: any) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
import React from 'react';
// eslint-disable-next-line import/no-extraneous-dependencies
import reactTestRenderer from 'react-test-renderer';

function getRenderedTree(story: any, context: any, { renderer, ...rendererOptions }: any) {
Expand Down
6 changes: 1 addition & 5 deletions addons/storysource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,14 @@
"prettier": "~2.0.5",
"prop-types": "^15.7.2",
"react": "^16.9.17",
"react-dom": "^16.8.3",
"react-syntax-highlighter": "^13.5.0",
"regenerator-runtime": "^0.13.3"
},
"devDependencies": {
"@types/react": "^16.9.27",
"@types/react-syntax-highlighter": "^11.0.4"
},
"peerDependencies": {
"@storybook/source-loader": "*",
"react": "*",
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 3 additions & 5 deletions addons/toolbars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@
"@storybook/api": "6.1.0-alpha.6",
"@storybook/client-api": "6.1.0-alpha.6",
"@storybook/components": "6.1.0-alpha.6",
"core-js": "^3.0.1"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
"core-js": "^3.0.1",
"react": "^16.8.3",
"react-dom": "^16.8.3"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 2 additions & 4 deletions addons/viewport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@
"global": "^4.3.2",
"memoizerific": "^1.11.3",
"prop-types": "^15.7.2",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"regenerator-runtime": "^0.13.3"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
Expand Down
2 changes: 0 additions & 2 deletions app/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
"fork-ts-checker-webpack-plugin": "^4.0.3",
"global": "^4.3.2",
"postcss-loader": "^3.0.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"regenerator-runtime": "^0.13.3",
"sass-loader": "^8.0.0",
"strip-json-comments": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion app/aurelia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"rimraf": "^3.0.2",
"sass-loader": "^8.0.0",
"style-loader": "^0.23.0",
"typescript": "latest",
"typescript": "^3.9.3",
"webpack": "^4.33.0"
},
"peerDependencies": {
Expand Down
Loading