MCPcopy
hub / github.com/colbymchenry/codegraph / getVersion

Function getVersion

src/installer/index.ts:51–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50
51function getVersion(): string {
52 try {
53 const packageJsonPath = path.join(__dirname, '..', '..', 'package.json');
54 const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
55 return packageJson.version;
56 } catch {
57 return '0.0.0';
58 }
59}
60
61export interface RunInstallerOptions {
62 /** Comma-separated target list, or `auto` / `all` / `none`. */

Callers 2

runInstallerWithOptionsFunction · 0.85
runUninstallerFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected