()
| 3 | import { copyToTemp } from './lib/copyToTemp'; |
| 4 | |
| 5 | async function run(): Promise<void> { |
| 6 | const originalPath = process.argv[2]; |
| 7 | const tmpDirPath = process.argv[3]; |
| 8 | |
| 9 | if (!originalPath || !tmpDirPath) { |
| 10 | throw new Error('Original path and tmp dir path are required'); |
| 11 | } |
| 12 | |
| 13 | console.log(`Copying ${originalPath} to ${tmpDirPath}...`); |
| 14 | |
| 15 | await copyToTemp(originalPath, tmpDirPath); |
| 16 | } |
| 17 | |
| 18 | run().catch(error => { |
| 19 | console.error(error); |
no test coverage detected