From 7475969e24d1716a0634a4431283aa1ad305eb98 Mon Sep 17 00:00:00 2001 From: Jack Herrington Date: Thu, 3 Sep 2026 08:48:04 -0700 Subject: [PATCH] chore: clear tsbuildinfo in clean script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `npm run clean` removed `dist/` but left `tsconfig.build.tsbuildinfo` behind. Because `tsc --incremental` decides what to emit from that file alone rather than from what is on disk, the next `npm run build` saw an up-to-date cache and emitted nothing at all — no `dist/`, silently. Reproduced on `main`: build (1097 files) -> clean -> build (0 files). With this change the second build repopulates `dist/` as expected. Co-Authored-By: Claude Opus 5 (1M context) --- CLAUDE.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 8875a43ee3f..b1204b123b1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -8,7 +8,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co - `npm run build` - Compiles TypeScript using `tsc --project tsconfig.build.json` - `npm run dev` - Runs TypeScript compiler in watch mode -- `npm run clean` - Removes the `dist/` directory +- `npm run clean` - Removes the `dist/` directory and the TypeScript incremental build info files ### Testing diff --git a/package.json b/package.json index c972109b338..ac6e13ca282 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "type": "module", "scripts": { "build": "node ./node_modules/typescript-native/bin/tsc --project tsconfig.build.json", - "clean": "rm -rf dist/", + "clean": "rm -rf dist/ tsconfig.build.tsbuildinfo tsconfig.tsbuildinfo", "dev": "node ./node_modules/typescript-native/bin/tsc --project tsconfig.build.json --watch", "docs": "npm run --prefix=site build", "format": "oxfmt --write",