feat: optimize Docker build performance and add version validation (#176)

This commit is contained in:
Doh
2025-08-20 10:04:23 -04:00
committed by GitHub
parent 8fb7cd1810
commit ee2821b2bf
6 changed files with 51 additions and 19 deletions

10
.husky/pre-commit Normal file → Executable file
View File

@@ -1 +1,11 @@
#!/bin/sh
# Check that package.json version exists in CHANGELOG.md
VERSION=$(node -p "require('./package.json').version")
if ! grep -q "## Version $VERSION" CHANGELOG.md; then
echo "❌ Error: Version $VERSION from package.json not found in CHANGELOG.md"
echo "Please add an entry for version $VERSION in CHANGELOG.md"
exit 1
fi
echo "✅ Version $VERSION found in CHANGELOG.md"
npm run typecheck && npm run lint && npm run test