@ministryofjustice/hmpps-precommit-hooks 2.0.1 → 3.0.0

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,8 +1,16 @@
1
1
  # Change log
2
2
 
3
+ ## 3.0.0
4
+
5
+ Drops support for node engine 20 (no longer maintained) and adds 26 (will be LTS later this year).
6
+
7
+ ## 2.0.2
8
+
9
+ Change default precommit config to run linting, typechecks and tests if the package-lock.json file changes
10
+
3
11
  ## 2.0.1
4
12
 
5
- Fixing config.toml location
13
+ Fixing config.toml location
6
14
 
7
15
  ## 2.0.0
8
16
 
@@ -12,8 +20,8 @@ Fixing config.toml location
12
20
  - Husky is automatically uninstalled during `npm install` if present
13
21
  - Existing husky hooks are automatically removed
14
22
  - prek is installed via Homebrew
15
- - installs and configures [devsecops-hooks](https://github.com/ministryofjustice/devsecops-hooks) by default
16
-
23
+ - installs and configures [devsecops-hooks](https://github.com/ministryofjustice/devsecops-hooks) by default
24
+
17
25
  ### New Features
18
26
 
19
27
  - Added `.pre-commit-config.yaml` configuration file with default hooks
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Crown Copyright (Ministry of Justice)
3
+ Copyright (c) 2026 Crown Copyright (Ministry of Justice)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -19,21 +19,21 @@ repos:
19
19
  name: linting code
20
20
  language: system
21
21
  entry: ./node_modules/.bin/lint-staged
22
- types_or: [ts,javascript,css]
22
+ files: (\.(ts|js|css)$|^package-lock\.json$)
23
23
  require_serial: true
24
24
  pass_filenames: false
25
25
  - id: typecheck
26
26
  name: verify types
27
27
  language: system
28
28
  entry: npm run typecheck
29
- types: [ts]
29
+ files: (\.(ts)$|^package-lock\.json$)
30
30
  require_serial: true
31
31
  pass_filenames: false
32
32
  - id: test
33
33
  name: running tests
34
34
  language: system
35
35
  entry: npm run test
36
- types: [ts]
36
+ files: (\.(ts)$|^package-lock\.json$)
37
37
  require_serial: true
38
38
  pass_filenames: false
39
39
  - repo: builtin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-precommit-hooks",
3
- "version": "2.0.1",
3
+ "version": "3.0.0",
4
4
  "description": "Precommit hooks for HMPPS typescript projects",
5
5
  "keywords": [
6
6
  "precommit"
@@ -31,6 +31,6 @@
31
31
  "default-hooks.yaml"
32
32
  ],
33
33
  "engines": {
34
- "node": "20 || 22 || 24"
34
+ "node": "22 || 24 || 26"
35
35
  }
36
36
  }