[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): adds `--dts` and `--minify` flags to `build` command (#10)

authored by

Nate Moore and committed by
GitHub
(Mar 18, 2026, 9:18 PM EDT) ccb63b7c b6dfdd5a

+19 -12
+5
.changeset/slick-steaks-sneeze.md
··· 1 + --- 2 + "@bomb.sh/tools": patch 3 + --- 4 + 5 + Adds `--dts` and `--minify` flags to `build` command
+14 -12
src/commands/build.ts
··· 3 3 import type { CommandContext } from "../context.ts"; 4 4 5 5 export async function build(ctx: CommandContext) { 6 - const args = parse(ctx.args, { 7 - boolean: ["bundle"], 8 - }); 6 + const args = parse(ctx.args, { 7 + boolean: ["bundle", "dts", "minify"], 8 + }); 9 9 10 - const entry = args._.length > 0 ? args._.map(String) : ["src/**/*.ts"]; 10 + const entry = args._.length > 0 ? args._.map(String) : ["src/**/*.ts"]; 11 11 12 - await tsdown({ 13 - config: false, 14 - entry, 15 - format: "esm", 16 - sourcemap: true, 17 - clean: true, 18 - unbundle: !args.bundle, 19 - }); 12 + await tsdown({ 13 + config: false, 14 + entry, 15 + format: "esm", 16 + sourcemap: true, 17 + clean: true, 18 + unbundle: !args.bundle, 19 + dts: args.dts, 20 + minify: args.minify, 21 + }); 20 22 }