Skip to content

Commit

Permalink
Add directory details to the package.json of all packages (#14628)
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.
  • Loading branch information
greysteil authored and gaearon committed Jan 18, 2019
1 parent 37d12af commit 4bcaf39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"version": "16.7.0",
"description": "React package for snapshot testing.",
"main": "index.js",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/react-test-renderer"
},
"keywords": [
"react",
"react-native",
Expand Down

0 comments on commit 4bcaf39

Please sign in to comment.