From d5e40352376028cfbb28a64d648d8d8a3bad7845 Mon Sep 17 00:00:00 2001 From: Matt Gros <3311227+mpge@users.noreply.github.com> Date: Sun, 19 Apr 2026 16:16:26 -0400 Subject: [PATCH] chore: drop prepare script (build/ is committed for git installs) Now that build/ ships in the repo (#7), the prepare lifecycle is unneeded. Worse, leaving it in triggers an npm 11 bug for git-URL consumers: npm spawns the prepare child install with both --prefer-offline=false AND --prefer-online=false, which the cli now rejects as mutually exclusive. Removing prepare bypasses that path entirely and lets git-ref installs succeed on every npm version. prepublishOnly is kept so an eventual `npm publish` still runs the build before packaging. --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 7c7fac3..63be008 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,6 @@ "test": "npx tsx --test tests/**/*.test.ts", "lint": "eslint . --max-warnings 0", "format:check": "prettier --check src/", - "prepare": "npm run build", "prepublishOnly": "npm run build" }, "keywords": [