From 73e122ad1d6865386ff2d342bab7058b22bd21c6 Mon Sep 17 00:00:00 2001 From: Yang Jun Date: Mon, 22 Jun 2026 19:56:24 +0800 Subject: [PATCH] chore: use .local for playground capture scratch files Co-authored-by: Cursor --- bin/capture-readme-playground.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/capture-readme-playground.mjs b/bin/capture-readme-playground.mjs index 2e636ec0f..d704716b4 100644 --- a/bin/capture-readme-playground.mjs +++ b/bin/capture-readme-playground.mjs @@ -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 {