OverviewTypeScriptKotlinPython

TypeScript

Four commands, one shared frontend: transpile, type-check, bundle, and roll up declarations.

build

Terminal
zlow build file.ts               # emit JS (type stripping)
zlow build src/ --out-dir dist/   # whole directory, parallel + incremental
zlow build src/ --out-dir dist/ --watch   # rebuild on change

check

Terminal
zlow check  file.ts               # type-check one file
zlow check src/ --lib-dir <ts>/lib --types-dir <@types/node>  # whole project

bundle

Terminal
zlow bundle src/index.ts          # link the graph into one ES module
zlow bundle src/index.ts --deps --out-dir dist/   # link node_modules too

declarations

Terminal
zlow declarations file.ts         # emit a .d.ts (isolatedDeclarations)
zlow declarations src/index.ts --rollup   # one .d.ts for the package