This script watches the
lib folder, and when changes to
ts files are made, it does 2 things:
libFilePath -> dependantScriptPaths
lib file to trigger rebuild.
Currently, ScriptKit only rebuilds scripts if it detects changes to the
If you extract your reusable parts and put them into the
lib folder, ScriptKit doesn't pick up on changes to those files.
The manual way to overcome this is to save your script file again and trigger rebuild.
No more... :)
Actually, this is a 3 scripts solution:
update-script-dependency-graphs: Partially rebuilds the graph if a triggering file has been provided, otherwise completely rebuilds it.
watch-libs: Watches lib files, partially rebuild the graph using
update-script-dependency-graph, then touch the scripts.
watch-scripts: Watch script files, partially rebuild the graph