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
},

0 commit comments

Comments
 (0)