@ministryofjustice/hmpps-precommit-hooks 0.0.3 → 0.0.4

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ## 0.0.4
4
+
5
+ Reading `.gitleaksignore` from the correct location.
6
+ Previously it was assuming `.gitleaksignore` would be in the project root directory rather than in the `.gitleaks` directory.
7
+
3
8
  ## 0.0.3
4
9
 
5
10
  Remove pipefail from prepare script
package/bin/init.sh CHANGED
@@ -45,7 +45,7 @@ else
45
45
  fi
46
46
 
47
47
  startStage " * Adding npm scripts"
48
- npm pkg --silent set scripts.precommit:secrets="gitleaks git --pre-commit --redact --staged --verbose --config .gitleaks/config.toml"
48
+ npm pkg --silent set scripts.precommit:secrets="gitleaks git --pre-commit --redact --staged --verbose --config .gitleaks/config.toml --gitleaks-ignore-path .gitleaks/.gitleaksignore"
49
49
  npm pkg --silent set scripts.precommit:lint="node_modules/.bin/lint-staged"
50
50
  npm pkg --silent set scripts.precommit:verify="npm run typecheck && npm test"
51
51
  endStage " ✅"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-precommit-hooks",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Precommit hooks for HMPPS typescript projects",
5
5
  "keywords": [
6
6
  "precommit"