@tsed/cli-core
Version:
Build your CLI with TypeScript and Decorators
27 lines (26 loc) • 729 B
JavaScript
import { __decorate } from "tslib";
import { Injectable } from "@tsed/di";
import { Observable } from "rxjs";
import { BaseManager } from "./BaseManager.js";
let BunManager = class BunManager extends BaseManager {
constructor() {
super(...arguments);
this.name = "bun";
this.cmd = "bun";
}
add(deps, options) {
return this.run("add", [...deps], options);
}
addDev(deps, options) {
return this.run("add", ["-d", ...deps], options);
}
install(options) {
return this.run("install", [options.verbose && "--verbose"], options);
}
};
BunManager = __decorate([
Injectable({
type: "package:manager"
})
], BunManager);
export { BunManager };