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

Function readStackOutputs

packages/cli/src/commands/lambda/state.ts:51–62  ·  view source on GitHub ↗
(
  stackName: string = DEFAULT_STACK_NAME,
  cwd: string = process.cwd(),
)

Source from the content-addressed store, hash-verified

49}
50
51export function readStackOutputs(
52 stackName: string = DEFAULT_STACK_NAME,
53 cwd: string = process.cwd(),
54): StackOutputs | null {
55 const path = stateFilePath(stackName, cwd);
56 if (!existsSync(path)) return null;
57 try {
58 return JSON.parse(readFileSync(path, "utf-8")) as StackOutputs;
59 } catch {
60 return null;
61 }
62}
63
64export function deleteStackOutputs(
65 stackName: string = DEFAULT_STACK_NAME,

Callers 2

state.test.tsFile · 0.85
requireStackFunction · 0.85

Calls 1

stateFilePathFunction · 0.85

Tested by

no test coverage detected