I'm Fairly new to packaging nodejs apps with rpm.
The requirement is that we always merge any changes we may have in the config file without wiping out any setting that may have been changed by the sys admin.
As you have guessed, config files for nodejs apps are in json.
I've investigated %config and %config(noreplace) in spec file, and noreplace is a better fit with the exception that if we have some new things added in the new config file then add those changes to the existing file without wiping out any changes that the sys admin may have done.
I've found few tools/ shell scripts that does that, but I'm not sure if there are more straight forward ways or best practices to follow to accomplish that?