Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.

Commit b553d5a

Browse files
committed
chore: move app to module
1 parent 34b274c commit b553d5a

File tree

7 files changed

+8
-3
lines changed

7 files changed

+8
-3
lines changed

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NestFactory } from '@nestjs/core';
2-
import { AppModule } from './app.module';
2+
import { AppModule } from '@modules/app';
33

44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/modules/app/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { AppModule } from './app.module';

tsconfig.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88
"target": "es2017",
99
"sourceMap": true,
1010
"outDir": "./dist",
11-
"baseUrl": "./",
12-
"incremental": true
11+
"baseUrl": "./src",
12+
"incremental": true,
13+
"paths": {
14+
"@entities/*": ["db/entities/*"],
15+
"@modules/*": ["modules/*"]
16+
}
1317
},
1418
"exclude": ["node_modules", "dist"]
1519
}

0 commit comments

Comments
 (0)