MCPcopy
hub / github.com/triggerdotdev/trigger.dev / getVersion

Function getVersion

packages/cli/src/utils/getVersion.ts:6–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { readJSONFileSync } from "./fileSystem";
5
6export function getVersion() {
7 const packageJsonPath = path.join(PKG_ROOT, "package.json");
8
9 const packageJsonContent = readJSONFileSync(packageJsonPath) as PackageJson;
10
11 return packageJsonContent.version ?? "1.0.0";
12}

Callers 2

constructorMethod · 0.90
index.tsFile · 0.90

Calls 1

readJSONFileSyncFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…