Skip to content

Commit fecd922

Browse files
chore: add repository directory for all packages.json (#17203)
> If the package.json for your package is not in the root directory (for example if it is part of a monorepo), you can specify the directory in which it lives: > ```json > "repository": { > "type" : "git", > "url" : "https://github.com/facebook/react.git", > "directory": "packages/react-dom" > } > ``` > — https://docs.npmjs.com/cli/v6/configuring-npm/package-json#repository I use a lot https://njt.vercel.app/ to jump to different packages information, and with this PR we can know exactly what package in what folder lives Made the changes with a script to make it easier 🙂 https://gist.github.com/iamandrewluca/5cc85b56a595056f0099d04ed6dd8a79 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent d0802de commit fecd922

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

packages/@aws-cdk/cfnspec/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
},
4646
"repository": {
4747
"url": "https://github.com/aws/aws-cdk.git",
48-
"type": "git"
48+
"type": "git",
49+
"directory": "packages/@aws-cdk/cfnspec"
4950
},
5051
"license": "Apache-2.0",
5152
"author": {

packages/cdk-dasm/package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"types": "lib/index.d.ts",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/aws/aws-cdk.git"
9+
"url": "https://github.com/aws/aws-cdk.git",
10+
"directory": "packages/cdk-dasm"
1011
},
1112
"bin": {
1213
"cdk-dasm": "bin/cdk-dasm"
@@ -42,7 +43,9 @@
4243
"cdk"
4344
],
4445
"nozem": {
45-
"ostools": ["chmod"]
46+
"ostools": [
47+
"chmod"
48+
]
4649
},
4750
"homepage": "https://github.com/aws/aws-cdk",
4851
"engines": {

packages/cdk/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
},
1111
"repository": {
1212
"type": "git",
13-
"url": "https://github.com/aws/aws-cdk.git"
13+
"url": "https://github.com/aws/aws-cdk.git",
14+
"directory": "packages/cdk"
1415
},
1516
"keywords": [
1617
"aws",
@@ -35,7 +36,7 @@
3536
"build+test+package": "npm run build+test && npm run package",
3637
"build+test+extract": "npm run build+test",
3738
"build+extract": "npm run build"
38-
},
39+
},
3940
"engines": {
4041
"node": ">= 8.10.0"
4142
},

0 commit comments

Comments
 (0)