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

43 lines 1.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MakeTsListCommands = void 0; const tslib_1 = require("tslib"); const nestjs_console_1 = require("../../nestjs-console"); const utils_service_1 = require("../utils/utils.service"); const make_ts_list_service_1 = require("./make-ts-list.service"); const tools_config_1 = require("./tools.config"); let MakeTsListCommands = class MakeTsListCommands { makeTsListService; utilsService; config = {}; constructor(makeTsListService, utilsService) { this.makeTsListService = makeTsListService; this.utilsService = utilsService; this.config = this.utilsService.getRuckenConfig(tools_config_1.DEFAULT_TOOLS_CONFIG) .makeTsList; } async makeTsList() { this.makeTsListService.setLogger(make_ts_list_service_1.MakeTsListService.title); await this.makeTsListService.makeTsListHandler({ indexFileName: this.config.indexFileName, excludes: this.config.excludes, }); } }; exports.MakeTsListCommands = MakeTsListCommands; tslib_1.__decorate([ (0, nestjs_console_1.Command)({ alias: 'mtsl', command: 'make-ts-list', description: 'create list of ts files for all nx libraries', }), tslib_1.__metadata("design:type", Function), tslib_1.__metadata("design:paramtypes", []), tslib_1.__metadata("design:returntype", Promise) ], MakeTsListCommands.prototype, "makeTsList", null); exports.MakeTsListCommands = MakeTsListCommands = tslib_1.__decorate([ (0, nestjs_console_1.Console)(), tslib_1.__metadata("design:paramtypes", [make_ts_list_service_1.MakeTsListService, utils_service_1.UtilsService]) ], MakeTsListCommands); //# sourceMappingURL=make-ts-list.commands.js.map