( toolCommand: string, error: string, cwd?: string )
| 87 | }; |
| 88 | |
| 89 | export const getCommandOutputNotEmpty = async ( |
| 90 | toolCommand: string, |
| 91 | error: string, |
| 92 | cwd?: string |
| 93 | ): Promise<string> => { |
| 94 | const stdOut = getCommandOutput(toolCommand, cwd); |
| 95 | if (!stdOut) { |
| 96 | throw new Error(error); |
| 97 | } |
| 98 | return stdOut; |
| 99 | }; |
| 100 | |
| 101 | export const getPackageManagerInfo = async (packageManager: string) => { |
| 102 | if (packageManager === 'npm') { |
no test coverage detected