UNPKG

@tsed/cli-core

Version:
27 lines (26 loc) 776 B
import { __decorate } from "tslib"; import { Injectable } from "@tsed/di"; import { Observable } from "rxjs"; import { BaseManager } from "./BaseManager.js"; let YarnManager = class YarnManager extends BaseManager { constructor() { super(...arguments); this.name = "yarn"; this.cmd = "yarn"; } add(deps, options) { return this.run("add", ["--ignore-engines", ...deps], options); } addDev(deps, options) { return this.run("add", ["-D", "--ignore-engines", ...deps], options); } install(options) { return this.run("install", [options.verbose && "--verbose"], options); } }; YarnManager = __decorate([ Injectable({ type: "package:manager" }) ], YarnManager); export { YarnManager };