UNPKG

@bomb.sh/tools

Version:

The internal dev, build, and lint CLI for Bombshell projects

25 lines (23 loc) 536 B
import { parse } from "@bomb.sh/args"; import { build as build$1 } from "tsdown"; //#region src/commands/build.ts async function build(ctx) { const args = parse(ctx.args, { boolean: [ "bundle", "dts", "minify" ] }); await build$1({ config: false, entry: args._.length > 0 ? args._.map(String) : ["src/**/*.ts", "!src/**/*.test.ts"], format: "esm", sourcemap: true, clean: true, unbundle: !args.bundle, dts: args.dts, minify: args.minify }); } //#endregion export { build }; //# sourceMappingURL=build.mjs.map