Skip to content

Commit 7b40f04

Browse files
authored
Merge pull request #610 from powersync-ja/node-pkg-fix
NodeJS: Add main field, support latest dependencies
2 parents 1037e8a + 2e03dd6 commit 7b40f04

File tree

4 files changed

+62
-55
lines changed

4 files changed

+62
-55
lines changed

.changeset/selfish-geckos-cover.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/node': patch
3+
---
4+
5+
Add a `main` entry to `package.json`. It will be ignored because the package uses conditional exports, but is required for tools like `pkg`.

.changeset/three-onions-exist.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/node': patch
3+
---
4+
5+
Support `@powersync/better-sqlite3` versions `0.2.x`.

packages/node/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"access": "public"
77
},
88
"description": "PowerSync Node.js SDK. Sync Postgres, MongoDB or MySQL with SQLite in your Node.js app",
9+
"main": "lib/index.js",
910
"files": [
1011
"lib",
1112
"dist",
@@ -47,7 +48,7 @@
4748
"@powersync/common": "workspace:^1.31.0"
4849
},
4950
"dependencies": {
50-
"@powersync/better-sqlite3": "^0.1.1",
51+
"@powersync/better-sqlite3": "^0.2.0",
5152
"@powersync/common": "workspace:*",
5253
"async-lock": "^1.4.0",
5354
"bson": "^6.6.0",

0 commit comments

Comments
 (0)