MCPcopy Index your code
hub / github.com/dmno-dev/bumpy / loadConfig

Function loadConfig

packages/bumpy/src/core/config.ts:31–38  ·  view source on GitHub ↗
(rootDir: string)

Source from the content-addressed store, hash-verified

29
30/** Load the root bumpy config, merging with defaults */
31export async function loadConfig(rootDir: string): Promise<BumpyConfig> {
32 const configPath = resolve(rootDir, BUMPY_DIR, CONFIG_FILE);
33 let userConfig: Partial<BumpyConfig> = {};
34 if (await exists(configPath)) {
35 userConfig = await readJsonc<Partial<BumpyConfig>>(configPath);
36 }
37 return mergeConfig(DEFAULT_CONFIG, userConfig);
38}
39
40/** Load per-package bumpy config from package.json["bumpy"] or .bumpy.config.json */
41export async function loadPackageConfig(

Callers 11

detectFunction · 0.90
checkCommandFunction · 0.90
statusCommandFunction · 0.90
generateCommandFunction · 0.90
addCommandFunction · 0.90
versionCommandFunction · 0.90
ciCheckCommandFunction · 0.90
ciPlanCommandFunction · 0.90
ciReleaseCommandFunction · 0.90
publishCommandFunction · 0.90

Calls 2

existsFunction · 0.90
mergeConfigFunction · 0.85

Tested by 1

detectFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…