From fe4ad14c5dc96cb66859e9da74e6a47dfd757fa8 Mon Sep 17 00:00:00 2001 From: Timur Minulin Date: Wed, 17 Jul 2024 16:21:16 +0200 Subject: [PATCH] fix(worker): update build settings to recommended for node20 --- src/utils/db/crewIntegration.ts | 1 + src/utils/worker/tsconfig.json | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/utils/db/crewIntegration.ts b/src/utils/db/crewIntegration.ts index 091bb5486..95243b653 100644 --- a/src/utils/db/crewIntegration.ts +++ b/src/utils/db/crewIntegration.ts @@ -151,6 +151,7 @@ export const getCrewUserByLogin = async (login: string) => { throw new TRPCError({ code: 'INTERNAL_SERVER_ERROR', message: response.statusText }); } + // @ts-ignore const data: CrewUser = await response.json(); return data; diff --git a/src/utils/worker/tsconfig.json b/src/utils/worker/tsconfig.json index 99e4e8e4e..cef2659c9 100644 --- a/src/utils/worker/tsconfig.json +++ b/src/utils/worker/tsconfig.json @@ -1,16 +1,16 @@ { "compilerOptions": { "outDir": "../../../background", - "target": "es5", + "lib": ["ES2023"], + "module": "node16", + "target": "ES2022", "allowJs": true, - "skipLibCheck": true, "strict": true, "forceConsistentCasingInFileNames": true, "esModuleInterop": true, - "module": "CommonJS", - "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, + "skipLibCheck": true, "incremental": true }, "include": ["**/*.ts"],