UNPKG

@jobgetapp/rush-enforce-categories-plugin

Version:

Utility to ensure rush projects to not leak internal code.

35 lines 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EnforceAction = void 0; const ts_command_line_1 = require("@rushstack/ts-command-line"); /** * Action used to enforce category relationships. */ class EnforceAction extends ts_command_line_1.CommandLineAction { /** * Create a new EnforceAction */ constructor(terminal, categoryEnforcerService) { super({ actionName: 'enforce', summary: 'Create the base build image.', documentation: ` Creates an image after building and testing all changed projects. ` }); this.terminal = terminal; this.categoryEnforcerService = categoryEnforcerService; } /** * Register command input parameters. */ onDefineParameters() { } /** * Execute command. */ onExecute() { return Promise.resolve(this.categoryEnforcerService.run()); } } exports.EnforceAction = EnforceAction; //# sourceMappingURL=enforce.js.map