function getEventName(hookName) {
		// Convert a hook name to an event name.
		// e.g. `buildModule` -> `build-module`
		return hookName.replace(/[A-Z]/g, c => `-${c.toLowerCase()}`);
	}
@param {string} hookName a hook name
@returns {string} an event name