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

Function normalizeConfig

packages/cli/src/utils/projectConfig.ts:66–76  ·  view source on GitHub ↗
(partial: Partial<ProjectConfig>)

Source from the content-addressed store, hash-verified

64 * `registry` and rely on default paths).
65 */
66export function normalizeConfig(partial: Partial<ProjectConfig>): ProjectConfig {
67 return {
68 $schema: partial.$schema ?? DEFAULT_PROJECT_CONFIG.$schema,
69 registry: partial.registry ?? DEFAULT_PROJECT_CONFIG.registry,
70 paths: {
71 blocks: partial.paths?.blocks ?? DEFAULT_PROJECT_CONFIG.paths.blocks,
72 components: partial.paths?.components ?? DEFAULT_PROJECT_CONFIG.paths.components,
73 assets: partial.paths?.assets ?? DEFAULT_PROJECT_CONFIG.paths.assets,
74 },
75 };
76}
77
78/** Write `hyperframes.json` to a project directory. Overwrites if present. */
79export function writeProjectConfig(

Callers 2

readProjectConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected