From bcc44ed6e89fc673551386cf558949e52b812a9b Mon Sep 17 00:00:00 2001 From: Chen <99816898+donteatfriedrice@users.noreply.github.com> Date: Tue, 28 Apr 2026 19:07:05 +0800 Subject: [PATCH] chore(npm): clean dist before tsc; bump cli + core to 0.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 0.4.0 npm publish shipped stale dist artifacts (commands/connector.js and connector-shared.js from before #114 deleted them, plus core's connectors/ subtree from before #115). tsc only writes new files; it does not delete outputs whose source has been removed. The published tarballs were functional (the CLI entry doesn't import the orphans) but ~37 kB heavier than they should be. Fix: prepend `pnpm run clean` (already defined as `rm -rf dist`) to the build script so every fresh build starts from an empty dist/. Verified locally — cli dist now contains only the 5 surviving commands and core dist no longer carries a connectors/ tree. Bump cli + core to 0.4.1 so the clean build can be published. App, landing, and root version stay at 0.4.0 — the Electron release on GitHub is unaffected by this fix and we don't need to cut another DMG just for npm hygiene. Co-Authored-By: Claude Opus 4.7 (1M context) --- packages/cli/package.json | 4 ++-- packages/core/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index b70edb4..99c06f9 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@spool-lab/cli", - "version": "0.4.0", + "version": "0.4.1", "private": false, "type": "module", "bin": { @@ -20,7 +20,7 @@ "access": "public" }, "scripts": { - "build": "tsc && chmod +x bin/spool.js", + "build": "pnpm run clean && tsc && chmod +x bin/spool.js", "dev": "tsc --watch", "clean": "rm -rf dist", "test": "vitest run", diff --git a/packages/core/package.json b/packages/core/package.json index 41053ff..9056243 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@spool-lab/core", - "version": "0.4.0", + "version": "0.4.1", "private": false, "type": "module", "main": "./dist/index.js", @@ -20,7 +20,7 @@ "scripts": { "rebuild:native": "pnpm run rebuild:native:node", "rebuild:native:node": "node ../../scripts/rebuild-better-sqlite3-node.mjs", - "build": "tsc", + "build": "pnpm run clean && tsc", "dev": "tsc --watch", "test": "pnpm run rebuild:native && vitest run", "clean": "rm -rf dist",