UNPKG

@tsed/cli

Version:
31 lines (30 loc) 696 B
import { injectable } from "@tsed/di"; import { BaseRuntime } from "./BaseRuntime.js"; export class BunViteRuntime extends BaseRuntime { constructor() { super(...arguments); this.name = "bun-vite"; this.cmd = "bun"; this.order = 1; } files() { return ["vite.config.ts"]; } compile() { return "tsed build"; } startDev() { return "tsed dev"; } startProd(args) { return `bun ${args}`; } devDependencies() { return { "@tsed/cli": "{{cliVersion}}", typescript: "latest", vite: "latest" }; } } injectable(BunViteRuntime).type("runtime");