(phase: Phase, packageName: string)
| 387 | } |
| 388 | |
| 389 | export function prepareReleaseBuild(phase: Phase, packageName: string) { |
| 390 | console.log(chalk.magenta.bold(`~~~ Prepare release build ~~~`)); |
| 391 | console.log(chalk.bold('Prepare before-yarn')); |
| 392 | if (phase.scripts != null && phase.scripts[packageName] != null && |
| 393 | phase.scripts[packageName]['before-yarn'] != null) { |
| 394 | phase.scripts[packageName]['before-yarn'].forEach(script => $(script)); |
| 395 | } |
| 396 | |
| 397 | console.log(chalk.bold('yarn')); |
| 398 | $(`yarn`); |
| 399 | |
| 400 | console.log(chalk.bold('Prepare after-yarn')); |
| 401 | if (phase.scripts != null && phase.scripts[packageName] != null && |
| 402 | phase.scripts[packageName]['after-yarn'] != null) { |
| 403 | phase.scripts[packageName]['after-yarn'].forEach(script => $(script)); |
| 404 | } |
| 405 | } |
| 406 | |
| 407 | export async function getReleaseBranch(name: string): Promise<string> { |
| 408 | // Infer release branch name. |
no test coverage detected
searching dependent graphs…