You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
664 B
22 lines
664 B
#!/usr/bin/env -S node --experimental-repl-await
|
|
import {globalRegistry, env} from '@extollo/lib'
|
|
import {cli} from './bootstrap'
|
|
|
|
globalRegistry.run(async () => {
|
|
/*
|
|
* The Application
|
|
* -----------------------------------------------------
|
|
* The application instance is a global inversion of control container that
|
|
* ties your entire application together. The app container manages services
|
|
* and lifecycle.
|
|
*/
|
|
const appInstance = cli()
|
|
|
|
const limitOverride = env('STACK_TRACE_LIMIT')
|
|
if ( limitOverride && !isNaN(limitOverride) ) {
|
|
Error.stackTraceLimit = limitOverride
|
|
}
|
|
|
|
await appInstance.run()
|
|
})
|