only replace the temp package.json when packageJson is used to override the standard package.json files instead of all matched package.json files (which was including individual module package.json files and breaking some stuff)