( ids: string[], bumpyRelDir: string, statuses: Map<string, 'committed' | 'staged' | 'untracked'>, )
| 220 | } |
| 221 | |
| 222 | function printBumpFileList( |
| 223 | ids: string[], |
| 224 | bumpyRelDir: string, |
| 225 | statuses: Map<string, 'committed' | 'staged' | 'untracked'>, |
| 226 | ): void { |
| 227 | log.dim('Bump files on this branch:'); |
| 228 | for (const id of ids) { |
| 229 | const status = statuses.get(id); |
| 230 | const statusLabel = |
| 231 | status === 'staged' |
| 232 | ? colorize(' (staged)', 'yellow') |
| 233 | : status === 'untracked' |
| 234 | ? colorize(' (untracked)', 'yellow') |
| 235 | : ''; |
| 236 | log.dim(` ${bumpyRelDir}/${id}.md${statusLabel}`); |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | /** Map changed files to the packages they belong to */ |
| 241 | export async function findChangedPackages( |
no test coverage detected
searching dependent graphs…