From 46de0227accae5092e6d2a3ab00d68df205ff7a6 Mon Sep 17 00:00:00 2001 From: Alvis HT Tang Date: Fri, 26 Jan 2018 10:57:26 +0000 Subject: [PATCH 1/2] 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. --- packages/gatsby-link/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/gatsby-link/package.json b/packages/gatsby-link/package.json index 1944e1a36bde1..d270f6ba373bb 100644 --- a/packages/gatsby-link/package.json +++ b/packages/gatsby-link/package.json @@ -17,12 +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" }, "dependencies": { + "@types/react-router-dom": "^4.2.2", "babel-runtime": "^6.26.0", "prop-types": "^15.5.8", + "react-router-dom": "^4.2.2", "ric": "^1.3.0" } } From b55b9d854325254e6656f69fdd389a9a87eccc1b Mon Sep 17 00:00:00 2001 From: Alvis HT Tang Date: Sat, 27 Jan 2018 17:00:28 +0000 Subject: [PATCH 2/2] chore(gatsby-link): declare gatsby v1 as a peer dependency --- packages/gatsby-link/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-link/package.json b/packages/gatsby-link/package.json index d270f6ba373bb..17c8d497fcfb5 100644 --- a/packages/gatsby-link/package.json +++ b/packages/gatsby-link/package.json @@ -19,11 +19,13 @@ "babel-cli": "^6.26.0", "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", - "react-router-dom": "^4.2.2", "ric": "^1.3.0" } }