| 244 | } |
| 245 | |
| 246 | function updateManifestVersions(previousVersion, nextVersion) { |
| 247 | MANIFEST_PATHS.forEach(partialPath => { |
| 248 | const path = join(ROOT_PATH, partialPath); |
| 249 | const json = readJsonSync(path); |
| 250 | json.version = nextVersion; |
| 251 | |
| 252 | if (json.hasOwnProperty('version_name')) { |
| 253 | json.version_name = nextVersion; |
| 254 | } |
| 255 | |
| 256 | console.log(chalk.dim(' Updating manifest JSON: ' + partialPath)); |
| 257 | |
| 258 | if (!DRY_RUN) { |
| 259 | writeJsonSync(path, json, {spaces: 2}); |
| 260 | } |
| 261 | }); |
| 262 | } |
| 263 | |
| 264 | function updatePackageVersions(previousVersion, nextVersion) { |
| 265 | PACKAGE_PATHS.forEach(partialPath => { |