(originalPath: string, tmpDirPath: string)
| 4 | import { isAbsolute, join, resolve } from 'path'; |
| 5 | |
| 6 | export async function copyToTemp(originalPath: string, tmpDirPath: string): Promise<void> { |
| 7 | // copy files to tmp dir |
| 8 | await cp(originalPath, tmpDirPath, { recursive: true }); |
| 9 | |
| 10 | fixPackageJson(tmpDirPath); |
| 11 | } |
| 12 | |
| 13 | function fixPackageJson(cwd: string): void { |
| 14 | const packageJsonPath = join(cwd, 'package.json'); |
no test coverage detected