
Moves the merge script from the components repository over to the shared dev-infra package. The merge script has been orginally built for all Angular repositories, but we just kept it in the components repo temporarily to test it. Since everything went well on the components side, we now move the script over and integrate it into the dev-infra package. PR Close #37184
21 lines
602 B
TypeScript
21 lines
602 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
import {prompt} from 'inquirer';
|
|
|
|
/** Prompts the user with a confirmation question and a specified message. */
|
|
export async function promptConfirm(message: string, defaultValue = false): Promise<boolean> {
|
|
return (await prompt<{result: boolean}>({
|
|
type: 'confirm',
|
|
name: 'result',
|
|
message: message,
|
|
default: defaultValue,
|
|
}))
|
|
.result;
|
|
}
|