My post publish hook file works fine but if I try to import other information in to it preceding module.exports I get:
Unable to load postPublishHook: './hooks/postPublish'. The module does not export a function.
import config from './config.js';
module.exports = (options) => {
}
But the module does export a function? Somehow the import statement is cancelling everything out.