Skip to content

Commit b2c0d8d

Browse files
Merge pull request #4642 from OneCommunityGlobal/Vin_Dashboard_Component
Vinay K Material Summary Dashboard Component
2 parents 53df810 + 3d9e9bf commit b2c0d8d

3 files changed

Lines changed: 351 additions & 284 deletions

File tree

.husky/pre-push

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
export NVM_DIR="$HOME/.nvm"
44
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
55
# Use Node 20 if available (or install if needed)
6-
if [ -f .nvmrc ]; then
6+
if command -v nvm >/dev/null 2>&1 && [ -f .nvmrc ]; then
77
nvm use 20 2>/dev/null || nvm install 20 && nvm use 20
88
fi
99

@@ -30,17 +30,17 @@ style_status=0
3030

3131
if [ -n "$js_files" ]; then
3232
echo "🧪 Running related tests before push..."
33-
yarn vitest related --run $js_files
33+
npx vitest related --run $js_files
3434
test_status=$?
3535

3636
echo "🧹 Running ESLint on changed files before push..."
37-
yarn eslint $js_files
37+
npx eslint $js_files
3838
lint_status=$?
3939
fi
4040

4141
if [ -n "$style_files" ]; then
4242
echo "🎨 Running Stylelint on changed files before push..."
43-
yarn stylelint $style_files
43+
npx stylelint $style_files
4444
style_status=$?
4545
fi
4646

0 commit comments

Comments
 (0)