zuke.tools.tsc
@zuke/tsc 1.1.0: @zuke/tsc — typed tsc task wrappers for Zuke builds.
zuke on PyPI ↗ 4 symbols
Symbols
class TscBaseSettings(ToolSettings) Shared base for tsc settings; resolves the tsc binary.
class TscBuildSettings(TscBaseSettings) Settings for a tsc --build project-references run.
-
projects(*values: str) -> SelfProject config files or directories to build (positional); repeatable.
-
no_emit() -> SelfType-check without emitting output (
--noEmit).tsc --buildaccepts the same compiler-option overrides as a plain compile, applied on top of each project's build; this is not inherited from TscBaseSettings — TscSettings.noEmit is a separate, unrelated field on the other subclass. -
clean() -> SelfDelete the outputs of all projects (
--clean). -
force() -> SelfBuild all projects, even those that appear up to date (
--force). -
dry() -> SelfShow what would be built without building it (
--dry). -
watch() -> SelfRebuild projects on file changes (
--watch). -
verbose() -> SelfPrint verbose logging about the build (
--verbose). -
incremental() -> SelfReuse prior build information for faster rebuilds (
--incremental).
class TscSettings(TscBaseSettings) Settings for a standard tsc run.
-
paths(*values: str) -> SelfSource files to compile (positional); repeatable.
-
project(path: str) -> SelfCompile the project at the given config or directory (
-p/--project). -
no_emit() -> SelfType-check without emitting output (
--noEmit). -
out_dir(path: str) -> SelfDirectory for emitted files (
--outDir). -
declaration() -> SelfGenerate
.d.tsdeclaration files (--declaration). -
emit_declaration_only() -> SelfEmit declarations only, no JavaScript (
--emitDeclarationOnly). -
incremental() -> SelfReuse prior build information for faster rebuilds (
--incremental). -
watch() -> SelfRecompile on file changes (
--watch). -
strict() -> SelfEnable all strict type-checking options (
--strict). -
pretty() -> SelfColourise and format diagnostics (
--pretty). -
list_files() -> SelfPrint the names of files included in the compilation (
--listFiles). -
skip_lib_check() -> SelfSkip type-checking of declaration files (
--skipLibCheck). -
no_emit_on_error() -> SelfDo not emit output if any errors are reported (
--noEmitOnError). -
target(value: str) -> SelfTarget ECMAScript version, e.g.
es2022(--target). -
module(value: str) -> SelfModule system, e.g.
esnext,nodenext(--module).
class TscTasks Typed task functions for the tsc TypeScript compiler.
-
static async tsc(ctx: ServiceContext, configure: Callable[[TscSettings], TscSettings] | None=None) -> ExecResultType-check (or compile) with
tsc. -
static async build(ctx: ServiceContext, configure: Callable[[TscBuildSettings], TscBuildSettings] | None=None) -> ExecResultRun a project-references build with
tsc --build.