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

41 lines (40 loc) 1.75 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 { constructor(makeTsListService, utilsService) { this.makeTsListService = makeTsListService; this.utilsService = utilsService; this.config = this.utilsService.getRuckenConfig(tools_config_1.DEFAULT_TOOLS_CONFIG).makeTsList; } makeTsList() { return tslib_1.__awaiter(this, void 0, void 0, function* () { this.makeTsListService.setLogger(make_ts_list_service_1.MakeTsListService.title); yield this.makeTsListService.makeTsListHandler({ indexFileName: this.config.indexFileName, excludes: this.config.excludes, }); }); } }; 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); 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); exports.MakeTsListCommands = MakeTsListCommands;