Skip to content

Commit

Permalink
[compiler] Add git info to package.json files in compiler packages (#…
Browse files Browse the repository at this point in the history
…30475)

This PR adds the repository field to `compiler/packages/*/package.json`

| eslint-plugin-react-compiler | eslint-plugin-react-hooks |
| --- | --- |
|
![image](https://github.com/user-attachments/assets/3392a496-1ff1-4f36-ab96-cfbe1ed88693)
|
![image](https://github.com/user-attachments/assets/b0605dba-eef7-44fe-9484-979b4814d9fb)
|
  • Loading branch information
AhmedBaset authored Jul 26, 2024
1 parent c5f3a6f commit f7ee804
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/react-forget.git"
"url": "git+https://github.com/facebook/react.git"
},
"scripts": {
"copyright": "node scripts/copyright.js",
Expand Down
5 changes: 5 additions & 0 deletions compiler/packages/babel-plugin-react-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,10 @@
"@babel/core": "7.2.0",
"@babel/generator": "7.2.0",
"@babel/traverse": "7.7.4"
},
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/react.git",
"directory": "compiler/packages/babel-plugin-react-compiler"
}
}
5 changes: 5 additions & 0 deletions compiler/packages/eslint-plugin-react-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@
"peerDependencies": {
"eslint": ">=7"
},
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/react.git",
"directory": "compiler/packages/eslint-plugin-react-compiler"
},
"license": "MIT"
}
5 changes: 5 additions & 0 deletions compiler/packages/make-read-only-util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@
"jest": "^28.1.3",
"ts-jest": "^28.0.7",
"ts-node": "^10.9.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/react.git",
"directory": "compiler/packages/make-read-only-util"
}
}
7 changes: 6 additions & 1 deletion compiler/packages/react-compiler-healthcheck/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@
"engines": {
"node": "^14.17.0 || ^16.0.0 || >= 18.0.0"
},
"license": "MIT"
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/react.git",
"directory": "compiler/packages/react-compiler-healthcheck"
}
}
5 changes: 5 additions & 0 deletions compiler/packages/react-compiler-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@
"scripts": {
"build": "rimraf dist && rollup --config --bundleConfigAsCjs",
"test": "echo 'no tests'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/react.git",
"directory": "compiler/packages/react-compiler-runtime"
}
}
3 changes: 2 additions & 1 deletion compiler/packages/snap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/react-forget.git"
"url": "git+https://github.com/facebook/react.git",
"directory": "compiler/packages/snap"
},
"dependencies": {
"@babel/code-frame": "^7.22.5",
Expand Down

0 comments on commit f7ee804

Please sign in to comment.