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

This commit is contained in:
Aric Camarata 2026-06-13 10:11:19 -04:00
parent fb803e4068
commit d9ce016e4b

View file

@ -34,7 +34,7 @@
"typecheck": "tsc --noEmit",
"pretest": "tsup",
"test": "node --test test.mjs && node --test test-cjs.cjs",
"prepublishOnly": "tsup",
"prepack": "pnpm run build",
"lint": "eslint .",
"format": "prettier --write src/",
"format:check": "prettier --check src/",