Skip to content

Commit f4d1d5e

Browse files
chore: add repository directory for all packages.json (#1586)
> 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 ded2dbf commit f4d1d5e

19 files changed

Lines changed: 38 additions & 19 deletions

File tree

packages/css-jss/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"author": "JSS Team",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/cssinjs/jss"
15+
"url": "https://github.com/cssinjs/jss.git",
16+
"directory": "packages/css-jss"
1617
},
1718
"bugs": {
1819
"url": "https://github.com/cssinjs/jss/issues/new"

packages/jss-plugin-cache/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"author": "JSS Team",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/cssinjs/jss"
15+
"url": "https://github.com/cssinjs/jss.git",
16+
"directory": "packages/jss-plugin-cache"
1617
},
1718
"bugs": {
1819
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-cache]"

packages/jss-plugin-camel-case/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"author": "JSS Team",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/cssinjs/jss"
15+
"url": "https://github.com/cssinjs/jss.git",
16+
"directory": "packages/jss-plugin-camel-case"
1617
},
1718
"bugs": {
1819
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-camel-case]"

packages/jss-plugin-compose/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"author": "JSS Team",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/cssinjs/jss"
15+
"url": "https://github.com/cssinjs/jss.git",
16+
"directory": "packages/jss-plugin-compose"
1617
},
1718
"bugs": {
1819
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-compose]"

packages/jss-plugin-default-unit/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"author": "JSS Team",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/cssinjs/jss"
15+
"url": "https://github.com/cssinjs/jss.git",
16+
"directory": "packages/jss-plugin-default-unit"
1617
},
1718
"bugs": {
1819
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-default-unit]"

packages/jss-plugin-expand/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"author": "JSS Team",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/cssinjs/jss"
15+
"url": "https://github.com/cssinjs/jss.git",
16+
"directory": "packages/jss-plugin-expand"
1617
},
1718
"bugs": {
1819
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-expand]"

packages/jss-plugin-extend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"author": "JSS Team",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/cssinjs/jss"
15+
"url": "https://github.com/cssinjs/jss.git",
16+
"directory": "packages/jss-plugin-extend"
1617
},
1718
"bugs": {
1819
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-extend]"

packages/jss-plugin-global/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"author": "JSS Team",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/cssinjs/jss"
15+
"url": "https://github.com/cssinjs/jss.git",
16+
"directory": "packages/jss-plugin-global"
1617
},
1718
"bugs": {
1819
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-global]"

packages/jss-plugin-isolate/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"author": "JSS Team",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/cssinjs/jss"
15+
"url": "https://github.com/cssinjs/jss.git",
16+
"directory": "packages/jss-plugin-isolate"
1617
},
1718
"bugs": {
1819
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-isolate]"

packages/jss-plugin-nested/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"author": "JSS Team",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/cssinjs/jss"
15+
"url": "https://github.com/cssinjs/jss.git",
16+
"directory": "packages/jss-plugin-nested"
1617
},
1718
"bugs": {
1819
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-nested]"

0 commit comments

Comments
 (0)