Skip to content
2 changes: 1 addition & 1 deletion packages/gatsby-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package installed locally.

## Install

`npm install --global gatsby-cli`
`npm install --global gatsby-cli react react-dom`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that's right. We don't want to install those globally.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

womp, thank you

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not expert on dependencies but these propably should be added to starters as dependencies but there are so many of those starters and many of them are unofficial so making react and react-dom peer dependencies will break them I think

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just arrived at the same conclusion 👍

This is coming with a major version bump – I'd be surprised if this is the only thing that breaks compatibility with existing starters, but I don't know

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah — we'll upgrade the official starters and perhaps a few others. There'll be an upgrade guide for sites that starters will need to go through. It won't break anything though as a starter with a gatsby@1 dependency will keep working as normal.


## How to use

Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-jss/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Provide drop-in support for using the css-in-js library

## Install

`npm install --save gatsby-plugin-jss`
`npm install --save gatsby-plugin-jss react-jss`

## How to use

Expand Down
4 changes: 3 additions & 1 deletion packages/gatsby-plugin-jss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"author": "Vladimir Guguiev <[email protected]>",
"license": "MIT",
"dependencies": {
"babel-runtime": "^6.26.0",
"babel-runtime": "^6.26.0"
},
"peerDependencies": {
"react-jss": "^7.0.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-lodash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Adds the Lodash webpack & Babel plugins for easy modular, small Lodash builds.

## Install

`npm install --save gatsby-plugin-lodash`
`npm install --save gatsby-plugin-lodash lodash`

## How to use

Expand Down
4 changes: 3 additions & 1 deletion packages/gatsby-plugin-lodash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
"dependencies": {
"babel-plugin-lodash": "^3.2.11",
"babel-runtime": "^6.26.0",
"lodash": "^4.17.4",
"lodash-webpack-plugin": "^0.11.4"
},
"peerDependencies": {
"lodash": "^4.17.4"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"cross-env": "^5.0.5"
Expand Down
6 changes: 4 additions & 2 deletions packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@
"postcss-loader": "^2.0.6",
"postcss-reporter": "^5.0.0",
"raw-loader": "^0.5.1",
"react": "^16.2.0",
"react-dev-utils": "^4.2.1",
"react-dom": "^16.2.0",
"react-error-overlay": "^3.0.0",
"react-hot-loader": "^3.0.0-beta.6",
"react-router": "^4.1.1",
Expand Down Expand Up @@ -121,6 +119,10 @@
"webpack-stats-plugin": "^0.1.5",
"yaml-loader": "^0.5.0"
},
"peerDependencies": {
"react": "^16.2.0",
"react-dom": "^16.2.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"chokidar": "^2.0.0",
Expand Down