docs: fix require statement for hooks examples
docs: fix require statement for hooks examples

Fixes #1067.

maxogden/electron-packager,electron-userland/electron-packager,electron-userland/electron-packager