helper for recompiling the typespec
notes on script design