MCPcopy Index your code
hub / github.com/react/react / updateManifestVersions

Function updateManifestVersions

scripts/devtools/prepare-release.js:246–262  ·  view source on GitHub ↗
(previousVersion, nextVersion)

Source from the content-addressed store, hash-verified

244}
245
246function 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
264function updatePackageVersions(previousVersion, nextVersion) {
265 PACKAGE_PATHS.forEach(partialPath => {

Callers 1

mainFunction · 0.85

Calls 1

forEachMethod · 0.65

Tested by

no test coverage detected