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 https://github.com/npm/rfcs/pull/19.
Grey Baker committed
Jan 18, 2019 at 20:21 UTC
b66e6e41e606745b30238689fa1a98e874b29e6e
16 files changed
+80
-16
packages/create-subscription/package.json
+5
-1
@@ -2,7 +2,11 @@
2
"name": "create-subscription",
3
"description": "utility for subscribing to external data sources inside React components",
4
"version": "16.7.0",
5
- "repository": "facebook/react",
5
+ "repository": {
6
+ "type" : "git",
7
+ "url" : "https://github.com/facebook/react.git",
8
+ "directory": "packages/create-subscription"
9
+ },
10
"files": [
11
"LICENSE",
12
"README.md",
packages/eslint-plugin-react-hooks/package.json
+5
-1
@@ -3,7 +3,11 @@
3
"name": "eslint-plugin-react-hooks",
4
"description": "ESLint rules for React Hooks",
5
"version": "0.0.0",
6
- "repository": "facebook/react",
6
+ "repository": {
7
+ "type" : "git",
8
+ "url" : "https://github.com/facebook/react.git",
9
+ "directory": "packages/eslint-plugin-react-hooks"
10
+ },
11
"files": [
12
"LICENSE",
13
"README.md",
packages/jest-mock-scheduler/package.json
+5
-1
@@ -4,7 +4,11 @@
4
"version": "0.1.0",
5
"description": "Jest matchers and utilities for testing the scheduler package.",
6
"main": "index.js",
7
- "repository": "facebook/react",
7
+ "repository": {
8
+ "type" : "git",
9
+ "url" : "https://github.com/facebook/react.git",
10
+ "directory": "packages/jest-mock-scheduler"
11
+ },
12
"keywords": [
13
"jest",
14
"scheduler"
packages/jest-react/package.json
+5
-1
@@ -3,7 +3,11 @@
3
"version": "0.5.0",
4
"description": "Jest matchers and utilities for testing React components.",
5
"main": "index.js",
6
- "repository": "facebook/react",
6
+ "repository": {
7
+ "type" : "git",
8
+ "url" : "https://github.com/facebook/react.git",
9
+ "directory": "packages/jest-react"
10
+ },
11
"keywords": [
12
"react",
13
"jest",
packages/react-art/package.json
+5
-1
@@ -3,7 +3,11 @@
3
"description": "React ART is a JavaScript library for drawing vector graphics using React. It provides declarative and reactive bindings to the ART library. Using the same declarative API you can render the output to either Canvas, SVG or VML (IE8).",
4
"version": "16.7.0",
5
"main": "index.js",
6
- "repository": "facebook/react",
6
+ "repository": {
7
+ "type" : "git",
8
+ "url" : "https://github.com/facebook/react.git",
9
+ "directory": "packages/react-art"
10
+ },
11
"keywords": [
12
"react",
13
"art",
packages/react-cache/package.json
+5
-1
@@ -3,7 +3,11 @@
3
"name": "react-cache",
4
"description": "A basic cache for React applications",
5
"version": "2.0.0-alpha.0",
6
- "repository": "facebook/react",
6
+ "repository": {
7
+ "type" : "git",
8
+ "url" : "https://github.com/facebook/react.git",
9
+ "directory": "packages/react-cache"
10
+ },
11
"files": [
12
"LICENSE",
13
"README.md",
packages/react-debug-tools/package.json
+5
-1
@@ -17,7 +17,11 @@
17
"cjs/"
18
],
19
"main": "index.js",
20
- "repository": "facebook/react",
20
+ "repository": {
21
+ "type" : "git",
22
+ "url" : "https://github.com/facebook/react.git",
23
+ "directory": "packages/react-debug-tools"
24
+ },
25
"engines": {
26
"node": ">=0.10.0"
27
},
packages/react-dom/package.json
+5
-1
@@ -3,7 +3,11 @@
3
"version": "16.7.0",
4
"description": "React package for working with the DOM.",
5
"main": "index.js",
6
- "repository": "facebook/react",
6
+ "repository": {
7
+ "type" : "git",
8
+ "url" : "https://github.com/facebook/react.git",
9
+ "directory": "packages/react-dom"
10
+ },
11
"keywords": [
12
"react"
13
],
packages/react-is/package.json
+5
-1
@@ -3,7 +3,11 @@
3
"version": "16.7.0",
4
"description": "Brand checking of React Elements.",
5
"main": "index.js",
6
- "repository": "facebook/react",
6
+ "repository": {
7
+ "type" : "git",
8
+ "url" : "https://github.com/facebook/react.git",
9
+ "directory": "packages/react-is"
10
+ },
11
"keywords": [
12
"react"
13
],
packages/react-native-renderer/package.json
+5
-1
@@ -2,7 +2,11 @@
2
"name": "react-native-renderer",
3
"version": "16.0.0",
4
"private": true,
5
- "repository": "facebook/react",
5
+ "repository": {
6
+ "type" : "git",
7
+ "url" : "https://github.com/facebook/react.git",
8
+ "directory": "packages/react-native-renderer"
9
+ },
10
"dependencies": {
11
"object-assign": "^4.1.1",
12
"prop-types": "^15.6.2",
packages/react-noop-renderer/package.json
+5
-1
@@ -4,7 +4,11 @@
4
"private": true,
5
"description": "React package for testing the Fiber reconciler.",
6
"main": "index.js",
7
- "repository": "facebook/react",
7
+ "repository": {
8
+ "type" : "git",
9
+ "url" : "https://github.com/facebook/react.git",
10
+ "directory": "packages/react-noop-renderer"
11
+ },
12
"license": "MIT",
13
"dependencies": {
14
"object-assign": "^4.1.1",
packages/react-reconciler/package.json
+5
-1
@@ -18,7 +18,11 @@
18
"cjs/"
19
],
20
"main": "index.js",
21
- "repository": "facebook/react",
21
+ "repository": {
22
+ "type" : "git",
23
+ "url" : "https://github.com/facebook/react.git",
24
+ "directory": "packages/react-reconciler"
25
+ },
26
"engines": {
27
"node": ">=0.10.0"
28
},
packages/react-stream/package.json
+5
-1
@@ -16,7 +16,11 @@
16
"cjs/"
17
],
18
"main": "index.js",
19
- "repository": "facebook/react",
19
+ "repository": {
20
+ "type" : "git",
21
+ "url" : "https://github.com/facebook/react.git",
22
+ "directory": "packages/react-stream"
23
+ },
24
"engines": {
25
"node": ">=0.10.0"
26
},
packages/react-test-renderer/package.json
+5
-1
@@ -3,7 +3,11 @@
3
"version": "16.7.0",
4
"description": "React package for snapshot testing.",
5
"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
+ },
11
"keywords": [
12
"react",
13
"react-native",
packages/react/package.json
+5
-1
@@ -17,7 +17,11 @@
17
"umd/"
18
],
19
"main": "index.js",
20
- "repository": "facebook/react",
20
+ "repository": {
21
+ "type" : "git",
22
+ "url" : "https://github.com/facebook/react.git",
23
+ "directory": "packages/react"
24
+ },
25
"engines": {
26
"node": ">=0.10.0"
27
},
packages/scheduler/package.json
+5
-1
@@ -3,7 +3,11 @@
3
"version": "0.12.0",
4
"description": "Cooperative scheduler for the browser environment.",
5
"main": "index.js",
6
- "repository": "facebook/react",
6
+ "repository": {
7
+ "type" : "git",
8
+ "url" : "https://github.com/facebook/react.git",
9
+ "directory": "packages/scheduler"
10
+ },
11
"license": "MIT",
12
"keywords": [
13
"react"