(str: string, lower = false)
| 36 | }; |
| 37 | |
| 38 | export const capitalize = (str: string, lower = false) => |
| 39 | (lower ? str.toLowerCase() : str).replace(/(?:^|\s|["'([{])+\S/g, match => match.toUpperCase()); |
| 40 | |
| 41 | export const targetExists = (project: string, target: string): boolean => { |
| 42 | const output = execSync(`npx nx show projects --withTarget="${target}" -p "${project}"`) |