chore: use .local for playground capture scratch files

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Yang Jun
2026-06-22 19:56:24 +08:00
co-authored by Cursor
parent ff52a00ac4
commit 73e122ad1d
+3 -3
View File
@@ -8,7 +8,7 @@ import { chromium } from 'playwright'
const execFileAsync = promisify(execFile)
const root = join(dirname(fileURLToPath(import.meta.url)), '..')
const docsDir = join(root, 'docs')
const framesDir = join(root, '.tmp/playground-gif-frames')
const framesDir = join(root, '.local/playground-gif-frames')
const outPath = join(docsDir, 'source/playground-demo.gif')
const url = 'http://127.0.0.1:4001/playground.html'
@@ -315,8 +315,8 @@ async function main () {
}
await encodeGif()
await mkdir(join(root, '.tmp'), { recursive: true })
await copyFile(framePaths[framePaths.length - 1], join(root, '.tmp/playground-gif-last-frame.png'))
await mkdir(join(root, '.local'), { recursive: true })
await copyFile(framePaths[framePaths.length - 1], join(root, '.local/playground-gif-last-frame.png'))
await browser.close()
console.log(`Wrote ${outPath} (${framePaths.length} frames @ ${FPS} fps, char typing + live output)`)
} finally {