Skip to content

Commit

Permalink
fix: build works! sqlite access seems to but not entirely sure yet
Browse files Browse the repository at this point in the history
  • Loading branch information
williscool committed Mar 4, 2025
1 parent 8cd8ca4 commit da20e02
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/powersync/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const factory = new OPSqliteOpenFactory(
// Filename for the SQLite database — it's important to only instantiate one instance per file.
dbFilename: 'Events',
// Optional. Directory where the database file is located.'
dbLocation: '/databases'
// dbLocation: '/databases'
}
);

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"devDependencies": {
"@babel/plugin-transform-async-generator-functions": "^7.26.8",
"@babel/plugin-transform-private-property-in-object": "^7.25.9",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@react-native/js-polyfills": "^0.74.0",
Expand All @@ -39,6 +40,7 @@
"@types/react": "~18.2.45",
"@types/react-test-renderer": "^18.0.3",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"babel-plugin-module-resolver": "^5.0.2",
"drizzle-kit": "^0.19.13",
"eslint": "^8.48.0",
"eslint-plugin-node": "latest",
Expand Down
87 changes: 84 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,19 @@ __metadata:
languageName: node
linkType: hard

"@babel/plugin-transform-private-property-in-object@npm:^7.25.9":
version: 7.25.9
resolution: "@babel/plugin-transform-private-property-in-object@npm:7.25.9"
dependencies:
"@babel/helper-annotate-as-pure": ^7.25.9
"@babel/helper-create-class-features-plugin": ^7.25.9
"@babel/helper-plugin-utils": ^7.25.9
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: 9ce3e983fea9b9ba677c192aa065c0b42ebdc7774be4c02135df09029ad92a55c35b004650c75952cb64d650872ed18f13ab64422c6fc891d06333762caa8a0a
languageName: node
linkType: hard

"@babel/plugin-transform-react-display-name@npm:^7.0.0":
version: 7.24.7
resolution: "@babel/plugin-transform-react-display-name@npm:7.24.7"
Expand Down Expand Up @@ -4897,6 +4910,7 @@ __metadata:
dependencies:
"@azure/core-asynciterator-polyfill": ^1.0.2
"@babel/plugin-transform-async-generator-functions": ^7.26.8
"@babel/plugin-transform-private-property-in-object": ^7.25.9
"@commitlint/cli": ^19.5.0
"@commitlint/config-conventional": ^19.5.0
"@jest/globals": ^29.6.4
Expand All @@ -4917,6 +4931,7 @@ __metadata:
"@types/react-test-renderer": ^18.0.3
"@typescript-eslint/eslint-plugin": ^6.6.0
await-to-js: ^3.0.0
babel-plugin-module-resolver: ^5.0.2
dotenv: ^16.3.1
drizzle-kit: ^0.19.13
eslint: ^8.48.0
Expand Down Expand Up @@ -5434,6 +5449,19 @@ __metadata:
languageName: node
linkType: hard

"babel-plugin-module-resolver@npm:^5.0.2":
version: 5.0.2
resolution: "babel-plugin-module-resolver@npm:5.0.2"
dependencies:
find-babel-config: ^2.1.1
glob: ^9.3.3
pkg-up: ^3.1.0
reselect: ^4.1.7
resolve: ^1.22.8
checksum: f1d198acbbbd0b76c9c0c4aacbf9f1ef90f8d36b3d5209d9e7a75cadee2113a73711550ebddeb9464d143b71df19adc75e165dff99ada2614d7ea333affe3b5a
languageName: node
linkType: hard

"babel-plugin-polyfill-corejs2@npm:^0.4.10":
version: 0.4.11
resolution: "babel-plugin-polyfill-corejs2@npm:0.4.11"
Expand Down Expand Up @@ -8512,6 +8540,15 @@ eslint-plugin-prettier@latest:
languageName: node
linkType: hard

"find-babel-config@npm:^2.1.1":
version: 2.1.2
resolution: "find-babel-config@npm:2.1.2"
dependencies:
json5: ^2.2.3
checksum: 268f29cb38ee086b0f953c89f762dcea30b5b0e14abee2b39516410c00b49baa6821f598bd50346c93584e5625c5740f5c8b7e34993f568787a068f84dacc8c2
languageName: node
linkType: hard

"find-cache-dir@npm:^2.0.0":
version: 2.1.0
resolution: "find-cache-dir@npm:2.1.0"
Expand Down Expand Up @@ -9060,6 +9097,18 @@ eslint-plugin-prettier@latest:
languageName: node
linkType: hard

"glob@npm:^9.3.3":
version: 9.3.5
resolution: "glob@npm:9.3.5"
dependencies:
fs.realpath: ^1.0.0
minimatch: ^8.0.2
minipass: ^4.2.4
path-scurry: ^1.6.1
checksum: 94b093adbc591bc36b582f77927d1fb0dbf3ccc231828512b017601408be98d1fe798fc8c0b19c6f2d1a7660339c3502ce698de475e9d938ccbb69b47b647c84
languageName: node
linkType: hard

"global-directory@npm:^4.0.1":
version: 4.0.1
resolution: "global-directory@npm:4.0.1"
Expand Down Expand Up @@ -12382,6 +12431,15 @@ eslint-plugin-prettier@latest:
languageName: node
linkType: hard

"minimatch@npm:^8.0.2":
version: 8.0.4
resolution: "minimatch@npm:8.0.4"
dependencies:
brace-expansion: ^2.0.1
checksum: 2e46cffb86bacbc524ad45a6426f338920c529dd13f3a732cc2cf7618988ee1aae88df4ca28983285aca9e0f45222019ac2d14ebd17c1edadd2ee12221ab801a
languageName: node
linkType: hard

"minimatch@npm:^9.0.0, minimatch@npm:^9.0.3, minimatch@npm:^9.0.4, minimatch@npm:^9.0.5":
version: 9.0.5
resolution: "minimatch@npm:9.0.5"
Expand Down Expand Up @@ -12469,6 +12527,13 @@ eslint-plugin-prettier@latest:
languageName: node
linkType: hard

"minipass@npm:^4.2.4":
version: 4.2.8
resolution: "minipass@npm:4.2.8"
checksum: 7f4914d5295a9a30807cae5227a37a926e6d910c03f315930fde52332cf0575dfbc20295318f91f0baf0e6bb11a6f668e30cde8027dea7a11b9d159867a3c830
languageName: node
linkType: hard

"minipass@npm:^5.0.0":
version: 5.0.0
resolution: "minipass@npm:5.0.0"
Expand Down Expand Up @@ -13653,7 +13718,7 @@ eslint-plugin-prettier@latest:
languageName: node
linkType: hard

"path-scurry@npm:^1.11.1":
"path-scurry@npm:^1.11.1, path-scurry@npm:^1.6.1":
version: 1.11.1
resolution: "path-scurry@npm:1.11.1"
dependencies:
Expand Down Expand Up @@ -13768,6 +13833,15 @@ eslint-plugin-prettier@latest:
languageName: node
linkType: hard

"pkg-up@npm:^3.1.0":
version: 3.1.0
resolution: "pkg-up@npm:3.1.0"
dependencies:
find-up: ^3.0.0
checksum: 5bac346b7c7c903613c057ae3ab722f320716199d753f4a7d053d38f2b5955460f3e6ab73b4762c62fd3e947f58e04f1343e92089e7bb6091c90877406fcd8c8
languageName: node
linkType: hard

"plist@npm:^3.0.5":
version: 3.1.0
resolution: "plist@npm:3.1.0"
Expand Down Expand Up @@ -14539,6 +14613,13 @@ eslint-plugin-prettier@latest:
languageName: node
linkType: hard

"reselect@npm:^4.1.7":
version: 4.1.8
resolution: "reselect@npm:4.1.8"
checksum: a4ac87cedab198769a29be92bc221c32da76cfdad6911eda67b4d3e7136dca86208c3b210e31632eae31ebd2cded18596f0dd230d3ccc9e978df22f233b5583e
languageName: node
linkType: hard

"resolve-alpn@npm:^1.0.0":
version: 1.2.1
resolution: "resolve-alpn@npm:1.2.1"
Expand Down Expand Up @@ -14617,7 +14698,7 @@ eslint-plugin-prettier@latest:
languageName: node
linkType: hard

"resolve@npm:^1.22.2":
"resolve@npm:^1.22.2, resolve@npm:^1.22.8":
version: 1.22.10
resolution: "resolve@npm:1.22.10"
dependencies:
Expand Down Expand Up @@ -14652,7 +14733,7 @@ eslint-plugin-prettier@latest:
languageName: node
linkType: hard

"resolve@patch:resolve@^1.22.2#~builtin<compat/resolve>":
"resolve@patch:resolve@^1.22.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.8#~builtin<compat/resolve>":
version: 1.22.10
resolution: "resolve@patch:resolve@npm%3A1.22.10#~builtin<compat/resolve>::version=1.22.10&hash=c3c19d"
dependencies:
Expand Down

0 comments on commit da20e02

Please sign in to comment.