fix: remove verbatimModuleSyntax to resolve CI TypeScript build errors

- Remove verbatimModuleSyntax: true from tsconfig.app.json
- This option caused async/await syntax errors in CI/CD environment
- Build now works consistently across local and CI environments
- Fixes TS1308 errors on await expressions in updateService.ts
This commit is contained in:
Tomas Dvorak
2026-02-27 19:24:18 +01:00
parent 90f0b90cc7
commit 446bc7acfb
4 changed files with 104 additions and 103 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ export function UpdateChecker(props: UpdateCheckerProps) {
const [showUpdateModal, setShowUpdateModal] = createSignal(false);
// Initialize update store
updateStore.ensureInitialized();
updateStore.ensureInitialized().catch(console.error);
const installUpdate = () => {
updateStore.installUpdate();
+1 -1
View File
@@ -148,7 +148,7 @@ export const updateService = {
},
// Get current app version from package.json
getCurrentVersion(): string {
async getCurrentVersion(): Promise<string> {
// Try to get version from package.json first, then fallback
try {
const response = await fetch('/package.json');
+4 -4
View File
@@ -116,9 +116,9 @@ const cancelUpdate = () => {
};
// Initialize update checking
const initializeUpdateChecking = () => {
const initializeUpdateChecking = async () => {
// Set current version
setCurrentVersion(updateService.getCurrentVersion());
setCurrentVersion(await updateService.getCurrentVersion());
// Check if last check was more than 24 hours ago
const lastCheckTimeStr = localStorage.getItem('lastUpdateCheck');
@@ -150,9 +150,9 @@ const cleanup = () => {
// Auto-initialize when store is imported
let initialized = false;
const ensureInitialized = () => {
const ensureInitialized = async () => {
if (!initialized) {
initializeUpdateChecking();
await initializeUpdateChecking();
initialized = true;
}
};