Skip to content

Commit 4f54666

Browse files
feelepxyzianschmitz
authored andcommitted
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](npm/rfcs#19).
1 parent acdca98 commit 4f54666

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"name": "react-scripts",
33
"version": "2.1.8",
44
"description": "Configuration and scripts for Create React App.",
5-
"repository": "facebook/create-react-app",
5+
"repository": {
6+
"type" : "git",
7+
"url" : "https://github.com/facebook/create-react-app.git",
8+
"directory": "packages/react-scripts"
9+
},
610
"license": "MIT",
711
"engines": {
812
"node": ">=8.10"
@@ -59,7 +63,7 @@
5963
"pnp-webpack-plugin": "1.2.1",
6064
"postcss-flexbugs-fixes": "4.1.0",
6165
"postcss-loader": "3.0.0",
62-
"postcss-normalize": "7.0.1",
66+
"postcss-normalize": "7.0.1",
6367
"postcss-preset-env": "6.6.0",
6468
"postcss-safe-parser": "4.0.1",
6569
"react-app-polyfill": "^0.2.2",

0 commit comments

Comments
 (0)