UNPKG

rucken

Version:

Console tools and scripts for nx and not only that I (EndyKaufman) use to automate the workflow and speed up the development process

31 lines 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const log4js_1 = require("log4js"); const app_module_1 = require("./lib/app.module"); const utils_service_1 = require("./lib/utils/utils.service"); const nestjs_console_1 = require("./nestjs-console"); const bootstrap = new nestjs_console_1.BootstrapConsole({ module: app_module_1.AppModule, useDecorators: true, }); async function main() { const logger = (0, log4js_1.getLogger)('rucken'); logger.level = utils_service_1.UtilsService.logLevel(); const app = await bootstrap.init(); try { await app.init(); // Scan for decorators after app is initialized to ensure all dependencies are resolved if (bootstrap.getOptions().useDecorators) { await bootstrap.scanDecorators(); } await bootstrap.boot(); await app.close(); } catch (error) { logger.error(error); await app.close(); process.exit(1); } } main(); //# sourceMappingURL=main.js.map