mirror of
https://github.com/giancarloerra/socraticode.git
synced 2026-07-03 14:05:21 +02:00
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:
@@ -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/",
|
||||
|
||||
Reference in New Issue
Block a user