@financebuddha/standards 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/husky/pre-commit +4 -2
  2. package/package.json +1 -1
package/husky/pre-commit CHANGED
@@ -14,9 +14,11 @@ fi
14
14
  # file first — grep -f treats every line (including '# AWS') as a regex, which
15
15
  # would otherwise match the comments themselves.
16
16
  if [ -f "$PATTERNS" ]; then
17
- CLEAN=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$PATTERNS")
17
+ # `|| true` guards grep's exit-1-on-no-match from aborting the hook under
18
+ # husky's `set -e`.
19
+ CLEAN=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$PATTERNS" || true)
18
20
  if [ -n "$CLEAN" ]; then
19
- SECRETS=$(git diff --cached -U0 | grep -E "$CLEAN" 2>/dev/null)
21
+ SECRETS=$(git diff --cached -U0 | grep -E "$CLEAN" 2>/dev/null || true)
20
22
  if [ -n "$SECRETS" ]; then
21
23
  echo "❌ Possible secrets detected in staged changes:"
22
24
  echo "$SECRETS"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financebuddha/standards",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Shared engineering standards: ESLint, TypeScript, Prettier, commitlint, secrets scanning, and Claude skills",
5
5
  "type": "module",
6
6
  "license": "MIT",