How usefull is that to first create settings.json in stage before copying it to profile, if the only code that modify it is settings.js?
Also it doesn't sound related to webapps-manifest refactoring.