Skip to content

Commit db726af

Browse files
committed
chore: Add repository in package.json files
Add 'repository' field [1] to various package.json to create a link between release artifacts and corresponding code in the project's repository. This helps SBOM tools such as ORT [2] to create better SBOMs and reduces amount of code that needs to scanned and reviewed for license compliance. [1]: https://docs.npmjs.com/cli/v7/configuring-npm/package-json#repository [2]: https://github.com/oss-review-toolkit/ort Signed-off-by: Thomas Steenbergen <[email protected]>
1 parent c84c100 commit db726af

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
],
2929
"author": "Paul Groves",
3030
"license": "Apache-2.0",
31+
"repository": {
32+
"type": "git",
33+
"url": "https://github.com/finos/git-proxy"
34+
},
3135
"dependencies": {
3236
"@material-ui/core": "^4.11.0",
3337
"@material-ui/icons": "4.11.3",

packages/git-proxy-cli/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,10 @@
1818
"test-coverage-ci": "nyc --reporter=lcovonly --reporter=text --reporter=html npm run test"
1919
},
2020
"author": "Miklos Sagi",
21-
"license": "Apache-2.0"
21+
"license": "Apache-2.0",
22+
"repository": {
23+
"type": "git",
24+
"url": "https://github.com/finos/git-proxy",
25+
"path": "packages/git-proxy-cli"
26+
}
2227
}

packages/git-proxy-notify-hello/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
},
88
"author": "Thomas Cooper",
99
"license": "Apache-2.0",
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/finos/git-proxy",
13+
"path": "packages/git-proxy-notify-hello"
14+
},
1015
"dependencies": {
1116
"@finos/git-proxy": "file:../.."
1217
}

0 commit comments

Comments
 (0)