Skip to content

Commit 91bb663

Browse files
risantosdiogotorres97
authored andcommitted
Replace pre-commit with @fastify/pre-commit
1 parent 72d88bf commit 91bb663

2 files changed

Lines changed: 30 additions & 117 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@
4242
},
4343
"dependencies": {},
4444
"devDependencies": {
45+
"@fastify/pre-commit": "^2.2.1",
4546
"@uphold/github-changelog-generator": "^3.2.0",
4647
"eslint": "~9.39.2",
4748
"eslint-config-uphold": "^6.7.2",
4849
"jest": "^30.2.0",
4950
"koa": "^3.1.1",
50-
"pre-commit": "^1.2.2",
5151
"prettier": "^3.7.4",
5252
"release-it": "^19.2.2",
5353
"supertest": "^7.1.4"

yarn.lock

Lines changed: 29 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,14 @@
377377
"@eslint/core" "^0.17.0"
378378
levn "^0.4.1"
379379

380+
"@fastify/pre-commit@^2.2.1":
381+
version "2.2.1"
382+
resolved "https://registry.yarnpkg.com/@fastify/pre-commit/-/pre-commit-2.2.1.tgz#20ce6f10cfc9a23932c1c68033870b30120a3f0e"
383+
integrity sha512-EluAZU4mFnCJfb6RyWFpWvEIAwdchipoiWMSRkQEaQ6ubbf6UVzYuXKSSZJR36SgtgZmKV5oRMxxwMNta5hskg==
384+
dependencies:
385+
cross-spawn "^7.0.3"
386+
which "^5.0.0"
387+
380388
"@humanfs/core@^0.19.1":
381389
version "0.19.1"
382390
resolved "https://registry.yarnpkg.com/@humanfs/core/-/core-0.19.1.tgz#17c55ca7d426733fe3c561906b8173c336b40a77"
@@ -1661,15 +1669,6 @@ concat-map@0.0.1:
16611669
version "0.0.1"
16621670
resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
16631671

1664-
concat-stream@^1.4.7:
1665-
version "1.6.2"
1666-
resolved "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz"
1667-
dependencies:
1668-
buffer-from "^1.0.0"
1669-
inherits "^2.0.3"
1670-
readable-stream "^2.2.2"
1671-
typedarray "^0.0.6"
1672-
16731672
confbox@^0.2.2:
16741673
version "0.2.2"
16751674
resolved "https://registry.yarnpkg.com/confbox/-/confbox-0.2.2.tgz#8652f53961c74d9e081784beed78555974a9c110"
@@ -1716,19 +1715,15 @@ cookies@~0.9.1:
17161715
depd "~2.0.0"
17171716
keygrip "~1.1.0"
17181717

1719-
core-util-is@~1.0.0:
1720-
version "1.0.2"
1721-
resolved "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz"
1722-
1723-
cross-spawn@^5.0.1:
1724-
version "5.1.0"
1725-
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz"
1718+
cross-spawn@^7.0.3:
1719+
version "7.0.3"
1720+
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
17261721
dependencies:
1727-
lru-cache "^4.0.1"
1728-
shebang-command "^1.2.0"
1729-
which "^1.2.9"
1722+
path-key "^3.1.0"
1723+
shebang-command "^2.0.0"
1724+
which "^2.0.1"
17301725

1731-
cross-spawn@^7.0.3, cross-spawn@^7.0.6:
1726+
cross-spawn@^7.0.6:
17321727
version "7.0.6"
17331728
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"
17341729
integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==
@@ -2669,7 +2664,7 @@ inflight@^1.0.4:
26692664
once "^1.3.0"
26702665
wrappy "1"
26712666

2672-
inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@~2.0.3, inherits@~2.0.4:
2667+
inherits@2, inherits@2.0.4, inherits@~2.0.4:
26732668
version "2.0.4"
26742669
resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz"
26752670

@@ -2766,14 +2761,15 @@ is-wsl@^3.1.0:
27662761
dependencies:
27672762
is-inside-container "^1.0.0"
27682763

2769-
isarray@~1.0.0:
2770-
version "1.0.0"
2771-
resolved "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"
2772-
27732764
isexe@^2.0.0:
27742765
version "2.0.0"
27752766
resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz"
27762767

2768+
isexe@^3.1.1:
2769+
version "3.1.1"
2770+
resolved "https://registry.yarnpkg.com/isexe/-/isexe-3.1.1.tgz#4a407e2bd78ddfb14bea0c27c6f7072dde775f0d"
2771+
integrity sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==
2772+
27772773
issue-parser@7.0.1:
27782774
version "7.0.1"
27792775
resolved "https://registry.yarnpkg.com/issue-parser/-/issue-parser-7.0.1.tgz#8a053e5a4952c75bb216204e454b4fc7d4cc9637"
@@ -3358,26 +3354,13 @@ lru-cache@^10.2.0:
33583354
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119"
33593355
integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==
33603356

3361-
lru-cache@^4.0.1:
3362-
version "4.1.5"
3363-
resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz"
3364-
dependencies:
3365-
pseudomap "^1.0.2"
3366-
yallist "^2.1.2"
3367-
33683357
lru-cache@^5.1.1:
33693358
version "5.1.1"
33703359
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
33713360
integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==
33723361
dependencies:
33733362
yallist "^3.0.2"
33743363

3375-
lru-cache@^6.0.0:
3376-
version "6.0.0"
3377-
resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz"
3378-
dependencies:
3379-
yallist "^4.0.0"
3380-
33813364
lru-cache@^7.14.1:
33823365
version "7.18.3"
33833366
resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz"
@@ -3664,10 +3647,6 @@ os-name@6.1.0:
36643647
macos-release "^3.3.0"
36653648
windows-release "^6.1.0"
36663649

3667-
os-shim@^0.1.2:
3668-
version "0.1.3"
3669-
resolved "https://registry.npmjs.org/os-shim/-/os-shim-0.1.3.tgz"
3670-
36713650
p-limit@^2.2.0:
36723651
version "2.3.0"
36733652
resolved "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz"
@@ -3839,14 +3818,6 @@ pkg-types@^2.3.0:
38393818
exsolve "^1.0.7"
38403819
pathe "^2.0.3"
38413820

3842-
pre-commit@^1.2.2:
3843-
version "1.2.2"
3844-
resolved "https://registry.npmjs.org/pre-commit/-/pre-commit-1.2.2.tgz"
3845-
dependencies:
3846-
cross-spawn "^5.0.1"
3847-
spawn-sync "^1.0.15"
3848-
which "1.2.x"
3849-
38503821
prelude-ls@^1.2.1:
38513822
version "1.2.1"
38523823
resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz"
@@ -3871,10 +3842,6 @@ pretty-format@30.2.0:
38713842
ansi-styles "^5.2.0"
38723843
react-is "^18.3.1"
38733844

3874-
process-nextick-args@~2.0.0:
3875-
version "2.0.1"
3876-
resolved "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz"
3877-
38783845
protocols@^2.0.0, protocols@^2.0.1:
38793846
version "2.0.1"
38803847
resolved "https://registry.npmjs.org/protocols/-/protocols-2.0.1.tgz"
@@ -3897,10 +3864,6 @@ proxy-from-env@^1.1.0:
38973864
version "1.1.0"
38983865
resolved "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz"
38993866

3900-
pseudomap@^1.0.2:
3901-
version "1.0.2"
3902-
resolved "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz"
3903-
39043867
punycode@^2.1.0:
39053868
version "2.1.1"
39063869
resolved "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz"
@@ -3930,18 +3893,6 @@ react-is@^18.3.1:
39303893
resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e"
39313894
integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==
39323895

3933-
readable-stream@^2.2.2:
3934-
version "2.3.6"
3935-
resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz"
3936-
dependencies:
3937-
core-util-is "~1.0.0"
3938-
inherits "~2.0.3"
3939-
isarray "~1.0.0"
3940-
process-nextick-args "~2.0.0"
3941-
safe-buffer "~5.1.1"
3942-
string_decoder "~1.1.1"
3943-
util-deprecate "~1.0.1"
3944-
39453896
readdirp@^5.0.0:
39463897
version "5.0.0"
39473898
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-5.0.0.tgz#fbf1f71a727891d685bb1786f9ba74084f6e2f91"
@@ -4042,7 +3993,7 @@ safe-buffer@5.2.1:
40423993
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
40433994
integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
40443995

4045-
safe-buffer@~5.1.0, safe-buffer@~5.1.1:
3996+
safe-buffer@~5.1.1:
40463997
version "5.1.2"
40473998
resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz"
40483999

@@ -4065,22 +4016,12 @@ setprototypeof@1.2.0, setprototypeof@~1.2.0:
40654016
resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424"
40664017
integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==
40674018

4068-
shebang-command@^1.2.0:
4069-
version "1.2.0"
4070-
resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz"
4071-
dependencies:
4072-
shebang-regex "^1.0.0"
4073-
40744019
shebang-command@^2.0.0:
40754020
version "2.0.0"
40764021
resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz"
40774022
dependencies:
40784023
shebang-regex "^3.0.0"
40794024

4080-
shebang-regex@^1.0.0:
4081-
version "1.0.0"
4082-
resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz"
4083-
40844025
shebang-regex@^3.0.0:
40854026
version "3.0.0"
40864027
resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz"
@@ -4169,13 +4110,6 @@ source-map@^0.6.0, source-map@~0.6.1:
41694110
version "0.6.1"
41704111
resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz"
41714112

4172-
spawn-sync@^1.0.15:
4173-
version "1.0.15"
4174-
resolved "https://registry.npmjs.org/spawn-sync/-/spawn-sync-1.0.15.tgz"
4175-
dependencies:
4176-
concat-stream "^1.4.7"
4177-
os-shim "^0.1.2"
4178-
41794113
spdx-exceptions@^2.1.0:
41804114
version "2.5.0"
41814115
resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz#5d607d27fc806f66d7b64a766650fa890f04ed66"
@@ -4260,12 +4194,6 @@ string-width@^8.1.0:
42604194
get-east-asian-width "^1.3.0"
42614195
strip-ansi "^7.1.0"
42624196

4263-
string_decoder@~1.1.1:
4264-
version "1.1.1"
4265-
resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz"
4266-
dependencies:
4267-
safe-buffer "~5.1.0"
4268-
42694197
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
42704198
version "6.0.1"
42714199
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
@@ -4441,10 +4369,6 @@ type-is@^2.0.1:
44414369
media-typer "^1.1.0"
44424370
mime-types "^3.0.0"
44434371

4444-
typedarray@^0.0.6:
4445-
version "0.0.6"
4446-
resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz"
4447-
44484372
undici@6.22.0:
44494373
version "6.22.0"
44504374
resolved "https://registry.yarnpkg.com/undici/-/undici-6.22.0.tgz#281adbc157af41da8e75393c9d75a1b788811bc3"
@@ -4508,10 +4432,6 @@ url-join@5.0.0:
45084432
version "5.0.0"
45094433
resolved "https://registry.npmjs.org/url-join/-/url-join-5.0.0.tgz"
45104434

4511-
util-deprecate@~1.0.1:
4512-
version "1.0.2"
4513-
resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
4514-
45154435
v8-to-istanbul@^9.0.1:
45164436
version "9.0.1"
45174437
resolved "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz"
@@ -4541,18 +4461,19 @@ whatwg-url@^5.0.0:
45414461
tr46 "~0.0.3"
45424462
webidl-conversions "^3.0.0"
45434463

4544-
which@1.2.x, which@^1.2.9:
4545-
version "1.2.14"
4546-
resolved "https://registry.npmjs.org/which/-/which-1.2.14.tgz"
4547-
dependencies:
4548-
isexe "^2.0.0"
4549-
45504464
which@^2.0.1:
45514465
version "2.0.2"
45524466
resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz"
45534467
dependencies:
45544468
isexe "^2.0.0"
45554469

4470+
which@^5.0.0:
4471+
version "5.0.0"
4472+
resolved "https://registry.yarnpkg.com/which/-/which-5.0.0.tgz#d93f2d93f79834d4363c7d0c23e00d07c466c8d6"
4473+
integrity sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==
4474+
dependencies:
4475+
isexe "^3.1.1"
4476+
45564477
wildcard-match@5.1.4:
45574478
version "5.1.4"
45584479
resolved "https://registry.yarnpkg.com/wildcard-match/-/wildcard-match-5.1.4.tgz#26428c802f20743ebae255e4e9526ae81ddf1816"
@@ -4626,19 +4547,11 @@ y18n@^5.0.5:
46264547
version "5.0.8"
46274548
resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz"
46284549

4629-
yallist@^2.1.2:
4630-
version "2.1.2"
4631-
resolved "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz"
4632-
46334550
yallist@^3.0.2:
46344551
version "3.1.1"
46354552
resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
46364553
integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
46374554

4638-
yallist@^4.0.0:
4639-
version "4.0.0"
4640-
resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz"
4641-
46424555
yargs-parser@21.1.1, yargs-parser@^21.1.1:
46434556
version "21.1.1"
46444557
resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz"

0 commit comments

Comments
 (0)