Skip to content

Commit

Permalink
chore: add common as peer dependency to packages (#171)
Browse files Browse the repository at this point in the history
Co-authored-by: DominicGBauer <[email protected]>
  • Loading branch information
DominicGBauer and DominicGBauer authored May 17, 2024
1 parent 071aa4e commit 6b01811
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 33 deletions.
10 changes: 10 additions & 0 deletions .changeset/tasty-teachers-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@powersync/kysely-driver": patch
"@powersync/react-native": patch
"@powersync/attachments": patch
"@powersync/react": patch
"@powersync/vue": patch
"@powersync/web": patch
---

Add @powersync/common as peer dependency
5 changes: 2 additions & 3 deletions packages/attachments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"clean": "rm -rf lib tsconfig.tsbuildinfo",
"watch": "tsc -b -w"
},
"devDependencies": {},
"dependencies": {
"@powersync/common": "workspace:*"
"peerDependencies": {
"@powersync/common": "workspace:1.x"
}
}
4 changes: 3 additions & 1 deletion packages/kysely-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
"watch": "tsc --build -w",
"test": "pnpm build && vitest"
},
"peerDependencies": {
"@powersync/common": "workspace:1.x"
},
"dependencies": {
"@powersync/common": "workspace:*",
"kysely": "^0.27.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"@journeyapps/react-native-quick-sqlite": "^1.1.6",
"react": "*",
"react-native": "*",
"react-native-polyfill-globals": "^3.1.0"
"react-native-polyfill-globals": "^3.1.0",
"@powersync/common": "workspace:1.x"
},
"dependencies": {
"@powersync/react": "workspace:*",
"@powersync/common": "workspace:*",
"async-lock": "^1.4.0"
},
"devDependencies": {
Expand Down
6 changes: 2 additions & 4 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@
"url": "https://github.com/powersync-ja/powersync-js/issues"
},
"homepage": "https://docs.powersync.com/resources/api-reference",
"dependencies": {
"@powersync/common": "workspace:*"
},
"peerDependencies": {
"react": "*"
"react": "*",
"@powersync/common": "workspace:1.x"
},
"devDependencies": {
"@testing-library/react": "^15.0.2",
Expand Down
6 changes: 2 additions & 4 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@
"url": "https://github.com/powersync-ja/powersync-js/issues"
},
"homepage": "https://docs.powersync.com/resources/api-reference",
"dependencies": {
"@powersync/common": "workspace:*"
},
"peerDependencies": {
"vue": "*"
"vue": "*",
"@powersync/common": "workspace:1.x"
},
"devDependencies": {
"flush-promises": "^1.0.2",
Expand Down
22 changes: 11 additions & 11 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@
],
"author": "JOURNEYAPPS",
"license": "Apache-2.0",
"peerDependencies": {
"@journeyapps/wa-sqlite": "~0.2.0",
"@powersync/common": "workspace:1.x"
},
"dependencies": {
"async-mutex": "^0.4.0",
"buffer": "^6.0.3",
"comlink": "^4.4.1",
"js-logger": "^1.6.1",
"lodash": "^4.17.21"
},
"devDependencies": {
"@journeyapps/wa-sqlite": "~0.2.0",
"@types/lodash": "^4.14.200",
Expand All @@ -44,16 +55,5 @@
"vitest": "^1.3.1",
"webdriverio": "^8.32.3",
"uuid": "^9.0.1"
},
"peerDependencies": {
"@journeyapps/wa-sqlite": "~0.2.0"
},
"dependencies": {
"@powersync/common": "workspace:*",
"async-mutex": "^0.4.0",
"buffer": "^6.0.3",
"comlink": "^4.4.1",
"js-logger": "^1.6.1",
"lodash": "^4.17.21"
}
}
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6b01811

Please sign in to comment.