enhance(docs): improve use of promises in buildConfig.js