Created
          November 21, 2024 03:53 
        
      - 
      
- 
        Save 9oelM/32cd5c4cf7a0c6c05acc6795d2d61d49 to your computer and use it in GitHub Desktop. 
Revisions
- 
        9oelM renamed this gist Nov 21, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewingFile renamed without changes.
- 
        9oelM created this gist Nov 21, 2024 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ #!/bin/bash set -euv # Get outdated dependencies result=$(npm outdated | tail -n +2 | awk '{print $1}') # Exit early if there are no outdated dependencies if [ -z "$result" ]; then echo "No outdated dependencies found." exit 0 fi # Ignore list for specific packages ignore_list=( "^@eslint/js$" "^eslint$" "^ethers$" ) # Filter out ignored dependencies for i in "${ignore_list[@]}"; do result=$(echo "$result" | grep -v -E "$i" || true) done # Check if result is still non-empty if [ -n "$result" ]; then echo "Outdated dependencies found:" echo "$result" exit 1 fi echo "No outdated dependencies found." set +euv