Created
July 24, 2022 04:42
-
-
Save kynadev/b72fbf88a8030294eb0e673dbc1e5382 to your computer and use it in GitHub Desktop.
Fix Gun JS when using Typescript with this script. You will need to run it whenever you update
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 characters
| #!/bin/sh env | |
| # Include this in your package.json's scripts section | |
| # I give it the name "fix-gun" and run it whenever you change your packages | |
| # Obviously this is a bandaid on a gaping wound. Hopefully it is fixed more properly. Current Date: 12022-07-23 | |
| # Remove Types | |
| rmdir -v ./node_modules/gun/type/ | |
| rm -v ./node_modules/gun/*.d.ts | |
| # Message of hope | |
| BLU='\033[0;34m' | |
| CLR='\033[0m' | |
| echo -e "${BLU}GUN TYPES FIX DONE ${CLR}\n Dear Amark almightly,\nplease figure out better TS support, we all believe in you.\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment