Skip to content

Commit 1b0f966

Browse files
Axel-KIRKAxel KIRK
and
Axel KIRK
authored
fix(bin): add node_modules check (#1729)
* toto(tata): toot * fix(bin): add node modules check * test(ttt): test --------- Co-authored-by: Axel KIRK <[email protected]>
1 parent 0da2ce7 commit 1b0f966

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

.husky/pre-commit

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
3-
43
bash bin/check-pre-commit

bin/check-pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
[[ $(bin/count-invalid-slugs) == "0" ]] && \
4+
[ ! -d node_modules/ ] && echo "⚠️ You need to install node_modules first" && exit 1; \
45
yarn lint-staged || \
56
(echo "💔 Slug error(s):" && bin/list-invalid-slugs \
67
echo "⚠️ You must fix slugs in 'menu/navigation.json' before commit"; exit 1)

0 commit comments

Comments
 (0)