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 8c1614a commit b66e6e4
Show file tree
Hide file tree
Showing 16 changed files with 80 additions and 16 deletions.
6 changes: 5 additions & 1 deletion packages/create-subscription/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"name": "create-subscription",
"description": "utility for subscribing to external data sources inside React components",
"version": "16.7.0",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/create-subscription"
},
"files": [
"LICENSE",
"README.md",
Expand Down
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
6 changes: 5 additions & 1 deletion packages/jest-mock-scheduler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"version": "0.1.0",
"description": "Jest matchers and utilities for testing the scheduler package.",
"main": "index.js",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/jest-mock-scheduler"
},
"keywords": [
"jest",
"scheduler"
Expand Down
6 changes: 5 additions & 1 deletion packages/jest-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"version": "0.5.0",
"description": "Jest matchers and utilities for testing React components.",
"main": "index.js",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/jest-react"
},
"keywords": [
"react",
"jest",
Expand Down
6 changes: 5 additions & 1 deletion packages/react-art/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"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).",
"version": "16.7.0",
"main": "index.js",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/react-art"
},
"keywords": [
"react",
"art",
Expand Down
6 changes: 5 additions & 1 deletion packages/react-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"name": "react-cache",
"description": "A basic cache for React applications",
"version": "2.0.0-alpha.0",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/react-cache"
},
"files": [
"LICENSE",
"README.md",
Expand Down
6 changes: 5 additions & 1 deletion packages/react-debug-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"cjs/"
],
"main": "index.js",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/react-debug-tools"
},
"engines": {
"node": ">=0.10.0"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/react-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"version": "16.7.0",
"description": "React package for working with the DOM.",
"main": "index.js",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/react-dom"
},
"keywords": [
"react"
],
Expand Down
6 changes: 5 additions & 1 deletion packages/react-is/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"version": "16.7.0",
"description": "Brand checking of React Elements.",
"main": "index.js",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/react-is"
},
"keywords": [
"react"
],
Expand Down
6 changes: 5 additions & 1 deletion packages/react-native-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"name": "react-native-renderer",
"version": "16.0.0",
"private": true,
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/react-native-renderer"
},
"dependencies": {
"object-assign": "^4.1.1",
"prop-types": "^15.6.2",
Expand Down
6 changes: 5 additions & 1 deletion packages/react-noop-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"private": true,
"description": "React package for testing the Fiber reconciler.",
"main": "index.js",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/react-noop-renderer"
},
"license": "MIT",
"dependencies": {
"object-assign": "^4.1.1",
Expand Down
6 changes: 5 additions & 1 deletion packages/react-reconciler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
"cjs/"
],
"main": "index.js",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/react-reconciler"
},
"engines": {
"node": ">=0.10.0"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/react-stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
"cjs/"
],
"main": "index.js",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/react-stream"
},
"engines": {
"node": ">=0.10.0"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/react-test-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"version": "16.7.0",
"description": "React package for snapshot testing.",
"main": "index.js",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/react-test-renderer"
},
"keywords": [
"react",
"react-native",
Expand Down
6 changes: 5 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"umd/"
],
"main": "index.js",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/react"
},
"engines": {
"node": ">=0.10.0"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/scheduler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"version": "0.12.0",
"description": "Cooperative scheduler for the browser environment.",
"main": "index.js",
"repository": "facebook/react",
"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/scheduler"
},
"license": "MIT",
"keywords": [
"react"
Expand Down

0 comments on commit b66e6e4

Please sign in to comment.