MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / getVersion

Function getVersion

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

Source from the content-addressed store, hash-verified

4import { readJSONFileSync } from "./fileSystem.js";
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 5

printInitialBannerFunction · 0.70
updateTriggerPackagesFunction · 0.50
configureLoginCommandFunction · 0.50
index.tsFile · 0.50

Calls 1

readJSONFileSyncFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…