@tsed/cli
Version:
CLI to bootstrap your Ts.ED project
26 lines (25 loc) • 637 B
JavaScript
import { injectable } from "@tsed/di";
import { BaseRuntime } from "./BaseRuntime.js";
export 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"
};
}
}
injectable(BunRuntime).type("runtime");