From 9a2a984770a3494f0917786fd1d6291ea1b14fd2 Mon Sep 17 00:00:00 2001 From: Aric Camarata Date: Sat, 13 Jun 2026 10:30:57 -0400 Subject: [PATCH] build: use prepack hook so npm pack/publish reliably emit index.d.mts --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cab9aa2..f4855ff 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "lint": "eslint src/", "format": "prettier --write src/", "format:check": "prettier --check src/", - "prepublishOnly": "pnpm run build", + "prepack": "pnpm run build", "cli": "node dist/cli/index.cjs", "coverage": "c8 --reporter=lcov --reporter=text node test.mjs", "docs": "typedoc --out .github/wiki/api src/index.ts"