Here's the Gist of it: https://gist.github.com/BeSpunky/ff5dcb62887cbee686dd6c3ba31cabb5
TLDR
As I go playing with ScriptKit, I started using the lib
folder to centralize reusable functionality.
This made my scripts difficult to share, as they have nested dependencies which I would've had to add manually to my Gists.
Well no more... 💪
This script let's you choose one of your scripts, reads it and recursively extracts lib
dependencies, then publishes a new gist with the script and the dependencies.
Enjoy 😊