From f28abeea6507ec5bd4dba9f2ebfdcde062a07eb1 Mon Sep 17 00:00:00 2001 From: Aric Camarata Date: Sat, 13 Jun 2026 10:30:59 -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 399aa83..97af663 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "format": "prettier --write src/", "format:check": "prettier --check src/", "validate": "node validate.mjs", - "prepublishOnly": "pnpm run build:ts", + "prepack": "pnpm run build:ts", "coverage": "c8 --reporter=lcov --reporter=text node test.mjs", "docs": "typedoc --out .github/wiki/api src/index.ts", "postbuild": "cp dist/index.d.ts dist/index.d.mts"