(options: { output?: string } = {})
| 1683 | } |
| 1684 | |
| 1685 | async #renderVersion(options: { output?: string } = {}): Promise<string> { |
| 1686 | const info = await this.#getInfoOutput({ |
| 1687 | ...options, |
| 1688 | information: { |
| 1689 | npmPackages: `{${DEFAULT_WEBPACK_PACKAGES.map((item) => `*${item}*`).join(",")}}`, |
| 1690 | }, |
| 1691 | }); |
| 1692 | |
| 1693 | // `--output json|markdown` must stay machine-readable, so only the default |
| 1694 | // plain-text output gets the visual treatment. |
| 1695 | return typeof options.output === "undefined" ? this.#renderEnvinfo(info) : info; |
| 1696 | } |
| 1697 | |
| 1698 | // ─── Shared UI "chrome" ────────────────────────────────────────────────── |
| 1699 | // Small, pure(-ish) renderers for the CLI's visual structure. They read |
no test coverage detected