Enable Typescript in sync-server (#4887)

* attempt at running with typescript

* release notes

* working jest tests for TS files

* working docker image build

* remaining docker images

* cleanup

* ensure vitest is working

* get tests passing in ci

* less strict

* update release notes

* use tsc compiled assets in the published package

* scripts

* update yarn.lock

* Use build path for electron app

* PR feedback: move sync-server build out of bin/build-browser

* PR feedback: undo moduleResolution change

* extend main tsconfig and fix types

* PR feedback on scripts and when the sync-server build runs

* fix lint (unrelated change)

---------

Co-authored-by: alecbakholdin <alecbakholdin@gmail.com>
This commit is contained in:
Roger Goldfinger
2025-05-05 20:45:49 -07:00
committed by GitHub
parent 4a7439da5e
commit 090345bd95
22 changed files with 71 additions and 64 deletions

View File

@@ -57,7 +57,7 @@ jobs:
- name: Set up environment
uses: ./.github/actions/setup
- name: Build Web
run: ./bin/package-browser
run: yarn build:browser
- name: Upload Build
uses: actions/upload-artifact@v4
with:
@@ -76,7 +76,7 @@ jobs:
- name: Set up environment
uses: ./.github/actions/setup
- name: Build Server
run: cd packages/sync-server && yarn build
run: yarn workspace @actual-app/sync-server build
- name: Upload Build
uses: actions/upload-artifact@v4
with:

View File

@@ -78,7 +78,7 @@ jobs:
- name: Set up environment
uses: ./.github/actions/setup
- name: Build Web
run: ./bin/package-browser
run: yarn build:server
- name: Build and push image
uses: docker/build-push-action@v5

View File

@@ -75,7 +75,7 @@ jobs:
- name: Set up environment
uses: ./.github/actions/setup
- name: Build Web
run: ./bin/package-browser
run: yarn build:server
- name: Build and push ubuntu image
uses: docker/build-push-action@v5

View File

@@ -30,7 +30,7 @@ jobs:
run: npm install netlify-cli@17.10.1 -g
- name: Build Actual
run: ./bin/package-browser
run: yarn build:browser
- name: Deploy to Netlify
id: netlify_deploy

View File

@@ -17,7 +17,7 @@ jobs:
uses: ./.github/actions/setup
- name: Build Web
run: yarn build:browser
run: yarn build:server
- name: Pack the web and server packages
run: |