From d6d18e29c0d16d6b5f6030157381584dfb85d4a9 Mon Sep 17 00:00:00 2001 From: Graham McGregor <2476733+Graham42@users.noreply.github.com> Date: Thu, 11 Jul 2019 05:55:03 -0400 Subject: [PATCH] chore: update all package repository fields (#15477) --- .circleci/config.yml | 1 + package.json | 1 + .../package.json | 6 ++ .../babel-preset-gatsby-package/package.json | 6 ++ packages/babel-preset-gatsby/package.json | 6 ++ packages/gatsby-cli/package.json | 6 +- packages/gatsby-codemods/package.json | 3 +- packages/gatsby-cypress/package.json | 6 +- packages/gatsby-dev-cli/package.json | 6 +- .../gatsby-graphiql-explorer/package.json | 3 +- packages/gatsby-image/package.json | 6 +- packages/gatsby-link/package.json | 6 +- packages/gatsby-page-utils/package.json | 7 +- .../gatsby-plugin-canonical-urls/package.json | 6 +- .../gatsby-plugin-catch-links/package.json | 6 +- .../gatsby-plugin-coffeescript/package.json | 6 +- .../package.json | 6 +- packages/gatsby-plugin-cxs/package.json | 6 +- packages/gatsby-plugin-emotion/package.json | 6 +- .../package.json | 3 +- packages/gatsby-plugin-feed/package.json | 6 +- packages/gatsby-plugin-flow/package.json | 3 +- packages/gatsby-plugin-fullstory/package.json | 3 +- packages/gatsby-plugin-glamor/package.json | 6 +- .../package.json | 6 +- .../gatsby-plugin-google-gtag/package.json | 6 +- .../package.json | 6 +- packages/gatsby-plugin-guess-js/package.json | 3 +- packages/gatsby-plugin-jss/package.json | 6 +- packages/gatsby-plugin-layout/package.json | 3 +- packages/gatsby-plugin-less/package.json | 6 +- packages/gatsby-plugin-lodash/package.json | 6 +- packages/gatsby-plugin-manifest/package.json | 6 +- packages/gatsby-plugin-mdx/package.json | 7 +- .../gatsby-plugin-netlify-cms/package.json | 6 +- packages/gatsby-plugin-netlify/package.json | 6 +- .../gatsby-plugin-no-sourcemaps/package.json | 6 +- packages/gatsby-plugin-nprogress/package.json | 6 +- packages/gatsby-plugin-offline/package.json | 6 +- .../gatsby-plugin-page-creator/package.json | 7 +- packages/gatsby-plugin-postcss/package.json | 6 +- packages/gatsby-plugin-preact/package.json | 6 +- .../package.json | 6 +- .../gatsby-plugin-react-helmet/package.json | 6 +- .../package.json | 6 +- packages/gatsby-plugin-sass/package.json | 6 +- packages/gatsby-plugin-sharp/package.json | 6 +- packages/gatsby-plugin-sitemap/package.json | 6 +- .../package.json | 6 +- .../gatsby-plugin-styled-jsx/package.json | 6 +- packages/gatsby-plugin-styletron/package.json | 6 +- packages/gatsby-plugin-stylus/package.json | 6 +- packages/gatsby-plugin-subfont/package.json | 3 +- packages/gatsby-plugin-twitter/package.json | 6 +- .../gatsby-plugin-typescript/package.json | 6 +- .../gatsby-plugin-typography/package.json | 6 +- .../gatsby-react-router-scroll/package.json | 6 +- .../package.json | 6 +- .../gatsby-remark-code-repls/package.json | 6 +- .../package.json | 6 +- .../gatsby-remark-custom-blocks/package.json | 6 +- .../gatsby-remark-embed-snippet/package.json | 6 +- packages/gatsby-remark-graphviz/package.json | 6 +- .../package.json | 6 ++ packages/gatsby-remark-images/package.json | 6 +- packages/gatsby-remark-katex/package.json | 6 +- packages/gatsby-remark-prismjs/package.json | 6 +- .../package.json | 6 +- .../gatsby-remark-smartypants/package.json | 6 +- .../gatsby-source-contentful/package.json | 6 +- packages/gatsby-source-drupal/package.json | 6 +- packages/gatsby-source-faker/package.json | 6 +- .../gatsby-source-filesystem/package.json | 6 +- packages/gatsby-source-graphql/package.json | 6 +- .../gatsby-source-hacker-news/package.json | 6 +- packages/gatsby-source-lever/package.json | 6 +- packages/gatsby-source-medium/package.json | 6 +- packages/gatsby-source-mongodb/package.json | 6 +- .../package.json | 6 ++ packages/gatsby-source-shopify/package.json | 8 +- packages/gatsby-source-wikipedia/package.json | 3 +- packages/gatsby-source-wordpress/package.json | 6 +- packages/gatsby-telemetry/package.json | 6 +- .../gatsby-transformer-asciidoc/package.json | 6 +- packages/gatsby-transformer-csv/package.json | 6 +- .../package.json | 6 +- .../gatsby-transformer-excel/package.json | 6 +- .../gatsby-transformer-hjson/package.json | 6 +- .../package.json | 7 +- .../package.json | 6 +- packages/gatsby-transformer-json/package.json | 6 +- packages/gatsby-transformer-pdf/package.json | 6 +- .../package.json | 6 +- .../gatsby-transformer-remark/package.json | 6 +- .../package.json | 6 +- .../gatsby-transformer-sharp/package.json | 6 +- packages/gatsby-transformer-sqip/package.json | 3 +- packages/gatsby-transformer-toml/package.json | 6 +- packages/gatsby-transformer-xml/package.json | 6 +- packages/gatsby-transformer-yaml/package.json | 6 +- packages/gatsby-utils/package.json | 5 +- packages/graphql-skip-limit/package.json | 6 +- scripts/check-repo-fields.js | 97 +++++++++++++++++++ themes/gatsby-theme-blog/package.json | 6 ++ themes/gatsby-theme-notes/package.json | 6 ++ 105 files changed, 589 insertions(+), 97 deletions(-) create mode 100644 scripts/check-repo-fields.js diff --git a/.circleci/config.yml b/.circleci/config.yml index 5d7836626dfc7..bf99bfb873fd8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -116,6 +116,7 @@ jobs: - <<: *persist_cache - run: yarn lint:code - run: yarn lint:other + - run: yarn check-repo-fields unit_tests_node8: executor: diff --git a/package.json b/package.json index 97777b66c26d8..ab94a13334812 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,7 @@ "scripts": { "bootstrap": "npm-run-all -s check-versions lerna-prepare", "check-versions": "babel-node scripts/check-versions.js", + "check-repo-fields": "babel-node scripts/check-repo-fields.js", "format": "npm run format:code && npm run format:other && npm run format:svg", "format:other": "npm run prettier -- --write", "format:code": "npm run lint:code -- --fix", diff --git a/packages/babel-plugin-remove-graphql-queries/package.json b/packages/babel-plugin-remove-graphql-queries/package.json index 2e40af4827aff..aa40c2ff4919d 100644 --- a/packages/babel-plugin-remove-graphql-queries/package.json +++ b/packages/babel-plugin-remove-graphql-queries/package.json @@ -2,6 +2,12 @@ "name": "babel-plugin-remove-graphql-queries", "version": "2.7.0", "author": "Jason Quense ", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/babel-plugin-remove-graphql-queries" + }, + "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-plugin-remove-graphql-queries#readme", "devDependencies": { "@babel/cli": "^7.0.0", "@babel/core": "^7.0.0", diff --git a/packages/babel-preset-gatsby-package/package.json b/packages/babel-preset-gatsby-package/package.json index 22ad14aad1254..09b8a9fcb61f0 100644 --- a/packages/babel-preset-gatsby-package/package.json +++ b/packages/babel-preset-gatsby-package/package.json @@ -2,6 +2,12 @@ "name": "babel-preset-gatsby-package", "version": "0.2.0", "author": "Philipp Spiess ", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/babel-preset-gatsby-package" + }, + "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby-package#readme", "dependencies": { "@babel/plugin-proposal-class-properties": "^7.0.0", "@babel/plugin-proposal-optional-chaining": "^7.0.0", diff --git a/packages/babel-preset-gatsby/package.json b/packages/babel-preset-gatsby/package.json index e003ceff4e370..6d15c63077cdc 100644 --- a/packages/babel-preset-gatsby/package.json +++ b/packages/babel-preset-gatsby/package.json @@ -2,6 +2,12 @@ "name": "babel-preset-gatsby", "version": "0.2.1", "author": "Philipp Spiess ", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/babel-preset-gatsby" + }, + "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby#readme", "dependencies": { "@babel/plugin-proposal-class-properties": "^7.0.0", "@babel/plugin-syntax-dynamic-import": "^7.0.0", diff --git a/packages/gatsby-cli/package.json b/packages/gatsby-cli/package.json index 7580f351d019d..4bbc90ef088fa 100644 --- a/packages/gatsby-cli/package.json +++ b/packages/gatsby-cli/package.json @@ -67,7 +67,11 @@ ], "license": "MIT", "main": "lib/index.js", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-cli", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-cli" + }, "scripts": { "build": "babel src --out-dir lib --ignore \"**/__tests__\"", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-codemods/package.json b/packages/gatsby-codemods/package.json index ec6d9007034ab..05645c0a3e382 100644 --- a/packages/gatsby-codemods/package.json +++ b/packages/gatsby-codemods/package.json @@ -19,7 +19,8 @@ "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-codemods#readme", "repository": { "type": "git", - "url": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-codemods" + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-codemods" }, "license": "MIT", "dependencies": { diff --git a/packages/gatsby-cypress/package.json b/packages/gatsby-cypress/package.json index 88feb11bbbd6a..91d2a9538875c 100644 --- a/packages/gatsby-cypress/package.json +++ b/packages/gatsby-cypress/package.json @@ -3,7 +3,11 @@ "version": "0.2.0", "description": "Cypress tools for Gatsby projects", "main": "index.js", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-cypress", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-cypress" + }, "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-cypress#readme", "author": "David Bailey ", "license": "MIT", diff --git a/packages/gatsby-dev-cli/package.json b/packages/gatsby-dev-cli/package.json index 6c5d9c0385670..676ec2dbc68e8 100644 --- a/packages/gatsby-dev-cli/package.json +++ b/packages/gatsby-dev-cli/package.json @@ -35,7 +35,11 @@ ], "license": "MIT", "main": "index.js", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-dev-cli", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-dev-cli" + }, "scripts": { "build": "babel src --out-dir dist --ignore \"**/__tests__\"", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-graphiql-explorer/package.json b/packages/gatsby-graphiql-explorer/package.json index cdf6f8d58b60c..ba9aa57a92356 100644 --- a/packages/gatsby-graphiql-explorer/package.json +++ b/packages/gatsby-graphiql-explorer/package.json @@ -23,7 +23,8 @@ "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-graphiql-explorer#readme", "repository": { "type": "git", - "url": "https://github.com/gatsbyjs/gatsby.git" + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-graphiql-explorer" }, "license": "MIT", "dependencies": { diff --git a/packages/gatsby-image/package.json b/packages/gatsby-image/package.json index 641282e1c8d87..20203c33189be 100644 --- a/packages/gatsby-image/package.json +++ b/packages/gatsby-image/package.json @@ -26,7 +26,11 @@ ], "license": "MIT", "main": "index.js", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-image", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-image" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-link/package.json b/packages/gatsby-link/package.json index af1c23298df2c..30c8621fcbbb7 100644 --- a/packages/gatsby-link/package.json +++ b/packages/gatsby-link/package.json @@ -30,7 +30,11 @@ "react": "^16.4.2", "react-dom": "^16.4.2" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-link", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-link" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-page-utils/package.json b/packages/gatsby-page-utils/package.json index ffe1e4866f921..a3dee1d61c9f6 100644 --- a/packages/gatsby-page-utils/package.json +++ b/packages/gatsby-page-utils/package.json @@ -13,7 +13,12 @@ ], "author": "Yvonnick FRIN ", "license": "MIT", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-page-utils", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-page-utils" + }, + "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-page-utils#readme", "dependencies": { "@babel/runtime": "^7.0.0", "bluebird": "^3.5.0", diff --git a/packages/gatsby-plugin-canonical-urls/package.json b/packages/gatsby-plugin-canonical-urls/package.json index 22c50f7e52f38..694f31add6575 100644 --- a/packages/gatsby-plugin-canonical-urls/package.json +++ b/packages/gatsby-plugin-canonical-urls/package.json @@ -25,7 +25,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-canonical-urls", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-canonical-urls" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-catch-links/package.json b/packages/gatsby-plugin-catch-links/package.json index 44fe18f430b4c..22eb9fd30c90b 100644 --- a/packages/gatsby-plugin-catch-links/package.json +++ b/packages/gatsby-plugin-catch-links/package.json @@ -26,7 +26,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-catch-links", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-catch-links" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-coffeescript/package.json b/packages/gatsby-plugin-coffeescript/package.json index 82a5aeaeaf977..7fb4c4c86a0a0 100644 --- a/packages/gatsby-plugin-coffeescript/package.json +++ b/packages/gatsby-plugin-coffeescript/package.json @@ -33,7 +33,11 @@ "gatsby": "^2.0.0" }, "readme": "README.md", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-coffeescript", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-coffeescript" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-create-client-paths/package.json b/packages/gatsby-plugin-create-client-paths/package.json index 879525c6adbfc..930f3e92245f9 100644 --- a/packages/gatsby-plugin-create-client-paths/package.json +++ b/packages/gatsby-plugin-create-client-paths/package.json @@ -25,7 +25,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-create-client-paths", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-create-client-paths" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-cxs/package.json b/packages/gatsby-plugin-cxs/package.json index eae79c68d6cfb..75485fe3102fc 100644 --- a/packages/gatsby-plugin-cxs/package.json +++ b/packages/gatsby-plugin-cxs/package.json @@ -28,7 +28,11 @@ "cxs": ">=5.0.0", "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-cxs", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-cxs" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-emotion/package.json b/packages/gatsby-plugin-emotion/package.json index 2a3df01375f2e..6af0b7a956896 100644 --- a/packages/gatsby-plugin-emotion/package.json +++ b/packages/gatsby-plugin-emotion/package.json @@ -29,7 +29,11 @@ "@emotion/core": "^10.0.5", "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-emotion" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-facebook-analytics/package.json b/packages/gatsby-plugin-facebook-analytics/package.json index b8d5cd7d826c2..d998412f934c7 100644 --- a/packages/gatsby-plugin-facebook-analytics/package.json +++ b/packages/gatsby-plugin-facebook-analytics/package.json @@ -29,7 +29,8 @@ }, "repository": { "type": "git", - "url": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-facebook-analytics" + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-facebook-analytics" }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", diff --git a/packages/gatsby-plugin-feed/package.json b/packages/gatsby-plugin-feed/package.json index 3d653404c21b5..b415910669924 100644 --- a/packages/gatsby-plugin-feed/package.json +++ b/packages/gatsby-plugin-feed/package.json @@ -32,7 +32,11 @@ "peerDependencies": { "gatsby": "^2.4.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-feed", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-feed" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-flow/package.json b/packages/gatsby-plugin-flow/package.json index f175cb07df34e..64d9b7a70f549 100644 --- a/packages/gatsby-plugin-flow/package.json +++ b/packages/gatsby-plugin-flow/package.json @@ -19,7 +19,8 @@ "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-flow#readme", "repository": { "type": "git", - "url": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-flow" + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-flow" }, "license": "MIT", "dependencies": { diff --git a/packages/gatsby-plugin-fullstory/package.json b/packages/gatsby-plugin-fullstory/package.json index 55da8a63b3e5b..8635169fc7a87 100644 --- a/packages/gatsby-plugin-fullstory/package.json +++ b/packages/gatsby-plugin-fullstory/package.json @@ -19,7 +19,8 @@ "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-fullstory#readme", "repository": { "type": "git", - "url": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-fullstory" + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-fullstory" }, "license": "MIT", "dependencies": { diff --git a/packages/gatsby-plugin-glamor/package.json b/packages/gatsby-plugin-glamor/package.json index bde9e1f3d2f3d..e9d14c68e4ea3 100644 --- a/packages/gatsby-plugin-glamor/package.json +++ b/packages/gatsby-plugin-glamor/package.json @@ -27,7 +27,11 @@ "gatsby": "^2.0.0", "glamor": "^2.20.29" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-glamor", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-glamor" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-google-analytics/package.json b/packages/gatsby-plugin-google-analytics/package.json index 47cb511f27cff..9ff781019beb7 100644 --- a/packages/gatsby-plugin-google-analytics/package.json +++ b/packages/gatsby-plugin-google-analytics/package.json @@ -29,7 +29,11 @@ "react": "^16.4.2", "react-dom": "^16.4.2" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-google-analytics", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-google-analytics" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-google-gtag/package.json b/packages/gatsby-plugin-google-gtag/package.json index 2beac470b8ab6..6ac9293558f6e 100644 --- a/packages/gatsby-plugin-google-gtag/package.json +++ b/packages/gatsby-plugin-google-gtag/package.json @@ -28,7 +28,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-google-gtag", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-google-gtag" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-google-tagmanager/package.json b/packages/gatsby-plugin-google-tagmanager/package.json index c9ed44885046f..a434e9867ed59 100644 --- a/packages/gatsby-plugin-google-tagmanager/package.json +++ b/packages/gatsby-plugin-google-tagmanager/package.json @@ -27,7 +27,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-google-tagmanager", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-google-tagmanager" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-guess-js/package.json b/packages/gatsby-plugin-guess-js/package.json index e23d1c79f6026..f055c929c6679 100644 --- a/packages/gatsby-plugin-guess-js/package.json +++ b/packages/gatsby-plugin-guess-js/package.json @@ -23,7 +23,8 @@ "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-guess-js#readme", "repository": { "type": "git", - "url": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-guess-js" + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-guess-js" }, "license": "MIT", "dependencies": { diff --git a/packages/gatsby-plugin-jss/package.json b/packages/gatsby-plugin-jss/package.json index 0ff8c34026f85..cdd1d4b88f10b 100644 --- a/packages/gatsby-plugin-jss/package.json +++ b/packages/gatsby-plugin-jss/package.json @@ -27,7 +27,11 @@ "peerDependencies": { "gatsby": "^2.0.32" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-jss", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-jss" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-layout/package.json b/packages/gatsby-plugin-layout/package.json index 493c76188655c..93334cf816566 100644 --- a/packages/gatsby-plugin-layout/package.json +++ b/packages/gatsby-plugin-layout/package.json @@ -19,7 +19,8 @@ "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-layout#readme", "repository": { "type": "git", - "url": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-layout" + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-layout" }, "license": "MIT", "dependencies": { diff --git a/packages/gatsby-plugin-less/package.json b/packages/gatsby-plugin-less/package.json index ca782540f01cd..60e1cf80594eb 100644 --- a/packages/gatsby-plugin-less/package.json +++ b/packages/gatsby-plugin-less/package.json @@ -28,7 +28,11 @@ "gatsby": "^2.0.0", "less": "^3.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-less", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-less" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__,theme-test.js", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-lodash/package.json b/packages/gatsby-plugin-lodash/package.json index ab1743d702604..103d8bc052594 100644 --- a/packages/gatsby-plugin-lodash/package.json +++ b/packages/gatsby-plugin-lodash/package.json @@ -27,7 +27,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-lodash", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-lodash" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-manifest/package.json b/packages/gatsby-plugin-manifest/package.json index 4b3dd9742481f..cf0bf20256938 100644 --- a/packages/gatsby-plugin-manifest/package.json +++ b/packages/gatsby-plugin-manifest/package.json @@ -32,7 +32,11 @@ "peerDependencies": { "gatsby": "^2.4.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-manifest" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-mdx/package.json b/packages/gatsby-plugin-mdx/package.json index 47c30140fdaec..936e3bf008971 100644 --- a/packages/gatsby-plugin-mdx/package.json +++ b/packages/gatsby-plugin-mdx/package.json @@ -4,10 +4,15 @@ "description": "mdx integration for gatsby", "main": "index.js", "license": "MIT", - "homepage": "https://github.com/ChristopherBiscardi/gatsby-mdx/tree/master/packages/gatsby-mdx#readme", + "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-mdx#readme", "scripts": { "test": "jest" }, + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-mdx" + }, "peerDependencies": { "@mdx-js/mdx": "^1.0.0", "@mdx-js/react": "^1.0.0" diff --git a/packages/gatsby-plugin-netlify-cms/package.json b/packages/gatsby-plugin-netlify-cms/package.json index 32c698ea58995..62413c54bde80 100644 --- a/packages/gatsby-plugin-netlify-cms/package.json +++ b/packages/gatsby-plugin-netlify-cms/package.json @@ -39,7 +39,11 @@ "react": "^16.8.4", "react-dom": "^16.8.4" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-netlify-cms", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-netlify-cms" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-netlify/package.json b/packages/gatsby-plugin-netlify/package.json index 699f44a8cf71e..3fcceedb7dead 100644 --- a/packages/gatsby-plugin-netlify/package.json +++ b/packages/gatsby-plugin-netlify/package.json @@ -37,7 +37,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-netlify", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-netlify" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-no-sourcemaps/package.json b/packages/gatsby-plugin-no-sourcemaps/package.json index f0eb6fbf154b7..e6533c12eea06 100644 --- a/packages/gatsby-plugin-no-sourcemaps/package.json +++ b/packages/gatsby-plugin-no-sourcemaps/package.json @@ -15,7 +15,11 @@ ], "license": "MIT", "main": "index.js", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-no-sourcemaps", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-no-sourcemaps" + }, "peerDependencies": { "gatsby": "^2.0.0" }, diff --git a/packages/gatsby-plugin-nprogress/package.json b/packages/gatsby-plugin-nprogress/package.json index 1e998d001e520..aea73557d57b8 100644 --- a/packages/gatsby-plugin-nprogress/package.json +++ b/packages/gatsby-plugin-nprogress/package.json @@ -26,7 +26,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-nprogress", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-nprogress" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-offline/package.json b/packages/gatsby-plugin-offline/package.json index 5db31635e8329..4295c02cd2f0d 100644 --- a/packages/gatsby-plugin-offline/package.json +++ b/packages/gatsby-plugin-offline/package.json @@ -34,7 +34,11 @@ "peerDependencies": { "gatsby": "^2.0.100" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-offline", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-offline" + }, "scripts": { "build": "npm run build:src && npm run build:sw-append", "build:src": "babel src --out-dir . --ignore **/__tests__,src/sw-append.js", diff --git a/packages/gatsby-plugin-page-creator/package.json b/packages/gatsby-plugin-page-creator/package.json index ee82eff0d0376..0a3386b19958e 100644 --- a/packages/gatsby-plugin-page-creator/package.json +++ b/packages/gatsby-plugin-page-creator/package.json @@ -17,7 +17,12 @@ "Steven Natera (https://twitter.com/stevennatera)" ], "license": "MIT", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-page-creator", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-page-creator" + }, + "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-page-creator#readme", "dependencies": { "@babel/runtime": "^7.0.0", "bluebird": "^3.5.0", diff --git a/packages/gatsby-plugin-postcss/package.json b/packages/gatsby-plugin-postcss/package.json index f3a03a481ee82..8385a84eebd51 100644 --- a/packages/gatsby-plugin-postcss/package.json +++ b/packages/gatsby-plugin-postcss/package.json @@ -28,7 +28,11 @@ "gatsby": "^2.0.0" }, "readme": "README.md", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-postcss", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-postcss" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-preact/package.json b/packages/gatsby-plugin-preact/package.json index 4500b31b5a62d..ab55582a98c7e 100644 --- a/packages/gatsby-plugin-preact/package.json +++ b/packages/gatsby-plugin-preact/package.json @@ -27,7 +27,11 @@ "gatsby": "^2.0.0", "preact": "^10.0.0-beta.1" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-preact", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-preact" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-react-css-modules/package.json b/packages/gatsby-plugin-react-css-modules/package.json index 2e9ea6c725933..c75973560c24b 100644 --- a/packages/gatsby-plugin-react-css-modules/package.json +++ b/packages/gatsby-plugin-react-css-modules/package.json @@ -34,7 +34,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-react-css-modules", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-react-css-modules" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-react-helmet/package.json b/packages/gatsby-plugin-react-helmet/package.json index 423612f60cd92..89f9acf806fc6 100644 --- a/packages/gatsby-plugin-react-helmet/package.json +++ b/packages/gatsby-plugin-react-helmet/package.json @@ -38,7 +38,11 @@ "gatsby": "^2.0.0", "react-helmet": "^5.1.3" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-react-helmet", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-react-helmet" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__,**/__mocks__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-remove-trailing-slashes/package.json b/packages/gatsby-plugin-remove-trailing-slashes/package.json index a2b5b5cf37969..d604a749ee8c0 100644 --- a/packages/gatsby-plugin-remove-trailing-slashes/package.json +++ b/packages/gatsby-plugin-remove-trailing-slashes/package.json @@ -25,7 +25,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-remove-trailing-slashes", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-remove-trailing-slashes" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-sass/package.json b/packages/gatsby-plugin-sass/package.json index 5308eab2d17a3..46bf846c6da88 100644 --- a/packages/gatsby-plugin-sass/package.json +++ b/packages/gatsby-plugin-sass/package.json @@ -30,7 +30,11 @@ "node-sass": "^4.9.0" }, "readme": "README.md", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-sass", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-sass" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-sharp/package.json b/packages/gatsby-plugin-sharp/package.json index 2b40f8139f143..de61bfc3e7801 100644 --- a/packages/gatsby-plugin-sharp/package.json +++ b/packages/gatsby-plugin-sharp/package.json @@ -42,7 +42,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-sharp", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-sharp" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-sitemap/package.json b/packages/gatsby-plugin-sitemap/package.json index 5dcfaf5c1954b..b9b853790a0cc 100644 --- a/packages/gatsby-plugin-sitemap/package.json +++ b/packages/gatsby-plugin-sitemap/package.json @@ -28,7 +28,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-sitemap", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-sitemap" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-styled-components/package.json b/packages/gatsby-plugin-styled-components/package.json index 79bb657387909..552147e4e64bd 100644 --- a/packages/gatsby-plugin-styled-components/package.json +++ b/packages/gatsby-plugin-styled-components/package.json @@ -28,7 +28,11 @@ "gatsby": "^2.0.32", "styled-components": ">=2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-styled-components", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-styled-components" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-styled-jsx/package.json b/packages/gatsby-plugin-styled-jsx/package.json index 88618457f948b..dffc538180b9d 100644 --- a/packages/gatsby-plugin-styled-jsx/package.json +++ b/packages/gatsby-plugin-styled-jsx/package.json @@ -27,7 +27,11 @@ "gatsby": "^2.0.0", "styled-jsx": "^3.0.2" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-styled-jsx", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-styled-jsx" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-styletron/package.json b/packages/gatsby-plugin-styletron/package.json index a3d6391803f4d..3d0f3a6b0788e 100644 --- a/packages/gatsby-plugin-styletron/package.json +++ b/packages/gatsby-plugin-styletron/package.json @@ -27,7 +27,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-styletron", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-styletron" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-stylus/package.json b/packages/gatsby-plugin-stylus/package.json index 0edf6e7c60e4f..902b563e59bf4 100644 --- a/packages/gatsby-plugin-stylus/package.json +++ b/packages/gatsby-plugin-stylus/package.json @@ -29,7 +29,11 @@ "gatsby": "^2.0.0" }, "readme": "README.md", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-stylus", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-stylus" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-subfont/package.json b/packages/gatsby-plugin-subfont/package.json index 1088d31538a13..13351ef429362 100644 --- a/packages/gatsby-plugin-subfont/package.json +++ b/packages/gatsby-plugin-subfont/package.json @@ -19,7 +19,8 @@ "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-subfont#readme", "repository": { "type": "git", - "url": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-subfont" + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-subfont" }, "license": "MIT", "dependencies": { diff --git a/packages/gatsby-plugin-twitter/package.json b/packages/gatsby-plugin-twitter/package.json index 91d0cc3e8a348..d59c1144b6f6c 100644 --- a/packages/gatsby-plugin-twitter/package.json +++ b/packages/gatsby-plugin-twitter/package.json @@ -25,7 +25,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-twitter", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-twitter" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-typescript/package.json b/packages/gatsby-plugin-typescript/package.json index 9729c09cd38fa..780de2cafa0a1 100644 --- a/packages/gatsby-plugin-typescript/package.json +++ b/packages/gatsby-plugin-typescript/package.json @@ -31,7 +31,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-typescript", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-typescript" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-plugin-typography/package.json b/packages/gatsby-plugin-typography/package.json index 260c6946dd0c0..f4e6636b6dac3 100644 --- a/packages/gatsby-plugin-typography/package.json +++ b/packages/gatsby-plugin-typography/package.json @@ -35,7 +35,11 @@ "react-typography": "^0.16.1 || ^1.0.0-alpha.0", "typography": "^0.16.0 || ^1.0.0-alpha.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-typography", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-plugin-typography" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-react-router-scroll/package.json b/packages/gatsby-react-router-scroll/package.json index 57018d08f6616..b1425ff05862a 100644 --- a/packages/gatsby-react-router-scroll/package.json +++ b/packages/gatsby-react-router-scroll/package.json @@ -30,7 +30,11 @@ "react": "^0.14.0 || ^15.0.0 || ^16.0.0", "react-dom": "^0.14.0 || ^15.0.0 || ^16.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-react-router-scroll", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-react-router-scroll" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-remark-autolink-headers/package.json b/packages/gatsby-remark-autolink-headers/package.json index 437876e6aa4cb..528c80fc37926 100644 --- a/packages/gatsby-remark-autolink-headers/package.json +++ b/packages/gatsby-remark-autolink-headers/package.json @@ -30,7 +30,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-autolink-headers", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-remark-autolink-headers" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-remark-code-repls/package.json b/packages/gatsby-remark-code-repls/package.json index 562fddea367b4..cf3aa5845741c 100644 --- a/packages/gatsby-remark-code-repls/package.json +++ b/packages/gatsby-remark-code-repls/package.json @@ -35,7 +35,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-code-repls", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-remark-code-repls" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-remark-copy-linked-files/package.json b/packages/gatsby-remark-copy-linked-files/package.json index 8561b95215f52..3ac972b0075ff 100644 --- a/packages/gatsby-remark-copy-linked-files/package.json +++ b/packages/gatsby-remark-copy-linked-files/package.json @@ -37,7 +37,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-copy-linked-files", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-remark-copy-linked-files" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-remark-custom-blocks/package.json b/packages/gatsby-remark-custom-blocks/package.json index abb39e7dbf8fc..ef91f109fb43c 100644 --- a/packages/gatsby-remark-custom-blocks/package.json +++ b/packages/gatsby-remark-custom-blocks/package.json @@ -35,7 +35,11 @@ "gatsby": "^2.0.0" }, "private": false, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-custom-blocks", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-remark-custom-blocks" + }, "scripts": { "build": "babel --out-dir . --ignore **/__tests__ src", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-remark-embed-snippet/package.json b/packages/gatsby-remark-embed-snippet/package.json index dbd8248bda143..d6f17c600a7a0 100644 --- a/packages/gatsby-remark-embed-snippet/package.json +++ b/packages/gatsby-remark-embed-snippet/package.json @@ -31,7 +31,11 @@ }, "license": "MIT", "main": "index.js", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-embed-snippet", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-remark-embed-snippet" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-remark-graphviz/package.json b/packages/gatsby-remark-graphviz/package.json index f927507f02211..67be56d8d1d44 100644 --- a/packages/gatsby-remark-graphviz/package.json +++ b/packages/gatsby-remark-graphviz/package.json @@ -39,7 +39,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-graphviz", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-remark-graphviz" + }, "scripts": { "build": "babel --out-dir . src --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-remark-images-contentful/package.json b/packages/gatsby-remark-images-contentful/package.json index 66ff396d5c3b7..0c5e264f37c9f 100644 --- a/packages/gatsby-remark-images-contentful/package.json +++ b/packages/gatsby-remark-images-contentful/package.json @@ -8,6 +8,12 @@ "prepare": "cross-env NODE_ENV=production npm run build", "watch": "babel -w src --out-dir . --ignore **/__tests__" }, + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-remark-images-contentful" + }, + "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-images-contentful#readme", "dependencies": { "@babel/runtime": "^7.0.0", "axios": "^0.19.0", diff --git a/packages/gatsby-remark-images/package.json b/packages/gatsby-remark-images/package.json index 751c1c2b34acd..256ab3ba055d9 100644 --- a/packages/gatsby-remark-images/package.json +++ b/packages/gatsby-remark-images/package.json @@ -39,7 +39,11 @@ "gatsby": "^2.0.0", "gatsby-plugin-sharp": "^2.0.0-beta.5" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-images", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-remark-images" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-remark-katex/package.json b/packages/gatsby-remark-katex/package.json index 739be20ceb8d6..242ec8351d547 100644 --- a/packages/gatsby-remark-katex/package.json +++ b/packages/gatsby-remark-katex/package.json @@ -31,7 +31,11 @@ "gatsby": "^2.0.0", "katex": "^0.10.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-katex", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-remark-katex" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-remark-prismjs/package.json b/packages/gatsby-remark-prismjs/package.json index d35b42df4b076..205f5da220f78 100644 --- a/packages/gatsby-remark-prismjs/package.json +++ b/packages/gatsby-remark-prismjs/package.json @@ -32,7 +32,11 @@ ], "license": "MIT", "main": "index.js", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-prismjs", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-remark-prismjs" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-remark-responsive-iframe/package.json b/packages/gatsby-remark-responsive-iframe/package.json index 649f0e71444a4..8ce35afe4aa2c 100644 --- a/packages/gatsby-remark-responsive-iframe/package.json +++ b/packages/gatsby-remark-responsive-iframe/package.json @@ -34,7 +34,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-responsive-iframe", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-remark-responsive-iframe" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-remark-smartypants/package.json b/packages/gatsby-remark-smartypants/package.json index 639bb18aa839a..e775324fa7ca3 100644 --- a/packages/gatsby-remark-smartypants/package.json +++ b/packages/gatsby-remark-smartypants/package.json @@ -29,7 +29,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-smartypants", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-remark-smartypants" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-source-contentful/package.json b/packages/gatsby-source-contentful/package.json index 25b8a66181728..288b1a5f101fa 100644 --- a/packages/gatsby-source-contentful/package.json +++ b/packages/gatsby-source-contentful/package.json @@ -39,7 +39,11 @@ "peerDependencies": { "gatsby": "^2.0.33" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-contentful", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-source-contentful" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-source-drupal/package.json b/packages/gatsby-source-drupal/package.json index 2fe47f6b09e73..99ee6828ec96e 100644 --- a/packages/gatsby-source-drupal/package.json +++ b/packages/gatsby-source-drupal/package.json @@ -31,7 +31,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-drupal", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-source-drupal" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-source-faker/package.json b/packages/gatsby-source-faker/package.json index 534af41c20fdd..1daf92bc982ac 100644 --- a/packages/gatsby-source-faker/package.json +++ b/packages/gatsby-source-faker/package.json @@ -27,7 +27,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-faker", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-source-faker" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-source-filesystem/package.json b/packages/gatsby-source-filesystem/package.json index f98dd5140a80c..59f6a6a50863f 100644 --- a/packages/gatsby-source-filesystem/package.json +++ b/packages/gatsby-source-filesystem/package.json @@ -37,7 +37,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-filesystem", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-source-filesystem" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-source-graphql/package.json b/packages/gatsby-source-graphql/package.json index 19f5b3a3e51e7..79cd43666704b 100644 --- a/packages/gatsby-source-graphql/package.json +++ b/packages/gatsby-source-graphql/package.json @@ -31,7 +31,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-graphql", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-source-graphql" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-source-hacker-news/package.json b/packages/gatsby-source-hacker-news/package.json index 1e51c31dd4315..f35b792990695 100644 --- a/packages/gatsby-source-hacker-news/package.json +++ b/packages/gatsby-source-hacker-news/package.json @@ -27,7 +27,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-hacker-news", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-source-hacker-news" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-source-lever/package.json b/packages/gatsby-source-lever/package.json index 12d576ca4d8ae..b5488480a43e7 100644 --- a/packages/gatsby-source-lever/package.json +++ b/packages/gatsby-source-lever/package.json @@ -33,7 +33,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-lever", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-source-lever" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-source-medium/package.json b/packages/gatsby-source-medium/package.json index 2bccc5ab894a5..aea101a4bc113 100644 --- a/packages/gatsby-source-medium/package.json +++ b/packages/gatsby-source-medium/package.json @@ -26,7 +26,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-medium", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-source-medium" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-source-mongodb/package.json b/packages/gatsby-source-mongodb/package.json index 00444da8705d2..63b82580723db 100644 --- a/packages/gatsby-source-mongodb/package.json +++ b/packages/gatsby-source-mongodb/package.json @@ -32,7 +32,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-mongodb", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-source-mongodb" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-source-npm-package-search/package.json b/packages/gatsby-source-npm-package-search/package.json index 671528f7164ee..958a9cf0efc85 100644 --- a/packages/gatsby-source-npm-package-search/package.json +++ b/packages/gatsby-source-npm-package-search/package.json @@ -3,6 +3,12 @@ "description": "Search NPM packages and pull NPM & GitHub metadata from Algolia's NPM index", "version": "2.1.0", "author": "james.a.stack@gmail.com", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-source-npm-package-search" + }, + "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-npm-package-search#readme", "dependencies": { "@babel/runtime": "^7.0.0", "algoliasearch": "^3.25.1" diff --git a/packages/gatsby-source-shopify/package.json b/packages/gatsby-source-shopify/package.json index a3da70bc27a91..58695193c9755 100644 --- a/packages/gatsby-source-shopify/package.json +++ b/packages/gatsby-source-shopify/package.json @@ -7,8 +7,12 @@ "prepare": "cross-env NODE_ENV=production npm run build", "watch": "npm run build -- --watch" }, - "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-shopfiy#readme", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-shopify", + "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-shopify#readme", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-source-shopify" + }, "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" }, diff --git a/packages/gatsby-source-wikipedia/package.json b/packages/gatsby-source-wikipedia/package.json index 2e2efbeeaff00..1260c0473a23f 100644 --- a/packages/gatsby-source-wikipedia/package.json +++ b/packages/gatsby-source-wikipedia/package.json @@ -24,7 +24,8 @@ }, "repository": { "type": "git", - "url": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-wikipedia" + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-source-wikipedia" }, "license": "MIT", "dependencies": { diff --git a/packages/gatsby-source-wordpress/package.json b/packages/gatsby-source-wordpress/package.json index d043f79d47181..392d764b13272 100644 --- a/packages/gatsby-source-wordpress/package.json +++ b/packages/gatsby-source-wordpress/package.json @@ -37,7 +37,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-wordpress", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-source-wordpress" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-telemetry/package.json b/packages/gatsby-telemetry/package.json index cb1a0495ab73a..2a71987b874d6 100644 --- a/packages/gatsby-telemetry/package.json +++ b/packages/gatsby-telemetry/package.json @@ -46,7 +46,11 @@ ], "license": "MIT", "main": "lib/index.js", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-telemetry", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-telemetry" + }, "scripts": { "build": "babel src --out-dir lib --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-asciidoc/package.json b/packages/gatsby-transformer-asciidoc/package.json index 9587a9c961674..848460f214719 100644 --- a/packages/gatsby-transformer-asciidoc/package.json +++ b/packages/gatsby-transformer-asciidoc/package.json @@ -27,7 +27,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-asciidoc", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-asciidoc" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-csv/package.json b/packages/gatsby-transformer-csv/package.json index f1a827804f696..e127f320e6f4b 100644 --- a/packages/gatsby-transformer-csv/package.json +++ b/packages/gatsby-transformer-csv/package.json @@ -29,7 +29,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-csv", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-csv" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-documentationjs/package.json b/packages/gatsby-transformer-documentationjs/package.json index 811f6ca99563f..0d63fd90e3000 100644 --- a/packages/gatsby-transformer-documentationjs/package.json +++ b/packages/gatsby-transformer-documentationjs/package.json @@ -29,7 +29,11 @@ "peerDependencies": { "gatsby": "^2.2.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-documentationjs", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-documentationjs" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-excel/package.json b/packages/gatsby-transformer-excel/package.json index 3a339c17027b3..f655fd7b80fd7 100644 --- a/packages/gatsby-transformer-excel/package.json +++ b/packages/gatsby-transformer-excel/package.json @@ -27,7 +27,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-excel", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-excel" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-hjson/package.json b/packages/gatsby-transformer-hjson/package.json index f602ada3e2491..ee0cf4ed1acac 100644 --- a/packages/gatsby-transformer-hjson/package.json +++ b/packages/gatsby-transformer-hjson/package.json @@ -27,7 +27,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-hjson", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-hjson" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-javascript-frontmatter/package.json b/packages/gatsby-transformer-javascript-frontmatter/package.json index 12729f8839bb2..43b5aa905c432 100644 --- a/packages/gatsby-transformer-javascript-frontmatter/package.json +++ b/packages/gatsby-transformer-javascript-frontmatter/package.json @@ -3,6 +3,7 @@ "description": "Gatsby transformer plugin for JavaScript to extract exports.frontmatter statically.", "version": "2.1.0", "author": "Jacob Bolda ", + "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-javascript-frontmatter#readme", "dependencies": { "@babel/parser": "^7.0.0", "@babel/runtime": "^7.0.0", @@ -25,7 +26,11 @@ "gatsby": "^2.0.15", "gatsby-source-filesystem": "^2.0.3" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-javascript-frontmatter", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-javascript-frontmatter" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-javascript-static-exports/package.json b/packages/gatsby-transformer-javascript-static-exports/package.json index 6d7f311909271..d233e206f962f 100644 --- a/packages/gatsby-transformer-javascript-static-exports/package.json +++ b/packages/gatsby-transformer-javascript-static-exports/package.json @@ -28,7 +28,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-javascript-static-exports", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-javascript-static-exports" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-json/package.json b/packages/gatsby-transformer-json/package.json index 2bb1d8581375e..bbef63eda7bcc 100644 --- a/packages/gatsby-transformer-json/package.json +++ b/packages/gatsby-transformer-json/package.json @@ -26,7 +26,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-json", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-json" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-pdf/package.json b/packages/gatsby-transformer-pdf/package.json index 6d2f9a2a6209d..89790968eba29 100644 --- a/packages/gatsby-transformer-pdf/package.json +++ b/packages/gatsby-transformer-pdf/package.json @@ -28,7 +28,11 @@ "peerDependencies": { "gatsby": "^2.0.0" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-pdf", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-pdf" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-react-docgen/package.json b/packages/gatsby-transformer-react-docgen/package.json index 264560d0b472c..59e10c0fadb2d 100644 --- a/packages/gatsby-transformer-react-docgen/package.json +++ b/packages/gatsby-transformer-react-docgen/package.json @@ -33,7 +33,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-react-docgen", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-react-docgen" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-remark/package.json b/packages/gatsby-transformer-remark/package.json index f50c2c25082b9..28540d85f996e 100644 --- a/packages/gatsby-transformer-remark/package.json +++ b/packages/gatsby-transformer-remark/package.json @@ -45,7 +45,11 @@ "peerDependencies": { "gatsby": "^2.0.88" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-remark", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-remark" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-screenshot/package.json b/packages/gatsby-transformer-screenshot/package.json index d0ce52aa5188b..a979e20af3bb5 100644 --- a/packages/gatsby-transformer-screenshot/package.json +++ b/packages/gatsby-transformer-screenshot/package.json @@ -27,7 +27,11 @@ "peerDependencies": { "gatsby": "^2.0.33" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-screenshot", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-screenshot" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "build-lambda-package": "npm run prepare-lambda-package && cp chrome/headless_shell.tar.gz lambda-dist && cd lambda-dist && zip -rq ../lambda-package.zip .", diff --git a/packages/gatsby-transformer-sharp/package.json b/packages/gatsby-transformer-sharp/package.json index cb41a264d6422..adab3495c680e 100644 --- a/packages/gatsby-transformer-sharp/package.json +++ b/packages/gatsby-transformer-sharp/package.json @@ -33,7 +33,11 @@ "gatsby": "^2.0.33", "gatsby-plugin-sharp": "^2.0.0-beta.3" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-sharp", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-sharp" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-sqip/package.json b/packages/gatsby-transformer-sqip/package.json index 0037b616ed700..539e391c7ef06 100644 --- a/packages/gatsby-transformer-sqip/package.json +++ b/packages/gatsby-transformer-sqip/package.json @@ -39,7 +39,8 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-sqip" + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-sqip" }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", diff --git a/packages/gatsby-transformer-toml/package.json b/packages/gatsby-transformer-toml/package.json index 6797d2f39adec..070eb9cef9e4e 100644 --- a/packages/gatsby-transformer-toml/package.json +++ b/packages/gatsby-transformer-toml/package.json @@ -27,7 +27,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-toml", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-toml" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-xml/package.json b/packages/gatsby-transformer-xml/package.json index ce2d0de6f1252..67432bbde1e8c 100644 --- a/packages/gatsby-transformer-xml/package.json +++ b/packages/gatsby-transformer-xml/package.json @@ -28,7 +28,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-xml", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-xml" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-transformer-yaml/package.json b/packages/gatsby-transformer-yaml/package.json index ac519c464c52b..5ee74c9e741c0 100644 --- a/packages/gatsby-transformer-yaml/package.json +++ b/packages/gatsby-transformer-yaml/package.json @@ -28,7 +28,11 @@ "peerDependencies": { "gatsby": "^2.0.15" }, - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-yaml", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-transformer-yaml" + }, "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/packages/gatsby-utils/package.json b/packages/gatsby-utils/package.json index 2c2972de6699a..78c8efcebf649 100644 --- a/packages/gatsby-utils/package.json +++ b/packages/gatsby-utils/package.json @@ -7,12 +7,13 @@ "gatsby-core-utils" ], "author": "Ward Peeters ", - "homepage": "https://www.gatsbyjs.org/", + "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-utils#readme", "license": "MIT", "main": "dist/index.js", "repository": { "type": "git", - "url": "git+https://github.com/gatsbyjs/gatsby.git" + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/gatsby-utils" }, "scripts": { "build": "babel src --out-dir dist/ --ignore **/__tests__", diff --git a/packages/graphql-skip-limit/package.json b/packages/graphql-skip-limit/package.json index e3bcf94780dfc..91762bc1708f3 100644 --- a/packages/graphql-skip-limit/package.json +++ b/packages/graphql-skip-limit/package.json @@ -26,7 +26,11 @@ ], "license": "MIT", "main": "dist/index.js", - "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/graphql-skip-limit", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "packages/graphql-skip-limit" + }, "scripts": { "build": "babel src --out-dir dist", "prepare": "cross-env NODE_ENV=production npm run build", diff --git a/scripts/check-repo-fields.js b/scripts/check-repo-fields.js new file mode 100644 index 0000000000000..64a9338713a08 --- /dev/null +++ b/scripts/check-repo-fields.js @@ -0,0 +1,97 @@ +//@ts-check +const path = require(`path`) +const fs = require(`fs`) +const { getPackages } = require(`@lerna/project`) +const yargs = require(`yargs`) +const _ = require(`lodash`) + +const GIT_REPO_URL = `https://github.com/gatsbyjs/gatsby` +const MAIN_PKG_NAME = `gatsby` + +// if a key has not been set before, let's try and insert it so +// that it's not the last key in the package.json which makes merge +// conflicts more likely +function insertKeyAvoidMergeConflict(pkgJson, key, value) { + if (pkgJson[key]) { + pkgJson[key] = value + return pkgJson + } else { + const newPkgJson = {} + let inserted = false + for (const pkgKey in pkgJson) { + if (!inserted && /depend/i.test(pkgKey)) { + inserted = true + newPkgJson[key] = value + } + newPkgJson[pkgKey] = pkgJson[pkgKey] + } + return newPkgJson + } +} + +async function main() { + let argv = yargs.option(`fix`, { + default: false, + describe: `Fixes outdated dependencies`, + }).argv + + const rootDir = process.cwd() + + const packages = await getPackages(rootDir) + + let warned = false + + await Promise.all( + packages.map(async pkg => { + // If this is the main gastby package we don't want to override + if (pkg.name === MAIN_PKG_NAME || pkg.private) { + // eslint complains if we don't consistently return the same type + return Promise.resolve() + } + + let pkgJson = pkg.toJSON() + const relativeLocation = path.relative(rootDir, pkg.location) + + pkgJson = insertKeyAvoidMergeConflict(pkgJson, `repository`, { + type: `git`, + url: `${GIT_REPO_URL}.git`, + directory: relativeLocation, + }) + + pkgJson = insertKeyAvoidMergeConflict( + pkgJson, + `homepage`, + `${GIT_REPO_URL}/tree/master/${relativeLocation}#readme` + ) + + if (argv.fix) { + return new Promise((resolve, reject) => { + fs.writeFile( + path.join(relativeLocation, `package.json`), + JSON.stringify(pkgJson, null, 2) + `\n`, + `utf8`, + err => { + if (err) reject(err) + else resolve() + } + ) + }) + } else { + if (!_.isEqual(pkg.toJSON(), pkgJson)) { + warned = true + console.error( + `[${pkg.name}]` + + ` repository and/or homepage field in package.json are out of date.` + + `Run "yarn run check-repo-fields -- --fix" to update.` + ) + } + // eslint complains if we don't consistently return the same type + return Promise.resolve() + } + }) + ) + if (warned) { + process.exit(1) + } +} +main() diff --git a/themes/gatsby-theme-blog/package.json b/themes/gatsby-theme-blog/package.json index bf584084e59db..bfeac2bd1107b 100644 --- a/themes/gatsby-theme-blog/package.json +++ b/themes/gatsby-theme-blog/package.json @@ -11,6 +11,12 @@ "blog" ], "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "themes/gatsby-theme-blog" + }, + "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/themes/gatsby-theme-blog#readme", "dependencies": { "@emotion/core": "^10.0.14", "@mdx-js/mdx": "^1.0.23", diff --git a/themes/gatsby-theme-notes/package.json b/themes/gatsby-theme-notes/package.json index dd931fbe8e069..3aaca050a27c7 100644 --- a/themes/gatsby-theme-notes/package.json +++ b/themes/gatsby-theme-notes/package.json @@ -13,6 +13,12 @@ "notes", "digital-garden" ], + "repository": { + "type": "git", + "url": "https://github.com/gatsbyjs/gatsby.git", + "directory": "themes/gatsby-theme-notes" + }, + "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/themes/gatsby-theme-notes#readme", "devDependencies": { "gatsby": "^2.13.13", "react": "^16.8.6",