2024-02-28 17:02:46 +08:00
|
|
|
import { repl } from '@nestjs/core';
|
2024-02-28 08:32:35 +08:00
|
|
|
|
2024-02-28 17:02:46 +08:00
|
|
|
import { AppModule } from './app.module';
|
2024-02-28 08:32:35 +08:00
|
|
|
|
|
|
|
async function bootstrap() {
|
2024-02-28 17:02:46 +08:00
|
|
|
const replServer = await repl(AppModule);
|
|
|
|
replServer.setupHistory('.nestjs_repl_history', err => {
|
|
|
|
if (err) console.error(err);
|
|
|
|
});
|
2024-02-28 08:32:35 +08:00
|
|
|
}
|
2024-02-28 17:02:46 +08:00
|
|
|
bootstrap();
|