MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getVersion

Function getVersion

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

Source from the content-addressed store, hash-verified

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

Callers 2

runInstallerWithOptionsFunction · 0.85
runUninstallerFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected