From 2694bcf555a0c7a50aed10407649c97f1640980d Mon Sep 17 00:00:00 2001 From: Aymeric Rabot Date: Wed, 3 Jun 2026 13:18:41 -0400 Subject: [PATCH] chore: add clean:cache and restart scripts (#363) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add `bun clean:cache` to clear .turbo / .next / .swc / node_modules caches across apps, packages, and tooling — mirrors the command in the private-editor root so a stale-cache reset works the same in both repos. Also add a `restart` convenience: kill → clean:cache → dev. Co-authored-by: Claude Opus 4.8 (1M context) --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index bb9acd33..4fb03579 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,8 @@ "check:fix": "biome check --write", "check-types": "turbo run check-types", "kill": "lsof -ti:3002 | xargs kill -9 2>/dev/null || echo 'No processes found on port 3002'", + "clean:cache": "rm -rf apps/*/.next apps/*/.swc apps/*/.turbo packages/*/.turbo tooling/*/.turbo .turbo node_modules/.cache", + "restart": "bun kill && bun clean:cache && bun dev", "release": "gh workflow run release.yml -f package=all -f bump=patch", "release:viewer": "gh workflow run release.yml -f package=viewer -f bump=patch", "release:core": "gh workflow run release.yml -f package=core -f bump=patch",