From 880c841cf49e7e186c34c84109495c8ada90591c Mon Sep 17 00:00:00 2001 From: Joseph Mearman Date: Thu, 10 Sep 2026 10:07:05 +0100 Subject: [PATCH] feat: add a prepare script so a git-dependency install builds itself An npm-published install gets dist/ pre-built into the tarball, but a git dependency (github:ExaDev/cddl.js#main) gets a plain checkout with no dist/ at all -- every subpath export failed to resolve. prepare is the standard npm/pnpm lifecycle hook for exactly this: it runs after a git-ref install, before the dependent's own install finishes. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index a120ccd..4109645 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "dist" ], "scripts": { + "prepare": "pnpm run build", "build": "turbo run _build", "_build": "tsdown", "vendor:build": "turbo run _vendor:build",