Skip to content

Commit

Permalink
Declare singleton-ish packages as peer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed Nov 13, 2020
1 parent 273b64e commit 9340e51
Show file tree
Hide file tree
Showing 31 changed files with 196 additions and 131 deletions.
6 changes: 4 additions & 2 deletions packages/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@
"types": "build-types",
"dependencies": {
"@babel/runtime": "^7.11.2",
"@wordpress/dom-ready": "file:../dom-ready",
"@wordpress/i18n": "file:../i18n"
"@wordpress/dom-ready": "file:../dom-ready"
},
"peerDependencies": {
"@wordpress/i18n": "^3.16.0"
},
"publishConfig": {
"access": "public"
Expand Down
10 changes: 6 additions & 4 deletions packages/annotations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@
"react-native": "src/index",
"dependencies": {
"@babel/runtime": "^7.11.2",
"@wordpress/data": "file:../data",
"@wordpress/hooks": "file:../hooks",
"@wordpress/i18n": "file:../i18n",
"@wordpress/rich-text": "file:../rich-text",
"lodash": "^4.17.19",
"rememo": "^3.0.0",
"uuid": "^8.3.0"
},
"peerDependencies": {
"@wordpress/data": "^4.25.0",
"@wordpress/hooks": "^2.10.0",
"@wordpress/i18n": "^3.16.0",
"@wordpress/rich-text": "^3.23.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
4 changes: 3 additions & 1 deletion packages/api-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@
"react-native": "src/index",
"dependencies": {
"@babel/runtime": "^7.11.2",
"@wordpress/i18n": "file:../i18n",
"@wordpress/url": "file:../url"
},
"peerDependencies": {
"@wordpress/i18n": "^3.16.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
19 changes: 11 additions & 8 deletions packages/block-directory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,26 @@
"@babel/runtime": "^7.11.2",
"@wordpress/a11y": "file:../a11y",
"@wordpress/api-fetch": "file:../api-fetch",
"@wordpress/block-editor": "file:../block-editor",
"@wordpress/blocks": "file:../blocks",
"@wordpress/components": "file:../components",
"@wordpress/compose": "file:../compose",
"@wordpress/data": "file:../data",
"@wordpress/data-controls": "file:../data-controls",
"@wordpress/edit-post": "file:../edit-post",
"@wordpress/element": "file:../element",
"@wordpress/hooks": "file:../hooks",
"@wordpress/html-entities": "file:../html-entities",
"@wordpress/i18n": "file:../i18n",
"@wordpress/icons": "file:../icons",
"@wordpress/notices": "file:../notices",
"@wordpress/plugins": "file:../plugins",
"@wordpress/url": "file:../url",
"lodash": "^4.17.19"
},
"peerDependencies": {
"@wordpress/block-editor": "^5.1.2",
"@wordpress/blocks": "^6.24.1",
"@wordpress/data": "^4.25.0",
"@wordpress/edit-post": "^3.25.2",
"@wordpress/editor": "^9.24.2",
"@wordpress/hooks": "^2.10.0",
"@wordpress/i18n": "^3.16.0",
"@wordpress/notices": "^2.11.0",
"@wordpress/plugins": "^2.23.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
18 changes: 10 additions & 8 deletions packages/block-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,18 @@
"@babel/runtime": "^7.11.2",
"@wordpress/a11y": "file:../a11y",
"@wordpress/blob": "file:../blob",
"@wordpress/blocks": "file:../blocks",
"@wordpress/components": "file:../components",
"@wordpress/compose": "file:../compose",
"@wordpress/data": "file:../data",
"@wordpress/deprecated": "file:../deprecated",
"@wordpress/dom": "file:../dom",
"@wordpress/element": "file:../element",
"@wordpress/hooks": "file:../hooks",
"@wordpress/html-entities": "file:../html-entities",
"@wordpress/i18n": "file:../i18n",
"@wordpress/icons": "file:../icons",
"@wordpress/is-shallow-equal": "file:../is-shallow-equal",
"@wordpress/keyboard-shortcuts": "file:../keyboard-shortcuts",
"@wordpress/keycodes": "file:../keycodes",
"@wordpress/notices": "file:../notices",
"@wordpress/rich-text": "file:../rich-text",
"@wordpress/shortcode": "file:../shortcode",
"@wordpress/token-list": "file:../token-list",
"@wordpress/url": "file:../url",
"@wordpress/viewport": "file:../viewport",
"@wordpress/warning": "file:../warning",
"@wordpress/wordcount": "file:../wordcount",
"classnames": "^2.2.5",
Expand All @@ -70,6 +62,16 @@
"tinycolor2": "^1.4.1",
"traverse": "^0.6.6"
},
"peerDependencies": {
"@wordpress/blocks": "^6.24.1",
"@wordpress/data": "^4.25.0",
"@wordpress/hooks": "^2.10.0",
"@wordpress/i18n": "^3.16.0",
"@wordpress/keyboard-shortcuts": "^1.12.0",
"@wordpress/notices": "^2.11.0",
"@wordpress/rich-text": "^3.23.0",
"@wordpress/viewport": "^2.24.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
24 changes: 13 additions & 11 deletions packages/block-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,19 @@
"@wordpress/api-fetch": "file:../api-fetch",
"@wordpress/autop": "file:../autop",
"@wordpress/blob": "file:../blob",
"@wordpress/block-editor": "file:../block-editor",
"@wordpress/blocks": "file:../blocks",
"@wordpress/components": "file:../components",
"@wordpress/compose": "file:../compose",
"@wordpress/core-data": "file:../core-data",
"@wordpress/data": "file:../data",
"@wordpress/date": "file:../date",
"@wordpress/deprecated": "file:../deprecated",
"@wordpress/dom": "file:../dom",
"@wordpress/editor": "file:../editor",
"@wordpress/element": "file:../element",
"@wordpress/escape-html": "file:../escape-html",
"@wordpress/hooks": "file:../hooks",
"@wordpress/i18n": "file:../i18n",
"@wordpress/icons": "file:../icons",
"@wordpress/is-shallow-equal": "file:../is-shallow-equal",
"@wordpress/keycodes": "file:../keycodes",
"@wordpress/notices": "file:../notices",
"@wordpress/primitives": "file:../primitives",
"@wordpress/reusable-blocks": "file:../reusable-blocks",
"@wordpress/rich-text": "file:../rich-text",
"@wordpress/server-side-render": "file:../server-side-render",
"@wordpress/url": "file:../url",
"@wordpress/viewport": "file:../viewport",
"classnames": "^2.2.5",
"fast-average-color": "4.3.0",
"lodash": "^4.17.19",
Expand All @@ -64,6 +53,19 @@
"reakit": "1.1.0",
"tinycolor2": "^1.4.1"
},
"peerDependencies": {
"@wordpress/block-editor": "^5.1.2",
"@wordpress/blocks": "^6.24.1",
"@wordpress/core-data": "^2.24.1",
"@wordpress/data": "^4.25.0",
"@wordpress/editor": "^9.24.2",
"@wordpress/hooks": "^2.10.0",
"@wordpress/i18n": "^3.16.0",
"@wordpress/notices": "^2.11.0",
"@wordpress/reusable-blocks": "^1.0.2",
"@wordpress/rich-text": "^3.23.0",
"@wordpress/viewport": "^2.24.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
8 changes: 5 additions & 3 deletions packages/blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,10 @@
"@wordpress/blob": "file:../blob",
"@wordpress/block-serialization-default-parser": "file:../block-serialization-default-parser",
"@wordpress/compose": "file:../compose",
"@wordpress/data": "file:../data",
"@wordpress/deprecated": "file:../deprecated",
"@wordpress/dom": "file:../dom",
"@wordpress/element": "file:../element",
"@wordpress/hooks": "file:../hooks",
"@wordpress/html-entities": "file:../html-entities",
"@wordpress/i18n": "file:../i18n",
"@wordpress/icons": "file:../icons",
"@wordpress/is-shallow-equal": "file:../is-shallow-equal",
"@wordpress/shortcode": "file:../shortcode",
Expand All @@ -48,6 +45,11 @@
"tinycolor2": "^1.4.1",
"uuid": "^8.3.0"
},
"peerDependencies": {
"@wordpress/data": "^4.25.0",
"@wordpress/hooks": "^2.10.0",
"@wordpress/i18n": "^3.16.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
9 changes: 6 additions & 3 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@
"@wordpress/deprecated": "file:../deprecated",
"@wordpress/dom": "file:../dom",
"@wordpress/element": "file:../element",
"@wordpress/hooks": "file:../hooks",
"@wordpress/i18n": "file:../i18n",
"@wordpress/icons": "file:../icons",
"@wordpress/is-shallow-equal": "file:../is-shallow-equal",
"@wordpress/keycodes": "file:../keycodes",
"@wordpress/primitives": "file:../primitives",
"@wordpress/rich-text": "file:../rich-text",
"@wordpress/warning": "file:../warning",
"classnames": "^2.2.5",
"dom-scroll-into-view": "^1.2.1",
Expand All @@ -63,6 +60,12 @@
"tinycolor2": "^1.4.1",
"uuid": "^8.3.0"
},
"peerDependencies": {
"@wordpress/blocks": "^6.24.1",
"@wordpress/hooks": "^2.10.0",
"@wordpress/i18n": "^3.16.0",
"@wordpress/rich-text": "^3.23.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
8 changes: 5 additions & 3 deletions packages/core-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,21 @@
"dependencies": {
"@babel/runtime": "^7.11.2",
"@wordpress/api-fetch": "file:../api-fetch",
"@wordpress/blocks": "file:../blocks",
"@wordpress/data": "file:../data",
"@wordpress/data-controls": "file:../data-controls",
"@wordpress/deprecated": "file:../deprecated",
"@wordpress/element": "file:../element",
"@wordpress/i18n": "file:../i18n",
"@wordpress/is-shallow-equal": "file:../is-shallow-equal",
"@wordpress/url": "file:../url",
"equivalent-key-map": "^0.2.2",
"lodash": "^4.17.19",
"rememo": "^3.0.0",
"uuid": "^8.3.0"
},
"peerDependencies": {
"@wordpress/blocks": "^6.24.1",
"@wordpress/data": "^4.25.0",
"@wordpress/i18n": "^3.16.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
4 changes: 3 additions & 1 deletion packages/data-controls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
"dependencies": {
"@babel/runtime": "^7.11.2",
"@wordpress/api-fetch": "file:../api-fetch",
"@wordpress/data": "file:../data",
"@wordpress/deprecated": "file:../deprecated"
},
"peerDependencies": {
"@wordpress/data": "^4.25.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
4 changes: 3 additions & 1 deletion packages/dependency-extraction-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
"types": "build-types",
"dependencies": {
"json2php": "^0.0.4",
"webpack": "^4.8.3",
"webpack-sources": "^1.3.0"
},
"peerDependencies": {
"webpack": "^4.8.3"
},
"publishConfig": {
"access": "public"
}
Expand Down
6 changes: 4 additions & 2 deletions packages/deprecated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
"react-native": "src/index",
"sideEffects": false,
"dependencies": {
"@babel/runtime": "^7.11.2",
"@wordpress/hooks": "file:../hooks"
"@babel/runtime": "^7.11.2"
},
"peerDependencies": {
"@wordpress/hooks": "^2.10.0"
},
"publishConfig": {
"access": "public"
Expand Down
18 changes: 10 additions & 8 deletions packages/edit-navigation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,31 @@
"dependencies": {
"@babel/runtime": "^7.11.2",
"@wordpress/api-fetch": "file:../api-fetch",
"@wordpress/block-editor": "file:../block-editor",
"@wordpress/block-library": "file:../block-library",
"@wordpress/blocks": "file:../blocks",
"@wordpress/components": "file:../components",
"@wordpress/compose": "file:../compose",
"@wordpress/core-data": "file:../core-data",
"@wordpress/data": "file:../data",
"@wordpress/data-controls": "file:../data-controls",
"@wordpress/dom-ready": "file:../dom-ready",
"@wordpress/element": "file:../element",
"@wordpress/hooks": "file:../hooks",
"@wordpress/html-entities": "file:../html-entities",
"@wordpress/i18n": "file:../i18n",
"@wordpress/icons": "file:../icons",
"@wordpress/keyboard-shortcuts": "file:../keyboard-shortcuts",
"@wordpress/media-utils": "file:../media-utils",
"@wordpress/notices": "file:../notices",
"@wordpress/url": "file:../url",
"classnames": "^2.2.5",
"lodash": "^4.17.19",
"rememo": "^3.0.0",
"uuid": "^8.3.0"
},
"peerDependencies": {
"@wordpress/block-editor": "^5.1.2",
"@wordpress/blocks": "^6.24.1",
"@wordpress/core-data": "^2.24.1",
"@wordpress/data": "^4.25.0",
"@wordpress/hooks": "^2.10.0",
"@wordpress/i18n": "^3.16.0",
"@wordpress/keyboard-shortcuts": "^1.12.0",
"@wordpress/notices": "^2.11.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
28 changes: 15 additions & 13 deletions packages/edit-post/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,37 @@
"@babel/runtime": "^7.11.2",
"@wordpress/a11y": "file:../a11y",
"@wordpress/api-fetch": "file:../api-fetch",
"@wordpress/block-editor": "file:../block-editor",
"@wordpress/block-library": "file:../block-library",
"@wordpress/blocks": "file:../blocks",
"@wordpress/components": "file:../components",
"@wordpress/compose": "file:../compose",
"@wordpress/core-data": "file:../core-data",
"@wordpress/data": "file:../data",
"@wordpress/editor": "file:../editor",
"@wordpress/element": "file:../element",
"@wordpress/hooks": "file:../hooks",
"@wordpress/i18n": "file:../i18n",
"@wordpress/icons": "file:../icons",
"@wordpress/interface": "file:../interface",
"@wordpress/keyboard-shortcuts": "file:../keyboard-shortcuts",
"@wordpress/keycodes": "file:../keycodes",
"@wordpress/media-utils": "file:../media-utils",
"@wordpress/notices": "file:../notices",
"@wordpress/plugins": "file:../plugins",
"@wordpress/primitives": "file:../primitives",
"@wordpress/reusable-blocks": "file:../reusable-blocks",
"@wordpress/url": "file:../url",
"@wordpress/viewport": "file:../viewport",
"@wordpress/warning": "file:../warning",
"classnames": "^2.2.5",
"lodash": "^4.17.19",
"memize": "^1.1.0",
"refx": "^3.0.0",
"rememo": "^3.0.0"
},
"peerDependencies": {
"@wordpress/block-editor": "^5.1.2",
"@wordpress/blocks": "^6.24.1",
"@wordpress/core-data": "^2.24.1",
"@wordpress/data": "^4.25.0",
"@wordpress/editor": "^9.24.2",
"@wordpress/hooks": "^2.10.0",
"@wordpress/i18n": "^3.16.0",
"@wordpress/interface": "^0.10.2",
"@wordpress/keyboard-shortcuts": "^1.12.0",
"@wordpress/notices": "^2.11.0",
"@wordpress/plugins": "^2.23.0",
"@wordpress/reusable-blocks": "^1.0.2",
"@wordpress/viewport": "^2.24.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
Loading

0 comments on commit 9340e51

Please sign in to comment.