@clscripts/nestjs-cli
Version:
@nestjs/cli clscripts implementation
27 lines • 715 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NestjsCli = void 0;
class NestjsCli {
constructor(opts) {
this.packageExecutable = 'nest';
this.watch = opts.watch;
this.debug = opts.debug;
this.mode = opts.mode;
}
get command() {
return [this.packageExecutable, this.modeArg, this.watchArg, this.debugArg]
.filter(Boolean)
.join(' ');
}
get modeArg() {
return this.mode;
}
get watchArg() {
return this.watch ? '--watch' : '';
}
get debugArg() {
return this.debug ? '--debug' : '';
}
}
exports.NestjsCli = NestjsCli;
//# sourceMappingURL=script.js.map