diff --git a/src/main.ts b/src/main.ts index 13cad38..0e2385f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,5 @@ import { NestFactory } from '@nestjs/core'; -import { AppModule } from './app.module'; +import { AppModule } from '@/app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); diff --git a/tsconfig.json b/tsconfig.json index 95f5641..16526c0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,16 +6,28 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "ES2021", + "target": "ES2022", + "lib": [ "es2022"], "sourceMap": true, "outDir": "./dist", - "baseUrl": "./", + "baseUrl": "./src", "incremental": true, "skipLibCheck": true, - "strictNullChecks": false, - "noImplicitAny": false, + "strictNullChecks": true, + "noImplicitAny": true, "strictBindCallApply": false, "forceConsistentCasingInFileNames": false, - "noFallthroughCasesInSwitch": false + "noFallthroughCasesInSwitch": false, + "strict": true, + "noUncheckedIndexedAccess": true, + "paths": { + "@/*": [ + "./*" + ], + "@": [ + "./main.ts" + ] + } + } }