Skip to content

Commit ff54de4

Browse files
committed
Merge branch 'main' into chore/rnw-expo-52-housekeeping
2 parents 5edc181 + 806d5ca commit ff54de4

File tree

5 files changed

+33
-12
lines changed

5 files changed

+33
-12
lines changed

.changeset/fast-cobras-repeat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/tanstack-react-query': patch
3+
---
4+
5+
Bumping tanstack query peer dependency to `^5.70.0`.

.changeset/good-ghosts-rush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/web': minor
3+
---
4+
5+
Determining `node_modules` location via `require.resolve` for the `copy-assets` command. Fixes use cases where `node_modules` location might differ such as in a monorepo.

packages/tanstack-react-query/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"dependencies": {
3636
"@powersync/common": "workspace:*",
3737
"@powersync/react": "workspace:*",
38-
"@tanstack/react-query": "^5.55.4"
38+
"@tanstack/react-query": "^5.70.0"
3939
},
4040
"devDependencies": {
4141
"@testing-library/react": "^15.0.2",

packages/web/bin/powersync.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ program
1313
.description('Copy assets to the specified output directory')
1414
.option('-o, --output <directory>', 'output directory for assets', 'public')
1515
.action(async (options) => {
16+
const resolvedPath = require.resolve('@powersync/web/umd');
1617
const outputDir = options.output;
1718

19+
console.log(`Resolved input path: ${resolvedPath}`);
1820
console.log(`Target directory: ${outputDir}`);
1921

2022
const cwd = process.cwd();
21-
const source = path.join(cwd, 'node_modules', '@powersync', 'web', 'dist');
23+
const source = path.join(path.dirname(resolvedPath));
2224
const destination = path.join(cwd, outputDir, '@powersync');
2325

2426
await fsPromise.rm(destination, { recursive: true, force: true }); // Clear old assets

pnpm-lock.yaml

Lines changed: 19 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)