MCPcopy
hub / github.com/ionic-team/capacitor / mergeConfig

Function mergeConfig

cli/src/tasks/init.ts:147–152  ·  view source on GitHub ↗
(config: Config, extConfig: ExternalConfig, newConfigPath: string)

Source from the content-addressed store, hash-verified

145}
146
147async function mergeConfig(config: Config, extConfig: ExternalConfig, newConfigPath: string): Promise<void> {
148 const oldConfig = { ...config.app.extConfig };
149 const newConfig = { ...oldConfig, ...extConfig };
150
151 await writeConfig(newConfig, newConfigPath);
152}
153
154function printNextSteps(newConfigName: string) {
155 logSuccess(`${c.strong(newConfigName)} created!`);

Callers 1

runMergeConfigFunction · 0.85

Calls 1

writeConfigFunction · 0.90

Tested by

no test coverage detected