From 9941a21dd616f48ffb94e7d14aa911f18221e86c Mon Sep 17 00:00:00 2001 From: Mobiletic Date: Wed, 1 Jul 2026 17:03:59 +0100 Subject: [PATCH] chore: add prepare script so the package builds on git install Enables consuming the package as a git dependency (e.g. from Gitea): npm runs 'prepare' on install, which builds dist/ (git-ignored). Co-Authored-By: Claude Opus 4.8 (1M context) --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index dea6c33..3459cd4 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ }, "scripts": { "build": "tsup", + "prepare": "npm run build", "example": "npm run build && node --env-file=examples/.env examples/demo.mjs", "test": "vitest run", "test:watch": "vitest",