[READ-ONLY] Mirror of https://github.com/bombshell-dev/tools. Internal CLI to standardize tooling across all Bombshell projects
0

Configure Feed

Select the types of activity you want to include in your feed.

feat(build): add --bundle flag

Nate Moore (Mar 16, 2026, 9:47 PM EDT) c3f801bb 78e6973a

+25 -13
+5
.changeset/great-hoops-heal.md
··· 1 + --- 2 + "@bomb.sh/tools": patch 3 + --- 4 + 5 + Adds `--bundle` flag to `build` command (default is tsdown's `unbundle` behavior
+20 -13
src/commands/build.ts
··· 1 + import { parse } from "@bomb.sh/args"; 1 2 import { x } from "tinyexec"; 2 3 import type { CommandContext } from "../context.ts"; 3 4 import { local } from "../utils.ts"; 4 5 5 6 export async function build(ctx: CommandContext) { 6 - const stdio = x(local("tsdown"), [ 7 - "src/bin.ts", 8 - "--format", 9 - "esm", 10 - "--sourcemap", 11 - "--clean", 12 - "--unbundle", 13 - "--no-config", 14 - ...ctx.args, 15 - ]); 7 + const args = parse(ctx.args, { 8 + boolean: ["bundle"], 9 + }); 10 + 11 + const tsdownArgs = [ 12 + "src/bin.ts", 13 + "--format", 14 + "esm", 15 + "--sourcemap", 16 + "--clean", 17 + "--no-config", 18 + ...args._.map((v) => v.toString()), 19 + ]; 20 + if (!args.bundle) tsdownArgs.push("--unbundle"); 21 + 22 + const stdio = x(local("tsdown"), tsdownArgs); 16 23 17 - for await (const line of stdio) { 18 - console.log(line); 19 - } 24 + for await (const line of stdio) { 25 + console.log(line); 26 + } 20 27 }