Skip to content

Upgrade TypeScript, unified watcher setup#959

Draft
simolus3 wants to merge 12 commits into
mainfrom
unified-typescript-build
Draft

Upgrade TypeScript, unified watcher setup#959
simolus3 wants to merge 12 commits into
mainfrom
unified-typescript-build

Conversation

@simolus3
Copy link
Copy Markdown
Contributor

Blocked on #958.

When working on internal SDK changes in common, it's convenient to be able to see what needs to be changed in the individual SDK packages consuming that. Right now though, that process requires rebuilding every package in this repository, which is very slow.

In the PowerSync service, one can simply run pnpm watch:ts to run tsc everytime something changes, which is much faster than having to invoke rollup on every package. Packages still have their complex build logic, but running TypeScript is the first step of that. In the future, I hope we get to make it the only step for most packages, but we're not really there yet.

This also upgrades to TypeScript version 6. I mainly had to change a few catch blocks which correctly use an unknown type by default (but we can change that to any). We also a few packages opting in to strict type checks without really having save code - I've added ! assertions to keep existing semantics. Finally, resolving types in vue and nuxt is beyond broken for reasons I don't understand (it looks like types are resolved against @powersync/common/dist while symbols are resolved against @powersync/common/lib??). A few as any fix this, when we split common into interfaces and implementation we should be able to fix this properly.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 13, 2026

⚠️ No Changeset found

Latest commit: 4356ee6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Base automatically changed from pnpm11 to main May 14, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant