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:54 -04:00
parent 64bb9a91d0
commit b5c6ca007a

View file

@ -36,7 +36,7 @@
"lint": "eslint .",
"format": "prettier --write src/",
"format:check": "prettier --check src/",
"prepublishOnly": "tsup",
"prepack": "pnpm run build",
"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"