[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.

fix(build): update entrypoint

Nate Moore (Mar 16, 2026, 10:04 PM EDT) 61c37634 f1ad9a10

+18 -20
+5
.changeset/gold-moments-marry.md
··· 1 + --- 2 + "@bomb.sh/tools": patch 3 + --- 4 + 5 + Updates `tsdown` entrypoint (defaults to `src`)
+13 -20
src/commands/build.ts
··· 1 1 import { parse } from "@bomb.sh/args"; 2 - import { x } from "tinyexec"; 2 + import { build as tsdown } from "tsdown"; 3 3 import type { CommandContext } from "../context.ts"; 4 - import { local } from "../utils.ts"; 5 4 6 5 export async function build(ctx: CommandContext) { 7 - const args = parse(ctx.args, { 8 - boolean: ["bundle"], 9 - }); 6 + const args = parse(ctx.args, { 7 + boolean: ["bundle"], 8 + }); 10 9 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"); 10 + const entry = args._.length > 0 ? args._.map(String) : ["src"]; 21 11 22 - const stdio = x(local("tsdown"), tsdownArgs); 23 - 24 - for await (const line of stdio) { 25 - console.log(line); 26 - } 12 + await tsdown({ 13 + config: false, 14 + entry, 15 + format: "esm", 16 + sourcemap: true, 17 + clean: true, 18 + unbundle: !args.bundle, 19 + }); 27 20 }