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) <noreply@anthropic.com>
This commit is contained in:
Mobiletic
2026-07-01 17:03:59 +01:00
parent 144e0c885a
commit 9941a21dd6

View File

@@ -44,6 +44,7 @@
}, },
"scripts": { "scripts": {
"build": "tsup", "build": "tsup",
"prepare": "npm run build",
"example": "npm run build && node --env-file=examples/.env examples/demo.mjs", "example": "npm run build && node --env-file=examples/.env examples/demo.mjs",
"test": "vitest run", "test": "vitest run",
"test:watch": "vitest", "test:watch": "vitest",