MCPcopy Create free account
hub / github.com/webpack/webpack-cli / #renderVersion

Method #renderVersion

packages/webpack-cli/src/webpack-cli.ts:1685–1696  ·  view source on GitHub ↗
(options: { output?: string } = {})

Source from the content-addressed store, hash-verified

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

Callers 2

WebpackCLIClass · 0.95
runMethod · 0.95

Calls 2

#getInfoOutputMethod · 0.95
#renderEnvinfoMethod · 0.95

Tested by

no test coverage detected