localhost_oa_based/src/repl.ts

13 lines
269 B
TypeScript
Raw Normal View History

2024-02-28 08:32:35 +08:00
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()