UNPKG

@tsed/cli

Version:
32 lines (31 loc) 757 B
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 };