From 40d2c2202b32a56f925cdac149d143883e3b15ff Mon Sep 17 00:00:00 2001 From: Philip Harrison Date: Mon, 21 Jan 2019 19:01:20 +0000 Subject: [PATCH] Add directory details to packages/*/package.json (#3301) Specifying the directory as part of the `repository` field in a `package.json` allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in [npm/rfcs#19](https://github.com/npm/rfcs/pull/19). --- packages/core/package.json | 3 ++- packages/datetime/package.json | 3 ++- packages/docs-app/package.json | 3 ++- packages/docs-data/package.json | 3 ++- packages/docs-theme/package.json | 3 ++- packages/icons/package.json | 3 ++- packages/karma-build-scripts/package.json | 3 ++- packages/labs/package.json | 3 ++- packages/landing-app/package.json | 3 ++- packages/node-build-scripts/package.json | 3 ++- packages/select/package.json | 3 ++- packages/table-dev-app/package.json | 3 ++- packages/table/package.json | 3 ++- packages/test-commons/package.json | 3 ++- packages/test-react15/package.json | 3 ++- packages/timezone/package.json | 3 ++- packages/tslint-config/package.json | 3 ++- packages/webpack-build-scripts/package.json | 3 ++- 18 files changed, 36 insertions(+), 18 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 9b25ef5b36a..bce98ac4912 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -72,7 +72,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/core" }, "keywords": [ "palantir", diff --git a/packages/datetime/package.json b/packages/datetime/package.json index a63c0e6d5f4..ac3d7fb4a96 100644 --- a/packages/datetime/package.json +++ b/packages/datetime/package.json @@ -56,7 +56,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/datetime" }, "keywords": [ "palantir", diff --git a/packages/docs-app/package.json b/packages/docs-app/package.json index 54923605b50..dfffbcdf83f 100644 --- a/packages/docs-app/package.json +++ b/packages/docs-app/package.json @@ -49,7 +49,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/docs-app" }, "keywords": [ "palantir", diff --git a/packages/docs-data/package.json b/packages/docs-data/package.json index ab3a92a9c97..d91c4e7bf79 100644 --- a/packages/docs-data/package.json +++ b/packages/docs-data/package.json @@ -23,7 +23,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/docs-data" }, "author": "Palantir Technologies", "license": "SEE LICENSE IN REPO ROOT" diff --git a/packages/docs-theme/package.json b/packages/docs-theme/package.json index a9c83a1b517..52242715522 100644 --- a/packages/docs-theme/package.json +++ b/packages/docs-theme/package.json @@ -48,7 +48,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/docs-theme" }, "keywords": [ "palantir", diff --git a/packages/icons/package.json b/packages/icons/package.json index fc622c55eac..70becde350f 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -52,7 +52,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/icons" }, "keywords": [ "palantir", diff --git a/packages/karma-build-scripts/package.json b/packages/karma-build-scripts/package.json index 3e6c561c267..124443e0564 100644 --- a/packages/karma-build-scripts/package.json +++ b/packages/karma-build-scripts/package.json @@ -22,7 +22,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/karma-build-scripts" }, "author": "Palantir Technologies", "license": "SEE LICENSE IN LICENSE" diff --git a/packages/labs/package.json b/packages/labs/package.json index 12901f4cbbe..f26b83a63ce 100644 --- a/packages/labs/package.json +++ b/packages/labs/package.json @@ -54,7 +54,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/labs" }, "keywords": [ "palantir", diff --git a/packages/landing-app/package.json b/packages/landing-app/package.json index 3d6e692890e..7415576a3e3 100644 --- a/packages/landing-app/package.json +++ b/packages/landing-app/package.json @@ -31,7 +31,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/landing-app" }, "keywords": [ "blueprint", diff --git a/packages/node-build-scripts/package.json b/packages/node-build-scripts/package.json index 08d99473b53..27ea08f25a9 100644 --- a/packages/node-build-scripts/package.json +++ b/packages/node-build-scripts/package.json @@ -30,7 +30,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/node-build-scripts" }, "author": "Palantir Technologies", "license": "SEE LICENSE IN LICENSE" diff --git a/packages/select/package.json b/packages/select/package.json index d1037f2a35c..942bdbb37c3 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -54,7 +54,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/select" }, "keywords": [ "palantir", diff --git a/packages/table-dev-app/package.json b/packages/table-dev-app/package.json index f004f19b6a2..b6a1cac36c2 100644 --- a/packages/table-dev-app/package.json +++ b/packages/table-dev-app/package.json @@ -33,7 +33,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/table-dev-app" }, "author": "Palantir Technologies", "license": "SEE LICENSE IN REPO ROOT" diff --git a/packages/table/package.json b/packages/table/package.json index b1cda69c72c..6356c291d17 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -57,7 +57,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/table" }, "keywords": [ "palantir", diff --git a/packages/test-commons/package.json b/packages/test-commons/package.json index 507c104ef74..c3019b9916a 100644 --- a/packages/test-commons/package.json +++ b/packages/test-commons/package.json @@ -27,7 +27,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/test-commons" }, "author": "Palantir Technologies", "license": "SEE LICENSE IN LICENSE" diff --git a/packages/test-react15/package.json b/packages/test-react15/package.json index 6fec408cc31..d559917ab75 100644 --- a/packages/test-react15/package.json +++ b/packages/test-react15/package.json @@ -11,7 +11,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/test-react15" }, "author": "Palantir Technologies", "license": "SEE LICENSE IN REPO ROOT" diff --git a/packages/timezone/package.json b/packages/timezone/package.json index 4e8a1746048..f4a115a3693 100644 --- a/packages/timezone/package.json +++ b/packages/timezone/package.json @@ -57,7 +57,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/timezone" }, "keywords": [ "palantir", diff --git a/packages/tslint-config/package.json b/packages/tslint-config/package.json index e8af24798da..958e3cd5fef 100644 --- a/packages/tslint-config/package.json +++ b/packages/tslint-config/package.json @@ -18,7 +18,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/tslint-config" }, "author": "Palantir Technologies", "license": "SEE LICENSE IN LICENSE" diff --git a/packages/webpack-build-scripts/package.json b/packages/webpack-build-scripts/package.json index aadda50cb17..ff38829974a 100644 --- a/packages/webpack-build-scripts/package.json +++ b/packages/webpack-build-scripts/package.json @@ -26,7 +26,8 @@ }, "repository": { "type": "git", - "url": "git@github.com:palantir/blueprint.git" + "url": "git@github.com:palantir/blueprint.git", + "directory": "packages/webpack-build-scripts" }, "author": "Palantir Technologies", "license": "SEE LICENSE IN LICENSE"