use postinstall hook to generate config.json