Skip to content

Commit

Permalink
Capacitor plugin dependencies should be peerDependencies
Browse files Browse the repository at this point in the history
Fixing the dependency versions in package.json dependencies can cause NPM resolution hard-wiring issues. This fixes the problem using peer dependencies.
  • Loading branch information
lincolnthree authored Mar 3, 2021
1 parent bc355d9 commit 5dce6e5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"author": "MAPIACOMPANY",
"license": "MIT",
"devDependencies": {
"@capacitor/cli": "^3.0.0-beta.3",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@rollup/plugin-node-resolve": "^11.1.0",
Expand Down Expand Up @@ -61,15 +62,15 @@
"typescript": "^4.1.3"
},
"dependencies": {
"code-push": "^4.0.2"
},
"peerDependencies": {
"@capacitor-community/http": "^1.0.0-alpha.0",
"@capacitor/cli": "^3.0.0-beta.3",
"@capacitor/core": "^3.0.0-beta.3",
"@capacitor/device": "^0.5.3",
"@capacitor/dialog": "^0.4.3",
"@capacitor/filesystem": "^0.4.0",
"code-push": "^4.0.2"
"@capacitor/filesystem": "^0.4.0"
},
"peerDependencies": {},
"capacitor": {
"android": {
"src": "android"
Expand Down

0 comments on commit 5dce6e5

Please sign in to comment.