From d6b6d709896aaecea91639099c038550867d079a Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 28 Aug 2026 16:44:09 +0000 Subject: [PATCH] Run the tests before publishing A prepublishOnly script makes npm publish fail rather than ship a broken build. Verified all three ways it needs to behave: it runs on publish, it aborts the publish with a non-zero exit when a test fails, and it leaves npm pack alone, since packing is not publishing. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01QJR2DDBimsijgYgZS3bUS8 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5ed3d0f..3ac22c5 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ ], "scripts": { "start": "node shadowtools.js", - "test": "node --test" + "test": "node --test", + "prepublishOnly": "npm test" }, "keywords": [ "outline",