()
| 63 | } |
| 64 | |
| 65 | async function syncContent(): Promise<void> { |
| 66 | const extractedPath = await cloneRepo(); |
| 67 | const commitSha = getLatestCommit(); |
| 68 | |
| 69 | // Create content directory if it doesn't exist (don't delete existing) |
| 70 | await mkdir(LOCAL_CONTENT_PATH, { recursive: true }); |
| 71 | |
| 72 | await copyDirectory(extractedPath, LOCAL_CONTENT_PATH); |
| 73 | await writeFile(".upstream-commit", commitSha); |
| 74 | await rm(TEMP_DIR, { recursive: true }); |
| 75 | |
| 76 | execSync("bun format", { stdio: "pipe" }); |
| 77 | } |
| 78 | |
| 79 | syncContent().catch(() => { |
| 80 | process.exit(1); |
no test coverage detected