mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-06 20:15:33 -05:00
* [AI] sync-server: use workspace reference for @actual-app/crdt Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Update build script in sync-server package to use TypeScript's build mode * Package electron * [AI] crdt: add conditional exports so Node can load the built bundle Before this change the root exports entry pointed at `./src/index.ts`, so any pure-Node consumer (notably the sync server that Electron forks as a utility process) failed to import `@actual-app/crdt` — Node can't execute TypeScript source directly. Sync-server had been masking this by pulling `@actual-app/crdt@npm:2.1.0` where `publishConfig.exports` resolves to `./dist/index.js`; once sync-server switched to `workspace:*`, the Functional Desktop App CI job timed out waiting for the sync server to boot. Switch to conditional exports in the same shape `@actual-app/api` already uses: - `types` → `./dist/index.d.ts` for TypeScript tooling - `development` → `./src/index.ts` for Vite/Vitest (HMR, fast feedback) - `default` → `./dist/index.js` for Node runtime Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>