MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / findRepoRoot

Function findRepoRoot

packages/cli/src/commands/cloudrun.ts:426–431  ·  view source on GitHub ↗

Walk up from the terraform dir to find the repo root (the one with the Dockerfile context).

(tfDir: string)

Source from the content-addressed store, hash-verified

424
425/** Walk up from the terraform dir to find the repo root (the one with the Dockerfile context). */
426function findRepoRoot(tfDir: string): string | null {
427 // tfDir is <root>/packages/gcp-cloud-run/terraform
428 const candidate = resolve(tfDir, "..", "..", "..");
429 if (existsSync(join(candidate, "packages", "gcp-cloud-run", "Dockerfile"))) return candidate;
430 return null;
431}
432
433function writeCloudBuildConfig(image: string): string {
434 const cfgPath = join(stateDir(), "cloudrun-cloudbuild.yaml");

Callers 1

runDeployFunction · 0.85

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected