()
| 1 | import fsExtra from 'fs-extra'; |
| 2 | |
| 3 | export async function cloneThreeJsIfNotExists() { |
| 4 | if (!fsExtra.existsSync('./tmp/github/three')) { |
| 5 | fsExtra.ensureDirSync('./tmp/github'); |
| 6 | await $`git clone --branch r108 --depth 1 https://github.com/mrdoob/three.js.git ./tmp/github/three`; |
| 7 | } else { |
| 8 | console.log('[skip] three.js already cloned'); |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | export async function cloneRolldownBenchcasesIfNotExists() { |
| 13 | if (!fsExtra.existsSync('./tmp/github/rolldown-benchcases')) { |
no test coverage detected
searching dependent graphs…