Home > @rushstack/heft > IHeftLifecycleHooks > toolFinish
IHeftLifecycleHooks.toolFinish property
The toolFinish hook is called at the end of Heft execution. It is called after all phases have completed execution. Plugins that tap this hook are resposible for handling the scenario in which toolStart threw an error, since this hook is used to clean up any resources allocated earlier in the lifecycle and therefore runs even in error conditions. To use it, call toolFinish.tapPromise(<pluginName>, <callback>).
Signature:
toolFinish: AsyncParallelHook<IHeftLifecycleToolFinishHookOptions>;