From 811d866c09ef20ef9d702feed02a78a9676bab77 Mon Sep 17 00:00:00 2001 From: Steve Larson <9larsons@gmail.com> Date: Mon, 29 Jun 2026 15:10:54 -0500 Subject: [PATCH] Removed parse-email-address prepare script that broke Docker dev build The prepare: pnpm build script (added in #28969) runs during pnpm install, including inside the ghost-dev Docker image build. That stage only copies workspace package.json files into the image (not src/), so tsc finds no input files and exits 1 with help output. Docker build fails, pnpm dev cannot start. Removed the prepare hook. Type resolution for the build/index.d.ts output still works for developers who have run a prior build (pnpm build inside ghost/parse-email-address) or who run ghost/core lint:types (which explicitly builds parse-email-address first). A more robust fix for the type-resolution gap would be to surface src as the types path in the exports field; tracking separately. ref #28969 no ref --- ghost/parse-email-address/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/ghost/parse-email-address/package.json b/ghost/parse-email-address/package.json index e15c0075199..6efba7d12be 100644 --- a/ghost/parse-email-address/package.json +++ b/ghost/parse-email-address/package.json @@ -18,7 +18,6 @@ "dev": "tsc --watch --preserveWatchOutput --sourceMap", "build": "pnpm build:tsc", "build:tsc": "tsc", - "prepare": "pnpm build", "test:unit": "NODE_ENV=testing vitest run --coverage", "test": "pnpm test:types && pnpm test:unit", "test:types": "tsc --noEmit",