zuke.tools.bun
@zuke/bun 1.3.0: @zuke/bun — typed BunTasks wrappers for the bun CLI, for use in Zuke build targets (package management, scripts, and the built-in test runner).
zuke on PyPI ↗ 8 symbols
Symbols
class BunAddSettings(BunSettings) Settings for bun add.
-
packages(*specs: str) -> SelfPackage specs to add (required).
-
dev() -> SelfAdd to devDependencies (
--dev). -
optional() -> SelfAdd to optionalDependencies (
--optional). -
exact() -> SelfPin the exact version (
--exact). -
global_() -> SelfInstall globally (
--global).
class BunInstallSettings(BunSettings) Settings for bun install.
-
production() -> SelfInstall without devDependencies (
--production). -
frozen_lockfile() -> SelfFail if the lockfile is out of date (
--frozen-lockfile).
class BunRemoveSettings(BunSettings) Settings for bun remove.
-
packages(*names: str) -> SelfPackage names to remove (required).
class BunRunSettings(BunSettings) Settings for bun run.
-
script(name: str) -> SelfThe package.json script to run (required).
-
script_args(*args: str | float) -> SelfArguments forwarded to the script.
class BunSettings(ToolSettings) Base for all bun subcommand settings: binary is bun from PATH.
class BunTasks Typed task functions for the bun CLI.
-
static async install(ctx: ServiceContext, configure: Callable[[BunInstallSettings], BunInstallSettings] | None=None) -> ExecResultInstall dependencies:
bun install. -
static async add(ctx: ServiceContext, configure: Callable[[BunAddSettings], BunAddSettings] | None=None) -> ExecResultAdd dependencies:
bun add. -
static async remove(ctx: ServiceContext, configure: Callable[[BunRemoveSettings], BunRemoveSettings] | None=None) -> ExecResultRemove dependencies:
bun remove. -
static async run(ctx: ServiceContext, configure: Callable[[BunRunSettings], BunRunSettings] | None=None) -> ExecResultRun a package.json script:
bun run. -
static async x(ctx: ServiceContext, configure: Callable[[BunXSettings], BunXSettings] | None=None) -> ExecResultExecute a package binary:
bun x(bunx). -
static async test(ctx: ServiceContext, configure: Callable[[BunTestSettings], BunTestSettings] | None=None) -> ExecResultRun the test suite:
bun test.
class BunTestSettings(BunSettings) Settings for bun test.
-
paths(*patterns: str) -> SelfTest file or directory patterns to run; omit to run all tests.
-
coverage() -> SelfCollect coverage (
--coverage). -
bail() -> SelfStop after the first failure (
--bail).
class BunXSettings(BunSettings) Settings for bun x (the bunx package runner).
-
command(name: str) -> SelfThe package binary to execute (required).
-
exec_args(*args: str | float) -> SelfArguments forwarded to the command.