MCPcopy Create free account
hub / github.com/code-pushup/cli / getVersion

Function getVersion

packages/cli/src/lib/implementation/version.ts:3–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { createRequire } from 'node:module';
2
3export function getVersion(): string {
4 const packageJson = createRequire(import.meta.url)(
5 '../../../package.json',
6 ) as typeof import('../../../package.json');
7 return packageJson.version;
8}

Callers 2

yargsCliFunction · 0.85
logIntroMiddlewareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected