Created
February 25, 2022 21:54
-
-
Save packrat386/58d7e59813673019418991fe15d71b4c to your computer and use it in GitHub Desktop.
autoremove ts-expect-error comments
This file contains 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 characters
grep TS2578 <<<$(yarn tsc --pretty false 2>/dev/null || true) | | |
cut -d ':' -f 1 | | |
tr "()," " " | | |
awk '{ files[$1] = files [$1] $2 "d;" } END { for (f in files) { print "sed -i \"\" \"" files[f] "\" " f } }' | | |
bash -ex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment