Skip to content

Commit e7e9a65

Browse files
author
Andrew Luca
authored
chore: add repository directory for all packages.json (#2812)
> 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
1 parent 2ca4867 commit e7e9a65

File tree

32 files changed

+96
-64
lines changed

32 files changed

+96
-64
lines changed

@alias/commitlint-config-angular/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/conventional-changelog/commitlint.git"
14+
"url": "https://github.com/conventional-changelog/commitlint.git",
15+
"directory": "@alias/commitlint-config-angular"
1516
},
1617
"keywords": [
1718
"conventional-changelog",
@@ -24,7 +25,7 @@
2425
"bugs": {
2526
"url": "https://github.com/conventional-changelog/commitlint/issues"
2627
},
27-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
28+
"homepage": "https://commitlint.js.org/",
2829
"engines": {
2930
"node": ">=v12"
3031
},

@alias/commitlint-config-lerna-scopes/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/conventional-changelog/commitlint.git"
14+
"url": "https://github.com/conventional-changelog/commitlint.git",
15+
"directory": "@alias/commitlint-config-lerna-scopes"
1516
},
1617
"keywords": [
1718
"conventional-changelog",
@@ -24,7 +25,7 @@
2425
"bugs": {
2526
"url": "https://github.com/conventional-changelog/commitlint/issues"
2627
},
27-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
28+
"homepage": "https://commitlint.js.org/",
2829
"engines": {
2930
"node": ">=v12"
3031
},

@alias/commitlint-config-patternplate/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/conventional-changelog/commitlint.git"
14+
"url": "https://github.com/conventional-changelog/commitlint.git",
15+
"directory": "@alias/commitlint-config-patternplate"
1516
},
1617
"keywords": [
1718
"conventional-changelog",
@@ -24,7 +25,7 @@
2425
"bugs": {
2526
"url": "https://github.com/conventional-changelog/commitlint/issues"
2627
},
27-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
28+
"homepage": "https://commitlint.js.org/",
2829
"engines": {
2930
"node": ">=v12"
3031
},

@alias/commitlint/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@
1717
},
1818
"repository": {
1919
"type": "git",
20-
"url": "https://github.com/conventional-changelog/commitlint.git"
20+
"url": "https://github.com/conventional-changelog/commitlint.git",
21+
"directory": "@alias/commitlint"
2122
},
2223
"bugs": {
2324
"url": "https://github.com/conventional-changelog/commitlint/issues"
2425
},
25-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
26+
"homepage": "https://commitlint.js.org/",
2627
"keywords": [
2728
"conventional-changelog",
2829
"commitlint",

@commitlint/cli/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
},
2020
"repository": {
2121
"type": "git",
22-
"url": "https://github.com/conventional-changelog/commitlint.git"
22+
"url": "https://github.com/conventional-changelog/commitlint.git",
23+
"directory": "@commitlint/cli"
2324
},
2425
"bugs": {
2526
"url": "https://github.com/conventional-changelog/commitlint/issues"
2627
},
27-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
28+
"homepage": "https://commitlint.js.org/",
2829
"keywords": [
2930
"conventional-changelog",
3031
"commitlint",

@commitlint/config-angular-type-enum/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/conventional-changelog/commitlint.git"
14+
"url": "https://github.com/conventional-changelog/commitlint.git",
15+
"directory": "@commitlint/config-angular-type-enum"
1516
},
1617
"keywords": [
1718
"conventional-changelog",
@@ -24,7 +25,7 @@
2425
"bugs": {
2526
"url": "https://github.com/conventional-changelog/commitlint/issues"
2627
},
27-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
28+
"homepage": "https://commitlint.js.org/",
2829
"engines": {
2930
"node": ">=v12"
3031
},

@commitlint/config-angular/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/conventional-changelog/commitlint.git"
14+
"url": "https://github.com/conventional-changelog/commitlint.git",
15+
"directory": "@commitlint/config-angular"
1516
},
1617
"keywords": [
1718
"conventional-changelog",
@@ -24,7 +25,7 @@
2425
"bugs": {
2526
"url": "https://github.com/conventional-changelog/commitlint/issues"
2627
},
27-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
28+
"homepage": "https://commitlint.js.org/",
2829
"engines": {
2930
"node": ">=v12"
3031
},

@commitlint/config-conventional/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
},
1515
"repository": {
1616
"type": "git",
17-
"url": "https://github.com/conventional-changelog/commitlint.git"
17+
"url": "https://github.com/conventional-changelog/commitlint.git",
18+
"directory": "@commitlint/config-conventional"
1819
},
1920
"keywords": [
2021
"conventional-changelog",
@@ -27,7 +28,7 @@
2728
"bugs": {
2829
"url": "https://github.com/conventional-changelog/commitlint/issues"
2930
},
30-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
31+
"homepage": "https://commitlint.js.org/",
3132
"engines": {
3233
"node": ">=v12"
3334
},

@commitlint/config-lerna-scopes/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/conventional-changelog/commitlint.git"
14+
"url": "https://github.com/conventional-changelog/commitlint.git",
15+
"directory": "@commitlint/config-lerna-scopes"
1516
},
1617
"keywords": [
1718
"conventional-changelog",
@@ -24,7 +25,7 @@
2425
"bugs": {
2526
"url": "https://github.com/conventional-changelog/commitlint/issues"
2627
},
27-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
28+
"homepage": "https://commitlint.js.org/",
2829
"peerDependencies": {
2930
"lerna": "^3.0.0 || ^4.0.0"
3031
},

@commitlint/config-patternplate/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/conventional-changelog/commitlint.git"
14+
"url": "https://github.com/conventional-changelog/commitlint.git",
15+
"directory": "@commitlint/config-patternplate"
1516
},
1617
"keywords": [
1718
"conventional-changelog",
@@ -24,7 +25,7 @@
2425
"bugs": {
2526
"url": "https://github.com/conventional-changelog/commitlint/issues"
2627
},
27-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
28+
"homepage": "https://commitlint.js.org/",
2829
"engines": {
2930
"node": ">=v12"
3031
},

@commitlint/core/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/conventional-changelog/commitlint.git"
19+
"url": "https://github.com/conventional-changelog/commitlint.git",
20+
"directory": "@commitlint/core"
2021
},
2122
"bugs": {
2223
"url": "https://github.com/conventional-changelog/commitlint/issues"
2324
},
24-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
25+
"homepage": "https://commitlint.js.org/",
2526
"keywords": [
2627
"conventional-changelog",
2728
"commitlint",

@commitlint/cz-commitlint/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
"scripts": {
1717
"commit": "git-cz"
1818
},
19-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
19+
"homepage": "https://commitlint.js.org/",
2020
"bugs": {
2121
"url": "https://github.com/conventional-changelog/commitlint/issues"
2222
},
2323
"repository": {
2424
"type": "git",
25-
"url": "https://github.com/conventional-changelog/commitlint.git"
25+
"url": "https://github.com/conventional-changelog/commitlint.git",
26+
"directory": "@commitlint/cz-commitlint"
2627
},
2728
"engineStrict": true,
2829
"engines": {

@commitlint/ensure/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/conventional-changelog/commitlint.git"
19+
"url": "https://github.com/conventional-changelog/commitlint.git",
20+
"directory": "@commitlint/ensure"
2021
},
2122
"bugs": {
2223
"url": "https://github.com/conventional-changelog/commitlint/issues"
2324
},
24-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
25+
"homepage": "https://commitlint.js.org/",
2526
"keywords": [
2627
"conventional-changelog",
2728
"commitlint",

@commitlint/execute-rule/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/conventional-changelog/commitlint.git"
19+
"url": "https://github.com/conventional-changelog/commitlint.git",
20+
"directory": "@commitlint/execute-rule"
2021
},
2122
"bugs": {
2223
"url": "https://github.com/conventional-changelog/commitlint/issues"
2324
},
24-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
25+
"homepage": "https://commitlint.js.org/",
2526
"keywords": [
2627
"conventional-changelog",
2728
"commitlint",

@commitlint/format/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/conventional-changelog/commitlint.git"
19+
"url": "https://github.com/conventional-changelog/commitlint.git",
20+
"directory": "@commitlint/format"
2021
},
2122
"bugs": {
2223
"url": "https://github.com/conventional-changelog/commitlint/issues"
2324
},
24-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
25+
"homepage": "https://commitlint.js.org/",
2526
"keywords": [
2627
"conventional-changelog",
2728
"commitlint",

@commitlint/is-ignored/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/conventional-changelog/commitlint.git"
19+
"url": "https://github.com/conventional-changelog/commitlint.git",
20+
"directory": "@commitlint/is-ignored"
2021
},
2122
"bugs": {
2223
"url": "https://github.com/conventional-changelog/commitlint/issues"
2324
},
24-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
25+
"homepage": "https://commitlint.js.org/",
2526
"keywords": [
2627
"conventional-changelog",
2728
"commitlint",

@commitlint/lint/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/conventional-changelog/commitlint.git"
19+
"url": "https://github.com/conventional-changelog/commitlint.git",
20+
"directory": "@commitlint/lint"
2021
},
2122
"bugs": {
2223
"url": "https://github.com/conventional-changelog/commitlint/issues"
2324
},
24-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
25+
"homepage": "https://commitlint.js.org/",
2526
"keywords": [
2627
"conventional-changelog",
2728
"commitlint",

@commitlint/load/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/conventional-changelog/commitlint.git"
19+
"url": "https://github.com/conventional-changelog/commitlint.git",
20+
"directory": "@commitlint/load"
2021
},
2122
"bugs": {
2223
"url": "https://github.com/conventional-changelog/commitlint/issues"
2324
},
24-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
25+
"homepage": "https://commitlint.js.org/",
2526
"keywords": [
2627
"conventional-changelog",
2728
"commitlint",

@commitlint/message/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/conventional-changelog/commitlint.git"
19+
"url": "https://github.com/conventional-changelog/commitlint.git",
20+
"directory": "@commitlint/message"
2021
},
2122
"bugs": {
2223
"url": "https://github.com/conventional-changelog/commitlint/issues"
2324
},
24-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
25+
"homepage": "https://commitlint.js.org/",
2526
"keywords": [
2627
"conventional-changelog",
2728
"commitlint",

@commitlint/parse/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/conventional-changelog/commitlint.git"
19+
"url": "https://github.com/conventional-changelog/commitlint.git",
20+
"directory": "@commitlint/parse"
2021
},
2122
"bugs": {
2223
"url": "https://github.com/conventional-changelog/commitlint/issues"
2324
},
24-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
25+
"homepage": "https://commitlint.js.org/",
2526
"keywords": [
2627
"conventional-changelog",
2728
"commitlint",

@commitlint/prompt-cli/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "https://github.com/conventional-changelog/commitlint.git"
18+
"url": "https://github.com/conventional-changelog/commitlint.git",
19+
"directory": "@commitlint/prompt-cli"
1920
},
2021
"keywords": [
2122
"commitlint",
@@ -26,7 +27,7 @@
2627
"bugs": {
2728
"url": "https://github.com/conventional-changelog/commitlint/issues"
2829
},
29-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
30+
"homepage": "https://commitlint.js.org/",
3031
"engines": {
3132
"node": ">=v12"
3233
},

@commitlint/prompt/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
},
1818
"repository": {
1919
"type": "git",
20-
"url": "https://github.com/conventional-changelog/commitlint.git"
20+
"url": "https://github.com/conventional-changelog/commitlint.git",
21+
"directory": "@commitlint/prompt"
2122
},
2223
"keywords": [
2324
"conventional-changelog",
@@ -31,7 +32,7 @@
3132
"bugs": {
3233
"url": "https://github.com/conventional-changelog/commitlint/issues"
3334
},
34-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
35+
"homepage": "https://commitlint.js.org/",
3536
"engines": {
3637
"node": ">=v12"
3738
},

@commitlint/read/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/conventional-changelog/commitlint.git"
19+
"url": "https://github.com/conventional-changelog/commitlint.git",
20+
"directory": "@commitlint/read"
2021
},
2122
"bugs": {
2223
"url": "https://github.com/conventional-changelog/commitlint/issues"
2324
},
24-
"homepage": "https://github.com/conventional-changelog/commitlint#readme",
25+
"homepage": "https://commitlint.js.org/",
2526
"keywords": [
2627
"conventional-changelog",
2728
"commitlint",

0 commit comments

Comments
 (0)