build: use prepack hook so npm pack/publish reliably emit index.d.mts

This commit is contained in:
Aric Camarata 2026-06-13 10:30:59 -04:00
parent 6aabd304b0
commit f28abeea65

View file

@ -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"