@tsed/cli
Version:
CLI to bootstrap your Ts.ED project
32 lines (31 loc) • 757 B
JavaScript
import { __decorate } from "tslib";
import { Injectable } from "@tsed/di";
import { BaseRuntime } from "./BaseRuntime.js";
let BunRuntime = class BunRuntime extends BaseRuntime {
constructor() {
super(...arguments);
this.name = "bun";
this.cmd = "bun";
this.order = 4;
}
compile(src, out) {
return `${this.cmd} build --target=bun ${src} --outfile=${out}`;
}
startDev(main) {
return `${this.cmd} --watch ${main}`;
}
startProd(args) {
return `${this.cmd} ${args}`;
}
dependencies() {
return {
typescript: "latest"
};
}
};
BunRuntime = __decorate([
Injectable({
type: "runtime"
})
], BunRuntime);
export { BunRuntime };