zuke.tools.tsdown
@zuke/tsdown 1.0.1: @zuke/tsdown — a typed TsdownTasks wrapper for the [tsdown](https://tsdown.dev) bundler, for use in Zuke builds.
zuke on PyPI ↗ 3 symbols
Symbols
class TsdownBuildSettings(ToolSettings) Settings for a tsdown bundle run (tsdown [entries] [flags]).
-
entry(*paths: str) -> SelfEntry point(s) to bundle (positional); repeatable.
-
format(*formats: Literal['esm', 'cjs', 'iife', 'umd']) -> 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 tsdown config file (
--config). -
platform(value: str) -> SelfTarget platform, e.g.
node,browser, orneutral(--platform). -
treeshake() -> SelfEnable tree-shaking of the output (
--treeshake).
class TsdownMigrateSettings(ToolSettings) Settings for a tsdown migrate run (tsdown migrate [flags]).
-
from_(value: str) -> SelfThe tool to migrate from, e.g.
tsup(--from). -
dry_run() -> SelfPreview the migration without writing any files (
--dry-run).
class TsdownTasks Typed task functions for the tsdown bundler.
-
static async build(ctx: ServiceContext, configure: Callable[[TsdownBuildSettings], TsdownBuildSettings] | None=None) -> ExecResultBundle the entry points:
tsdown. -
static async migrate(ctx: ServiceContext, configure: Callable[[TsdownMigrateSettings], TsdownMigrateSettings] | None=None) -> ExecResultMigrate an existing project to tsdown:
tsdown migrate.