Skip to content

Commit

Permalink
fix(gatsby-link): correct dependency declaration (#3707)
Browse files Browse the repository at this point in the history
* fix(gatsby-link): correct dependency declaration

The code depends on `react-router-dom`, and therefore it should be declared as a
direct dependency, not a dev one. Also, it needs `@types/react-router-dom` for
index.d.ts.

* chore(gatsby-link): declare gatsby v1 as a peer dependency
  • Loading branch information
alvis authored and KyleAMathews committed Jan 27, 2018
1 parent 6842c4a commit 857ffd9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/gatsby-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.26.0",
"cross-env": "^5.0.5",
"react-router-dom": "^4.2.2"
"cross-env": "^5.0.5"
},
"peerDependencies": {
"gatsby": "^1.0.0"
},
"dependencies": {
"@types/react-router-dom": "^4.2.2",
"babel-runtime": "^6.26.0",
"prop-types": "^15.5.8",
"ric": "^1.3.0"
Expand Down

0 comments on commit 857ffd9

Please sign in to comment.