examples/cordova1/plugins/branch-cordova-sdk/src/scripts/npm/updateNpmVersion.js
function updateNpmVersion(pluginConfig, config, callback) {
    const files = readFilePaths(FILES);
    const version = config.nextRelease.version;
    let git = "";

    for (let i = 0; i < files.length; i++) {
      // update
      const file = files[i];
      const content = readContent(file);
      const updated = updateVersion(file, content, version);

      // save
      git += `git add ${file} && `;
      saveContent(file, updated);
    }
    // publish
    isChange && commitChanges(git, version);
  }
function updateNpmVersion(pluginConfig, config, callback) {
    const files = readFilePaths(FILES);
    const version = config.nextRelease.version;
    let git = "";

    for (let i = 0; i < files.length; i++) {
      // update
      const file = files[i];
      const content = readContent(file);
      const updated = updateVersion(file, content, version);

      // save
      git += `git add ${file} && `;
      saveContent(file, updated);
    }
    // publish
    isChange && commitChanges(git, version);
  }
function updateNpmVersion ( pluginConfig , config , callback ) { const files = readFilePaths ( FILES ) ; const version = config . nextRelease . version ; let git = "" ; for ( let i = 0 ; i < files . length ; i ++ ) { // update const file = files [ i ] ; const content = readContent ( file ) ; const updated = updateVersion ( file , content , version ) ; // save git += ` ${ file } ` ; saveContent ( file , updated ) ; } // publish isChange && commitChanges ( git , version ) ; }
updates the npm version in semantic-release pre
updates the npm version in semantic - release pre