File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 20
20
echo " Running pre-commit hook..."
21
21
22
22
# Check for changes in the Icon folder
23
- CHANGED_FILES=$( git diff --cached --name-only --diff-filter=ACMR | grep ' IconV2/' )
23
+ CHANGED_FILES=$( git diff --cached --name-only --diff-filter=ACMR | grep ' IconV2/' || true )
24
24
25
25
if [ -n " $CHANGED_FILES " ]; then
26
26
echo " Changes detected in the Icon folder. Running icon generation script..."
@@ -30,6 +30,7 @@ if [ -n "$CHANGED_FILES" ]; then
30
30
exit 1
31
31
fi
32
32
33
+ echo " Icon.tsx updated. Adding to commit."
33
34
git add src/Shared/Components/Icon/Icon.tsx
34
35
else
35
36
echo " No changes in the IconsV2 folder. Skipping icon generation."
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ const generateIconComponent = () => {
58
58
import { IconBase } from './IconBase';
59
59
import { IconBaseProps } from './types';
60
60
61
- const iconMap = {
61
+ export const iconMap = {
62
62
${ iconMapEntries . join ( '\n' ) }
63
63
};
64
64
You can’t perform that action at this time.
0 commit comments