@ministryofjustice/hmpps-precommit-hooks 2.0.1 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change log
2
2
 
3
+ ## 2.0.2
4
+
5
+ Change default precommit config to run linting, typechecks and tests if the package-lock.json file changes
6
+
3
7
  ## 2.0.1
4
8
 
5
9
  Fixing config.toml location
@@ -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": "2.0.2",
4
4
  "description": "Precommit hooks for HMPPS typescript projects",
5
5
  "keywords": [
6
6
  "precommit"