Skip to content

Commit

Permalink
Fixed Repository Reference in monorepo package.json files (#3467)
Browse files Browse the repository at this point in the history
Summary:
Based on the documentation for the `package.json` syntax on the `repository` field, this PR adds support for subdirectory information (See https://docs.npmjs.com/cli/v6/configuring-npm/package-json#repository).

Pull Request resolved: #3467

Reviewed By: josephsavona

Differential Revision: D33829078

Pulled By: alunyov

fbshipit-source-id: dfa6b18aae36cf792d6835bcbea9b6599664381b
  • Loading branch information
wyattjoh authored and facebook-github-bot committed Jan 31, 2022
1 parent 0007a66 commit 2a06405
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
6 changes: 5 additions & 1 deletion packages/babel-plugin-relay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
"license": "MIT",
"homepage": "https://relay.dev",
"bugs": "https://github.com/facebook/relay/issues",
"repository": "facebook/relay",
"repository": {
"type": "git",
"url": "https://github.com/facebook/relay.git",
"directory": "packages/babel-plugin-relay"
},
"dependencies": {
"babel-plugin-macros": "^2.0.0",
"cosmiconfig": "^5.0.5",
Expand Down
6 changes: 5 additions & 1 deletion packages/react-relay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
"license": "MIT",
"homepage": "https://relay.dev",
"bugs": "https://github.com/facebook/relay/issues",
"repository": "facebook/relay",
"repository": {
"type": "git",
"url": "https://github.com/facebook/relay.git",
"directory": "packages/react-relay"
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"fbjs": "^3.0.2",
Expand Down
6 changes: 5 additions & 1 deletion packages/relay-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
"license": "MIT",
"homepage": "https://relay.dev",
"bugs": "https://github.com/facebook/relay/issues",
"repository": "facebook/relay",
"repository": {
"type": "git",
"url": "https://github.com/facebook/relay.git",
"directory": "packages/relay-compiler"
},
"main": "index.js",
"bin": "cli.js"
}
6 changes: 5 additions & 1 deletion packages/relay-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
"license": "MIT",
"homepage": "https://relay.dev",
"bugs": "https://github.com/facebook/relay/issues",
"repository": "facebook/relay",
"repository": {
"type": "git",
"url": "https://github.com/facebook/relay.git",
"directory": "packages/relay-runtime"
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"fbjs": "^3.0.2",
Expand Down
6 changes: 5 additions & 1 deletion packages/relay-test-utils-internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
"license": "MIT",
"homepage": "https://relay.dev",
"bugs": "https://github.com/facebook/relay/issues",
"repository": "facebook/relay",
"repository": {
"type": "git",
"url": "https://github.com/facebook/relay.git",
"directory": "packages/relay-test-utils-internal"
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"fbjs": "^3.0.2",
Expand Down
6 changes: 5 additions & 1 deletion packages/relay-test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
"license": "MIT",
"homepage": "https://relay.dev",
"bugs": "https://github.com/facebook/relay/issues",
"repository": "facebook/relay",
"repository": {
"type": "git",
"url": "https://github.com/facebook/relay.git",
"directory": "packages/relay-test-utils"
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"fbjs": "^3.0.2",
Expand Down

0 comments on commit 2a06405

Please sign in to comment.