From 1705f6794d2b053d6634684612bf1396921bc3d6 Mon Sep 17 00:00:00 2001 From: Musa Musa Date: Tue, 4 Aug 2026 16:47:24 +0100 Subject: [PATCH] chore(build): remove outDir before tsup so no empty dirs survive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tsup's clean:true deletes files but leaves empty directories behind. That produced a phantom dist/data during the pre-publish check on #18, which made a docs-only release look like it had changed dist — exactly the wrong false alarm to hit while deciding whether 'patch' was the right bump. Removing the outDir outright is deterministic and needs no new dependency. Verified by planting dist/data and dist/nested/deep before a build: 0 empty directories survive, and the output stays byte-identical to the published 0.5.0 dist. No changeset: consumers receive identical bytes, so this warrants no version entry. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3e2c035..f32fdf7 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "./package.json": "./package.json" }, "scripts": { - "build": "tsup", + "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsup", "dev": "tsup --watch", "test": "vitest run", "test:watch": "vitest",