Skip to content

Commit 22eec8b

Browse files
authored
Merge pull request #3 from sylvaindumont/master
move sharp to peerDependencies
2 parents bf7ead3 + ba51bad commit 22eec8b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ This is an adapter module for using [smartcrop.js](https://github.com/jwagner/sm
66
with node.js using [sharp](https://github.com/lovell/sharp) for image decoding.
77

88
## Installation
9+
10+
You'll need to install `sharp` alongside `smartcrop-sharp`.
11+
912
```
10-
npm install --save smartcrop-sharp
13+
npm install --save smartcrop-sharp sharp
1114
```
1215

1316
## API

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99
"author": "Jonas Wagner <[email protected]>",
1010
"license": "MIT",
1111
"dependencies": {
12-
"sharp": "^0.16.0",
1312
"smartcrop": "^1.1.1"
1413
},
14+
"peerDependencies": {
15+
"sharp": "^0.19.0"
16+
},
1517
"devDependencies": {
1618
"chai": "^3.5.0",
19+
"sharp": "^0.19.0",
1720
"mocha": "^3.0.2"
1821
}
1922
}

0 commit comments

Comments
 (0)