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 819e069 commit 330ea99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/eslint-plugin-react-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"name": "eslint-plugin-react-hooks",
"description": "ESLint rules for React Hooks",
"version": "0.0.0",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/eslint-plugin-react-hooks"
},
"files": [
"LICENSE",
"README.md",
Expand Down

0 comments on commit 330ea99

Please sign in to comment.