Commit 312280d 1 parent 015aa4b commit 312280d Copy full SHA for 312280d
File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ cd $REANIMATED_PATH
11
11
if [ $? -eq 1 ]; then
12
12
yarn type:check:all
13
13
yarn find-unused-code:js
14
+ else
15
+ echo " [PRECOMMIT]: Reanimated TypeScript source files weren't changed. Skipping TypeScript checks." >&2
14
16
fi
15
17
16
18
# This automatically builds Reanimated Babel plugin JavaScript files if their
@@ -24,7 +26,11 @@ if [ $? -eq 1 ]; then
24
26
grep -E ' plugin/build/plugin.js' > /dev/null
25
27
if [ $? -eq 1 ]; then
26
28
git add plugin/build/plugin.js
27
- echo " [Reanimated] Plugin files were automatically built and changes were spotted.\
29
+ echo " [PRECOMMIT]: Babel plugin files were automatically built and changes were spotted.\
28
30
\n Those changes were added to the commit." >&2
31
+ else
32
+ echo " [PRECOMMIT]: All Babel plugin files were already commited." >&2
29
33
fi
34
+ else
35
+ echo " [PRECOMMIT]: Babel plugin files weren't changed. Skipping plugin checks." >&2
30
36
fi
You can’t perform that action at this time.
0 commit comments