Skip to content

Commit 4bcaf39

Browse files
greysteilgaearon
authored andcommitted
Add directory details to the package.json of all packages (#14628)
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.
1 parent 37d12af commit 4bcaf39

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
"version": "16.7.0",
44
"description": "React package for snapshot testing.",
55
"main": "index.js",
6-
"repository": "facebook/react",
6+
"repository": {
7+
"type" : "git",
8+
"url" : "https://github.com/facebook/react.git",
9+
"directory": "packages/react-test-renderer"
10+
},
711
"keywords": [
812
"react",
913
"react-native",

0 commit comments

Comments
 (0)