UNPKG

@tsed/cli

Version:
26 lines (25 loc) 637 B
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");