mirror of
https://github.com/ManInDark/HabitTrove.git
synced 2026-01-21 06:34:30 +01:00
feat: optimize Docker build performance and add version validation (#176)
This commit is contained in:
10
.husky/pre-commit
Normal file → Executable file
10
.husky/pre-commit
Normal file → Executable 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
|
||||
|
||||
Reference in New Issue
Block a user