Skip to content

Commit

Permalink
Merge pull request #6213 from chaseadamsio/patch-1
Browse files Browse the repository at this point in the history
add migrating doc with update gatsby related deps
  • Loading branch information
KyleAMathews authored Jun 28, 2018
2 parents eeef674 + 6986fb5 commit dd91b8d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/docs/migrating-from-v1-to-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ You can start with a few of the most important steps - install Gatsby v2 depende

## Update Gatsby version

Update your `package.json` to use the pre-release versions of Gatsby and any related packages.
Update your `package.json` to use the pre-release versions of Gatsby.

`package.json`

Expand All @@ -78,6 +78,20 @@ Update your `package.json` to use the pre-release versions of Gatsby and any rel

> Note: Gatsby v2 is in pre-release so you may encounter further breaking changes.
## Update Gatsby related packages

Update your `package.json` to use the pre-release versions of Gatsby related packages. Any package name that starts with `gatsby-` should be upgraded to use the `next` version. Note, this only applies to plugins managed in the gatsbyjs/gatsby repo. If you're using community plugins, they might not be upgraded yet. Check their repo for the status. Many plugins won't actually need upgraded so they very well might keep working. For example:

`package.json`

```json
"dependencies": {
"gatsby-plugin-google-analytics": "next",
"gatsby-plugin-netlify": "next",
"gatsby-plugin-sass": "next",
}
```

## Manually install React

In v1, the `react` and `react-dom` packages were included as part of the `gatsby` package. They are now `peerDependencies` so you are required to install them into your project.
Expand Down

0 comments on commit dd91b8d

Please sign in to comment.