Skip to content

Commit

Permalink
feat(sharp): move gatsby-plugin-sharp to peerDependencies (#6487)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjoeio authored and KyleAMathews committed Jul 16, 2018
1 parent 8e12f66 commit 4cdd3bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby-remark-images/package.json
Expand Up @@ -9,7 +9,6 @@
"dependencies": {
"@babel/runtime": "7.0.0-beta.51",
"cheerio": "^1.0.0-rc.2",
"gatsby-plugin-sharp": "^2.0.0-beta.5",
"is-relative-url": "^2.0.0",
"lodash": "^4.17.4",
"slash": "^1.0.0",
Expand All @@ -32,7 +31,8 @@
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"gatsby": ">2.0.0-alpha"
"gatsby": ">2.0.0-alpha",
"gatsby-plugin-sharp": "^2.0.0-beta.5"
},
"repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-images",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby-transformer-sharp/README.md
Expand Up @@ -10,14 +10,14 @@ including resizing, cropping, and creating responsive images.

## Install

`npm install --save gatsby-transformer-sharp`
`npm install --save gatsby-transformer-sharp gatsby-plugin-sharp`

## How to use

```javascript
// In your gatsby-config.js
module.exports = {
plugins: [`gatsby-transformer-sharp`],
plugins: [`gatsby-plugin-sharp`,`gatsby-transformer-sharp`],
}
```

Expand Down
3 changes: 2 additions & 1 deletion packages/gatsby-transformer-sharp/package.json
Expand Up @@ -26,7 +26,8 @@
],
"license": "MIT",
"peerDependencies": {
"gatsby": ">2.0.0-alpha"
"gatsby": ">2.0.0-alpha",
"gatsby-plugin-sharp": "^2.0.0-beta.3"
},
"repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-sharp",
"scripts": {
Expand Down

0 comments on commit 4cdd3bf

Please sign in to comment.