Skip to content

Commit

Permalink
Add directory details to packages/*/package.json (#3301)
Browse files Browse the repository at this point in the history
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](npm/rfcs#19).
  • Loading branch information
feelepxyz authored and giladgray committed Jan 21, 2019
1 parent bf3b09d commit 40d2c22
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 18 deletions.
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/core"
},
"keywords": [
"palantir",
Expand Down
3 changes: 2 additions & 1 deletion packages/datetime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/datetime"
},
"keywords": [
"palantir",
Expand Down
3 changes: 2 additions & 1 deletion packages/docs-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/docs-app"
},
"keywords": [
"palantir",
Expand Down
3 changes: 2 additions & 1 deletion packages/docs-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/docs-data"
},
"author": "Palantir Technologies",
"license": "SEE LICENSE IN REPO ROOT"
Expand Down
3 changes: 2 additions & 1 deletion packages/docs-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/docs-theme"
},
"keywords": [
"palantir",
Expand Down
3 changes: 2 additions & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/icons"
},
"keywords": [
"palantir",
Expand Down
3 changes: 2 additions & 1 deletion packages/karma-build-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/karma-build-scripts"
},
"author": "Palantir Technologies",
"license": "SEE LICENSE IN LICENSE"
Expand Down
3 changes: 2 additions & 1 deletion packages/labs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/labs"
},
"keywords": [
"palantir",
Expand Down
3 changes: 2 additions & 1 deletion packages/landing-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/landing-app"
},
"keywords": [
"blueprint",
Expand Down
3 changes: 2 additions & 1 deletion packages/node-build-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/node-build-scripts"
},
"author": "Palantir Technologies",
"license": "SEE LICENSE IN LICENSE"
Expand Down
3 changes: 2 additions & 1 deletion packages/select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/select"
},
"keywords": [
"palantir",
Expand Down
3 changes: 2 additions & 1 deletion packages/table-dev-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/table-dev-app"
},
"author": "Palantir Technologies",
"license": "SEE LICENSE IN REPO ROOT"
Expand Down
3 changes: 2 additions & 1 deletion packages/table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/table"
},
"keywords": [
"palantir",
Expand Down
3 changes: 2 additions & 1 deletion packages/test-commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/test-commons"
},
"author": "Palantir Technologies",
"license": "SEE LICENSE IN LICENSE"
Expand Down
3 changes: 2 additions & 1 deletion packages/test-react15/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/test-react15"
},
"author": "Palantir Technologies",
"license": "SEE LICENSE IN REPO ROOT"
Expand Down
3 changes: 2 additions & 1 deletion packages/timezone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/timezone"
},
"keywords": [
"palantir",
Expand Down
3 changes: 2 additions & 1 deletion packages/tslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/tslint-config"
},
"author": "Palantir Technologies",
"license": "SEE LICENSE IN LICENSE"
Expand Down
3 changes: 2 additions & 1 deletion packages/webpack-build-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
},
"repository": {
"type": "git",
"url": "[email protected]:palantir/blueprint.git"
"url": "[email protected]:palantir/blueprint.git",
"directory": "packages/webpack-build-scripts"
},
"author": "Palantir Technologies",
"license": "SEE LICENSE IN LICENSE"
Expand Down

1 comment on commit 40d2c22

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add directory details to packages/*/package.json (#3301)

Previews: documentation | landing | table

Please sign in to comment.