Skip to content

Commit 6b01811

Browse files
DominicGBauerDominicGBauer
and
DominicGBauer
authored
chore: add common as peer dependency to packages (#171)
Co-authored-by: DominicGBauer <[email protected]>
1 parent 071aa4e commit 6b01811

File tree

8 files changed

+40
-33
lines changed

8 files changed

+40
-33
lines changed

.changeset/tasty-teachers-switch.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@powersync/kysely-driver": patch
3+
"@powersync/react-native": patch
4+
"@powersync/attachments": patch
5+
"@powersync/react": patch
6+
"@powersync/vue": patch
7+
"@powersync/web": patch
8+
---
9+
10+
Add @powersync/common as peer dependency

packages/attachments/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
"clean": "rm -rf lib tsconfig.tsbuildinfo",
2727
"watch": "tsc -b -w"
2828
},
29-
"devDependencies": {},
30-
"dependencies": {
31-
"@powersync/common": "workspace:*"
29+
"peerDependencies": {
30+
"@powersync/common": "workspace:1.x"
3231
}
3332
}

packages/kysely-driver/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
"watch": "tsc --build -w",
2525
"test": "pnpm build && vitest"
2626
},
27+
"peerDependencies": {
28+
"@powersync/common": "workspace:1.x"
29+
},
2730
"dependencies": {
28-
"@powersync/common": "workspace:*",
2931
"kysely": "^0.27.2"
3032
},
3133
"devDependencies": {

packages/react-native/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
"@journeyapps/react-native-quick-sqlite": "^1.1.6",
3131
"react": "*",
3232
"react-native": "*",
33-
"react-native-polyfill-globals": "^3.1.0"
33+
"react-native-polyfill-globals": "^3.1.0",
34+
"@powersync/common": "workspace:1.x"
3435
},
3536
"dependencies": {
3637
"@powersync/react": "workspace:*",
37-
"@powersync/common": "workspace:*",
3838
"async-lock": "^1.4.0"
3939
},
4040
"devDependencies": {

packages/react/package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@
2727
"url": "https://github.com/powersync-ja/powersync-js/issues"
2828
},
2929
"homepage": "https://docs.powersync.com/resources/api-reference",
30-
"dependencies": {
31-
"@powersync/common": "workspace:*"
32-
},
3330
"peerDependencies": {
34-
"react": "*"
31+
"react": "*",
32+
"@powersync/common": "workspace:1.x"
3533
},
3634
"devDependencies": {
3735
"@testing-library/react": "^15.0.2",

packages/vue/package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@
2727
"url": "https://github.com/powersync-ja/powersync-js/issues"
2828
},
2929
"homepage": "https://docs.powersync.com/resources/api-reference",
30-
"dependencies": {
31-
"@powersync/common": "workspace:*"
32-
},
3330
"peerDependencies": {
34-
"vue": "*"
31+
"vue": "*",
32+
"@powersync/common": "workspace:1.x"
3533
},
3634
"devDependencies": {
3735
"flush-promises": "^1.0.2",

packages/web/package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@
3232
],
3333
"author": "JOURNEYAPPS",
3434
"license": "Apache-2.0",
35+
"peerDependencies": {
36+
"@journeyapps/wa-sqlite": "~0.2.0",
37+
"@powersync/common": "workspace:1.x"
38+
},
39+
"dependencies": {
40+
"async-mutex": "^0.4.0",
41+
"buffer": "^6.0.3",
42+
"comlink": "^4.4.1",
43+
"js-logger": "^1.6.1",
44+
"lodash": "^4.17.21"
45+
},
3546
"devDependencies": {
3647
"@journeyapps/wa-sqlite": "~0.2.0",
3748
"@types/lodash": "^4.14.200",
@@ -44,16 +55,5 @@
4455
"vitest": "^1.3.1",
4556
"webdriverio": "^8.32.3",
4657
"uuid": "^9.0.1"
47-
},
48-
"peerDependencies": {
49-
"@journeyapps/wa-sqlite": "~0.2.0"
50-
},
51-
"dependencies": {
52-
"@powersync/common": "workspace:*",
53-
"async-mutex": "^0.4.0",
54-
"buffer": "^6.0.3",
55-
"comlink": "^4.4.1",
56-
"js-logger": "^1.6.1",
57-
"lodash": "^4.17.21"
5858
}
5959
}

pnpm-lock.yaml

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)