bynk/compile.rs
1//! `bynk compile` — compile a project (or one file) to TypeScript or JavaScript.
2//!
3//! Runs in-process (#2998, E1): the body is [`bynk_driver::run_compile`], the
4//! same one `bynk compile` runs, so the output is identical and no separate
5//! compiler binary is needed. stdin is inherited, which is how
6//! `--sources-stdin` (what "Bynk: Show Compiled Output" uses) reaches it.
7
8use std::process::ExitCode;
9
10use bynk_driver::CompileArgs;
11
12/// Run `bynk compile`.
13pub fn run(args: CompileArgs) -> ExitCode {
14 bynk_driver::run_compile("bynk", args)
15}