From 1efa4a593538093272405aed7ea0627f881a70b0 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Thu, 28 Sep 2023 18:40:51 +0200 Subject: [PATCH] refactor(api): import ts-reset in entrypoint (#51677) --- api/src/reset.d.ts | 1 - api/src/server.ts | 3 +++ api/tsconfig.json | 3 +-- 3 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 api/src/reset.d.ts diff --git a/api/src/reset.d.ts b/api/src/reset.d.ts deleted file mode 100644 index 12bd3edc94a..00000000000 --- a/api/src/reset.d.ts +++ /dev/null @@ -1 +0,0 @@ -import '@total-typescript/ts-reset'; diff --git a/api/src/server.ts b/api/src/server.ts index a70abe80069..2e334a0561d 100644 --- a/api/src/server.ts +++ b/api/src/server.ts @@ -1,3 +1,6 @@ +// We import these declaration files here, in the entry point of our application, so +// that they're available throughout. +import '@total-typescript/ts-reset'; import { build } from './app'; import { FREECODECAMP_NODE_ENV, PORT } from './utils/env'; diff --git a/api/tsconfig.json b/api/tsconfig.json index b4304cd67d3..b4afb3d6ee2 100644 --- a/api/tsconfig.json +++ b/api/tsconfig.json @@ -9,6 +9,5 @@ "resolveJsonModule": true, "noEmit": true, "noUncheckedIndexedAccess": true - }, - "ts-node": { "files": true } + } }