From bc1f5c6bd02616aa3adab5331518f4e69ac3420a Mon Sep 17 00:00:00 2001 From: aarroyo Date: Mon, 27 Jul 2026 08:55:21 -0500 Subject: [PATCH] fix(release): normalise bin paths so npm stops auto-correcting on publish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The second dry run (30271837941) was clean on everything the first one found — LICENSE ships in all four packages, repository.url no longer normalised — but still reported two auto-correction warnings, from a different cause: npm warn publish "bin[evolith-mcp]" script name was cleaned npm warn publish "bin[evolith]" script name was cleaned npm warn publish "bin[evolith-cli]" script name was cleaned `mcp-server` and `cli` declared their bins as `./dist/main.js`; npm strips the leading `./` on publish and warns while doing it. Declaring the normalised form is what `npm pkg fix` would do, and it changes nothing about how the binaries resolve — verified after the change: `cli --version` prints 1.2.0 and the MCP server still starts. Publishing through a warning means accepting that npm rewrites your manifest for you. With the warnings at zero, what is declared is what is published. Both defects fixed in this release preparation were found by rehearsal, and both would have been permanent — npm forbids unpublishing after 72 hours. That is the argument for `dry_run` defaulting to true, restated as evidence rather than opinion. Verified: 10-validate-contract-conformance, 11-validate-product-docs and 24-check-surface-parity exit 0; ci-runner governance 17/17 exit 0; `npm pack --dry-run` reports 0 auto-correction warnings for both packages. Co-Authored-By: Claude Opus 5 --- src/packages/mcp-server/package.json | 2 +- src/sdk/cli/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/packages/mcp-server/package.json b/src/packages/mcp-server/package.json index b39dcb32..bcfa39f0 100644 --- a/src/packages/mcp-server/package.json +++ b/src/packages/mcp-server/package.json @@ -5,7 +5,7 @@ "main": "dist/main.js", "types": "dist/main.d.ts", "bin": { - "evolith-mcp": "./dist/main.js" + "evolith-mcp": "dist/main.js" }, "scripts": { "build": "nest build", diff --git a/src/sdk/cli/package.json b/src/sdk/cli/package.json index 877afa97..53c683e9 100644 --- a/src/sdk/cli/package.json +++ b/src/sdk/cli/package.json @@ -4,8 +4,8 @@ "description": "Evolith CLI - Governance, standards validation, and AI agent integration for satellite repositories", "main": "dist/main.js", "bin": { - "evolith": "./dist/main.js", - "evolith-cli": "./dist/main.js" + "evolith": "dist/main.js", + "evolith-cli": "dist/main.js" }, "directories": { "doc": "docs"