(tag: string)
| 30 | }; |
| 31 | |
| 32 | export const gitTagExists = (tag: string): boolean => { |
| 33 | const output = execSync(`git tag --list "${tag}"`).toString().trim(); |
| 34 | |
| 35 | return output === tag; |
| 36 | }; |
| 37 | |
| 38 | export const capitalize = (str: string, lower = false) => |
| 39 | (lower ? str.toLowerCase() : str).replace(/(?:^|\s|["'([{])+\S/g, match => match.toUpperCase()); |