mirror of
https://github.com/aphrody-labs/deno.git
synced 2026-10-14 06:19:28 +00:00
## Summary `deno compile` currently shows only `Compile file:///... to file:///...` and then goes silent until it finishes, which can take a while for projects with large npm dependency trees. This PR adds progress feedback using the existing `ProgressBar` infrastructure. ### What the user sees **TTY (interactive terminal):** Animated progress bar during slow phases (>120ms), nothing for fast operations. **Non-TTY (CI/piped):** Log lines for each phase: ``` Compile file:///project/main.ts to file:///project/main Compile Embedding node_modules Compile Processing modules ``` ### Phases tracked | Phase | Progress type | When | |-------|--------------|------| | Embedding node_modules | Indeterminate (elapsed time) | Local node_modules via byonm or managed resolver | | Embedding npm packages | Determinate (X/Y packages) | Global npm cache with known package count | | Processing modules | Determinate (X/Y modules) | Module graph transpilation and CJS analysis | ### Other changes Fixed `BarProgressBarRenderer` to use `display_entry.prompt.as_text()` instead of hardcoded `"Download"` — the prompt field on progress entries was being ignored. Added `ProgressMessagePrompt::Compile` variant for the green "Compile" prefix.