ng-cli-packagr-tasks icon indicating copy to clipboard operation
ng-cli-packagr-tasks copied to clipboard

Function returning hook not working as expected

Open GerkinDev opened this issue 3 years ago • 1 comments

Hi,

Following your own example here, I did not managed to execute custom hooks.

I've solved my issue by manually registering my hook in the registry like so:


module.exports = ( ctx: NgPackagerHooksContext, registry: HookRegistry ) => {
	registry.register( 'initTsConfig', {
		after: async taskContext => {
		    // ...
		},
	} );
};

Is the readme outdated ?

GerkinDev avatar Apr 24 '21 12:04 GerkinDev

Same here! (Windows 10, node v14.18.1, npm 6.14.15, ng-cli-packagr-tasks 11.0.2).

Thank you @GerkinDev for the Workaround!

pearnaly avatar Jan 08 '22 12:01 pearnaly