Added ability for post-compile hook (within the hook function in tsHook).