Skip to content

Commit

Permalink
chore: add repository directory for all packages.json (#1586)
Browse files Browse the repository at this point in the history
> 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
  • Loading branch information
iamandrewluca authored Apr 16, 2022
1 parent ded2dbf commit f4d1d5e
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 19 deletions.
3 changes: 2 additions & 1 deletion packages/css-jss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/css-jss"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-cache"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-cache]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-camel-case/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-camel-case"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-camel-case]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-compose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-compose"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-compose]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-default-unit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-default-unit"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-default-unit]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-expand/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-expand"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-expand]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-extend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-extend"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-extend]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-global/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-global"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-global]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-isolate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-isolate"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-isolate]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-nested/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-nested"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-nested]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-props-sort/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-props-sort"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-props-sort]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-rule-value-function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-rule-value-function"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-rule-value-function]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-rule-value-observable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-rule-value-observable"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-rule-value-observable]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-template"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-template]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-plugin-vendor-prefixer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-plugin-vendor-prefixer"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-vendor-prefixer]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-preset-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-preset-default"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-preset-default]"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss-starter-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss-starter-kit"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new"
Expand Down
3 changes: 2 additions & 1 deletion packages/jss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/jss"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new"
Expand Down
3 changes: 2 additions & 1 deletion packages/react-jss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "JSS Team",
"repository": {
"type": "git",
"url": "https://github.com/cssinjs/jss"
"url": "https://github.com/cssinjs/jss.git",
"directory": "packages/react-jss"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[react-jss]"
Expand Down

0 comments on commit f4d1d5e

Please sign in to comment.