13 lines
269 B
TypeScript
13 lines
269 B
TypeScript
|
import { repl } from '@nestjs/core'
|
||
|
|
||
|
import { AppModule } from './app.module'
|
||
|
|
||
|
async function bootstrap() {
|
||
|
const replServer = await repl(AppModule)
|
||
|
replServer.setupHistory('.nestjs_repl_history', (err) => {
|
||
|
if (err)
|
||
|
console.error(err)
|
||
|
})
|
||
|
}
|
||
|
bootstrap()
|