From b2fb2372ab0d60c7784a4ac2b49b434525b18ea2 Mon Sep 17 00:00:00 2001 From: John McLear Date: Fri, 22 May 2026 10:29:39 +0100 Subject: [PATCH] chore: add prepare script so git installs build dist/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Consumers that install ueberdb2 via a git ref (e.g. `pnpm add github:ether/ueberDB#main`) need the TypeScript sources compiled into dist/ — the published tarball ships the built artefacts but the git tree does not (dist/ is gitignored). `npm`/`pnpm`'s `prepare` hook runs on git installs and is a no-op for tarball installs from the npm registry, so this fix has zero impact on the published-tarball path. Picked up while unblocking ether/etherpad#7831, whose CI cannot resolve `ueberdb2 ^6.1.0` until the npm publish workflow on this repo (failing E404 since #981 merged) is restored. A git-ref pin is the natural stopgap and requires this script to work end-to-end. Co-Authored-By: Claude Opus 4.7 (1M context) --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 9d497e48..16e1d956 100644 --- a/package.json +++ b/package.json @@ -138,6 +138,7 @@ "format": "oxfmt --write .", "format:check": "oxfmt --check .", "build": "pnpm run build:js && pnpm run build:types", + "prepare": "pnpm run build", "build:js": "pnpm exec rolldown -c rolldown.config.mjs", "build:types": "pnpm exec tsc --emitDeclarationOnly", "test": "vitest --test-timeout=120000",