Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 167734b

Browse files
committed
[Enhance] add src/index
1 parent 474f045 commit 167734b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/app.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import express from 'express';
66

77
import Logger from './loaders/logger';
88

9-
async function startServer() {
9+
export const startServer = async () => {
1010
const app = express();
1111

1212
/**
@@ -29,6 +29,4 @@ async function startServer() {
2929
################################################
3030
`);
3131
});
32-
}
33-
34-
startServer();
32+
};

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// eslint-disable-next-line @typescript-eslint/no-var-requires
2+
const { startServer } = require('./app');
3+
4+
startServer();

0 commit comments

Comments
 (0)