[READ-ONLY] Mirror of https://github.com/bombshell-dev/tools. Internal CLI to standardize tooling across all Bombshell projects
Something went wrong. Try again.
123456789101112131415161718192021import { parse } from "@bomb.sh/args";import { build as tsdown } from "tsdown";import type { CommandContext } from "../context.ts";
export async function build(ctx: CommandContext) { const args = parse(ctx.args, { boolean: ["bundle"], });
const entry = args._.length > 0 ? args._.map(String) : ["src/**/*.ts"];
await tsdown({ config: false, entry, format: "esm", sourcemap: true, clean: true, unbundle: !args.bundle, });}