Last active
November 25, 2023 04:09
-
-
Save victorhenrion/5217a668544e88790e545cbe6914d34e to your computer and use it in GitHub Desktop.
Revisions
-
victorhenrion renamed this gist
Jul 7, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
victorhenrion renamed this gist
Jul 7, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
victorhenrion revised this gist
Jul 7, 2023 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This 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 @@ curl https://gist.githubusercontent.com/vpctorr/5217a668544e88790e545cbe6914d34e/raw/75420dcf22e73b80f027d3dd81dd42315284b044/turf_types_patch.sh | bash -
victorhenrion revised this gist
Jul 7, 2023 . No changes.There are no files selected for viewing
-
victorhenrion renamed this gist
Jul 7, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
victorhenrion created this gist
Jul 7, 2023 .There are no files selected for viewing
This 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,14 @@ #!/bin/bash directory="node_modules/@turf" for subdir in $directory/*; do package="$subdir/package.json" if [[ -f "$package" ]]; then types_value=$(jq -r .types $package) if [[ "$types_value" != "null" ]]; then types_value="./$types_value" new_content=$(jq --arg types "$types_value" '.exports["."].types = $types' $package) echo "$new_content" > $package fi fi done