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

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).
This commit is contained in:
Philip Harrison
2019-04-16 15:58:03 +01:00
committed by Ian Schmitz
parent 207d9315b1
commit ced3fd49ca
9 changed files with 47 additions and 11 deletions

View File

@@ -2,7 +2,11 @@
"name": "react-dev-utils",
"version": "8.0.0",
"description": "Webpack utilities used by Create React App",
"repository": "facebook/create-react-app",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/create-react-app.git",
"directory": "packages/react-dev-utils"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/facebook/create-react-app/issues"