(rootDir: string)
| 29 | |
| 30 | /** Load the root bumpy config, merging with defaults */ |
| 31 | export 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 */ |
| 41 | export async function loadPackageConfig( |
searching dependent graphs…