zuke.tools.tsup
@zuke/tsup 1.0.1: @zuke/tsup — a typed TsupTasks wrapper for the [tsup](https://tsup.egoist.dev) bundler, for use in Zuke builds.
zuke on PyPI ↗ 2 symbols
Symbols
class TsupBuildSettings(ToolSettings) Settings for a tsup bundle run.
-
entry(*paths: str) -> SelfEntry point(s) to bundle (positional); repeatable.
-
format(*formats: Literal['esm', 'cjs', 'iife']) -> SelfOutput format(s), joined into
--format(e.g.esm,cjs). -
dts() -> SelfEmit TypeScript declaration files (
--dts). -
minify() -> SelfMinify the output (
--minify). -
sourcemap() -> SelfEmit source maps (
--sourcemap). -
clean() -> SelfClean the output directory before building (
--clean). -
watch() -> SelfRebuild on change (
--watch). -
out_dir(path: str) -> SelfOutput directory (
--out-dir). -
target(value: str) -> SelfCompilation target, e.g.
es2022ornode18(--target). -
tsconfig(path: str) -> SelfPath to a tsconfig file (
--tsconfig). -
config(path: str) -> SelfPath to a tsup config file (
--config).
class TsupTasks Typed task functions for the tsup bundler.
-
static async build(ctx: ServiceContext, configure: Callable[[TsupBuildSettings], TsupBuildSettings] | None=None) -> ExecResultBundle the entry points:
tsup.