fix: add prepublishOnly script to ensure dist/ is rebuilt before publish

The published npm package has stale dist/ files that don't include
the SOCRATICODE_PROJECT_ID environment variable support added in source.
This causes the env var to be silently ignored when installed via npm.

Adding a prepublishOnly script ensures tsc runs before every publish,
keeping dist/ in sync with source.
This commit is contained in:
Mantvydas
2026-03-24 14:14:04 +02:00
parent fbc5d54d27
commit 2f5b410a04
+1
View File
@@ -15,6 +15,7 @@
"lint": "biome check src/ tests/",
"lint:fix": "biome check --write src/ tests/",
"release": "release-it",
"prepublishOnly": "tsc",
"release:dry": "release-it --dry-run",
"test": "vitest run",
"test:unit": "vitest run tests/unit/",