Skip to content

Instantly share code, notes, and snippets.

@kynadev
Created July 24, 2022 04:42
Show Gist options
  • Select an option

  • Save kynadev/b72fbf88a8030294eb0e673dbc1e5382 to your computer and use it in GitHub Desktop.

Select an option

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
#!/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