script/bump-version.js
async function updatePackageJSON (version) {
  ['package.json'].forEach(async fileName => {
    const filePath = path.resolve(__dirname, '..', fileName)
    const file = require(filePath)
    file.version = version
    await writeFile(filePath, JSON.stringify(file, null, 2))
  })
}
async function updatePackageJSON (version) {
  ['package.json'].forEach(async fileName => {
    const filePath = path.resolve(__dirname, '..', fileName)
    const file = require(filePath)
    file.version = version
    await writeFile(filePath, JSON.stringify(file, null, 2))
  })
}
async function updatePackageJSON ( version ) { [ 'package.json' ] . forEach ( async fileName => { const filePath = path . resolve ( __dirname , '..' , fileName ) const file = require ( filePath ) file . version = version await writeFile ( filePath , JSON . stringify ( file , null , 2 ) ) } ) }
update package metadata files with new version
update package metadata files with new version