Skip to content

Commit

Permalink
Merge pull request #170 from dhis2/sub-package-peer-deps
Browse files Browse the repository at this point in the history
fix: move internal and singleton dependencies to peerDependencies
  • Loading branch information
amcgee authored Aug 11, 2020
2 parents 98100de + 7e8a827 commit 4e27017
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@
"watch:widgets": "yarn build:widgets --watch --dev"
},
"devDependencies": {
"@dhis2/app-runtime": "^2.2.2",
"@dhis2/cli-app-scripts": "^4.0.8",
"@dhis2/cli-style": "^7.0.0",
"@dhis2/cli-utils-cypress": "^2.2.1",
"@dhis2/cli-utils-docsite": "^2.0.2",
"@dhis2/d2-i18n": "^1.0.6",
"@storybook/addons": "^5.3.9",
"@storybook/components": "^5.3.19",
"@storybook/csf": "^0.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"build": "d2-app-scripts build"
},
"peerDependencies": {
"@dhis2/ui-constants": "^5.3",
"@dhis2/ui-icons": "^5.3",
"react": "^16.8",
"react-dom": "^16.8",
"styled-jsx": "^3.2"
},
"dependencies": {
"@dhis2/prop-types": "^1.6.4",
"@dhis2/ui-constants": "5.3.2",
"@dhis2/ui-icons": "5.3.2",
"@popperjs/core": "^2.4.2",
"classnames": "^2.2.6",
"react-popper": "^2.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"build": "d2-app-scripts build"
},
"peerDependencies": {
"@dhis2/ui-core": "^5.3",
"react": "^16.8",
"react-dom": "^16.8"
},
"dependencies": {
"@dhis2/prop-types": "^1.6.4",
"@dhis2/ui-core": "5.3.2",
"classnames": "^2.2.6",
"final-form": "^4.20.0",
"react-final-form": "^6.5.0"
Expand Down
7 changes: 7 additions & 0 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,12 @@
"@dhis2/ui-core": "5.3.2",
"@dhis2/ui-forms": "5.3.2",
"@dhis2/ui-widgets": "5.3.2"
},
"peerDependencies": {
"react": "^16.8",
"react-dom": "^16.8",
"styled-jsx": "^3.2",
"@dhis2/app-runtime": "^2",
"@dhis2/d2-i18n": "^1"
}
}
15 changes: 7 additions & 8 deletions packages/widgets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@
"peerDependencies": {
"react": "^16.8",
"react-dom": "^16.8",
"styled-jsx": "^3.2"
"styled-jsx": "^3.2",
"@dhis2/ui-core": "^5.3",
"@dhis2/ui-icons": "^5.3",
"@dhis2/ui-constants": "^5.3",
"@dhis2/app-runtime": "^2",
"@dhis2/d2-i18n": "^1"
},
"dependencies": {
"@dhis2/app-runtime": "^2.2.2",
"@dhis2/d2-i18n": "^1",
"@dhis2/prop-types": "^1.6.4",
"@dhis2/ui-constants": "5.3.2",
"@dhis2/ui-core": "5.3.2",
"@dhis2/ui-icons": "5.3.2",
"classnames": "^2.2.6",
"resize-observer-polyfill": "^1.5.1"
"classnames": "^2.2.6"
},
"files": [
"build"
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@
live-server "^1.2.1"
match-all "^1.2.5"

"@dhis2/d2-i18n@^1", "@dhis2/d2-i18n@^1.0.5":
"@dhis2/d2-i18n@^1.0.5", "@dhis2/d2-i18n@^1.0.6":
version "1.0.6"
resolved "https://registry.yarnpkg.com/@dhis2/d2-i18n/-/d2-i18n-1.0.6.tgz#2914be8acf296f3a6bf7b51c76c46da6a120b0ff"
integrity sha512-7YdA4ppFosjuyf7ZMm47BrdsA5TWLM9lmS0lUPgjcCVeeWfUgagqzf4W5JGB9XQ3w1vzK+yy5zH2Ij8IgRAGhA==
Expand Down

0 comments on commit 4e27017

Please sign in to comment.