@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
25 lines • 729 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class BuildService {
set cwd(cwd) {
this.commandService.setCwd(cwd);
}
get cwd() {
return this.commandService.getCwd();
}
commandService;
lintService;
constructor(commandService, lintService) {
this.commandService = commandService;
this.lintService = lintService;
}
async build(options) {
if (options?.shouldFixLintFirst !== false) {
await this.lintService.fix('**/*.ts');
}
const results = await this.commandService.execute(`yarn build.dev`);
return results;
}
}
exports.default = BuildService;
//# sourceMappingURL=BuildService.js.map