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

Function writeProjectConfig

packages/cli/src/utils/projectConfig.ts:79–85  ·  view source on GitHub ↗
(
  projectDir: string,
  config: ProjectConfig = DEFAULT_PROJECT_CONFIG,
)

Source from the content-addressed store, hash-verified

77
78/** Write `hyperframes.json` to a project directory. Overwrites if present. */
79export function writeProjectConfig(
80 projectDir: string,
81 config: ProjectConfig = DEFAULT_PROJECT_CONFIG,
82): void {
83 const path = projectConfigPath(projectDir);
84 writeFileSync(path, JSON.stringify(config, null, 2) + "\n", "utf-8");
85}
86
87/**
88 * Load the project config for the given directory, falling back to defaults

Callers 4

scaffoldProjectFunction · 0.85
runAddFunction · 0.85
runFunction · 0.85

Calls 1

projectConfigPathFunction · 0.85

Tested by

no test coverage detected