Skip to content

Commit

Permalink
fix(worker): update build settings to recommended for node20
Browse files Browse the repository at this point in the history
  • Loading branch information
9teen90nine authored and LamaEats committed Jul 17, 2024
1 parent 9aa26b4 commit fe4ad14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/utils/db/crewIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions src/utils/worker/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down

0 comments on commit fe4ad14

Please sign in to comment.