(projectPath: string)
| 33 | } |
| 34 | |
| 35 | export async function installLibrary(projectPath: string) { |
| 36 | const TARBALL_PATH = await getLibraryTarball() |
| 37 | |
| 38 | const output = spawnSync('pnpm', ['install', TARBALL_PATH], { |
| 39 | cwd: projectPath, |
| 40 | }) |
| 41 | |
| 42 | if (output.error) { |
| 43 | console.error(output.error) |
| 44 | return Promise.reject( |
| 45 | 'Failed to install the library. See the stderr output above.', |
| 46 | ) |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * @todo Assert that pnpm printed success: |
| 51 | * + msw 0.0.0-fetch.rc-11 |
| 52 | */ |
| 53 | } |
no test coverage detected
searching dependent graphs…