gulpfile.js
function updateExternalDependencies(oldName, newName) {
      sourcePackages.forEach(function(p) {
        var index = p.dependencies.indexOf(oldName);
        if (index !== -1) {
          if (p.name === newName || p.dependencies.indexOf(newName) !== -1) {
            // If the package has the same name as the one we are trying to
            // update to, then we are trying to update the package to point
            // to itself as a dependency, which isn't possible so just remove
            // the old dependency. Alternatively, if the package already has
            // the new name, then we can simply remove the old one and move on.
            p.dependencies.splice(index, 1);
          } else {
            // If the package is NOT trying to update to itself and does NOT
            // have the new dependency already, then add it in place of the
            // old one.
            p.dependencies.splice(index, 1, newName);
          }
        }
      });
    }
function updateExternalDependencies(oldName, newName) {
      sourcePackages.forEach(function(p) {
        var index = p.dependencies.indexOf(oldName);
        if (index !== -1) {
          if (p.name === newName || p.dependencies.indexOf(newName) !== -1) {
            // If the package has the same name as the one we are trying to
            // update to, then we are trying to update the package to point
            // to itself as a dependency, which isn't possible so just remove
            // the old dependency. Alternatively, if the package already has
            // the new name, then we can simply remove the old one and move on.
            p.dependencies.splice(index, 1);
          } else {
            // If the package is NOT trying to update to itself and does NOT
            // have the new dependency already, then add it in place of the
            // old one.
            p.dependencies.splice(index, 1, newName);
          }
        }
      });
    }
function updateExternalDependencies ( oldName , newName ) { sourcePackages . forEach ( function ( p ) { var index = p . dependencies . indexOf ( oldName ) ; if ( index !== - 1 ) { if ( p . name === newName || p . dependencies . indexOf ( newName ) !== - 1 ) { // If the package has the same name as the one we are trying to // update to, then we are trying to update the package to point // to itself as a dependency, which isn't possible so just remove // the old dependency. Alternatively, if the package already has // the new name, then we can simply remove the old one and move on. p . dependencies . splice ( index , 1 ) ; } else { // If the package is NOT trying to update to itself and does NOT // have the new dependency already, then add it in place of the // old one. p . dependencies . splice ( index , 1 , newName ) ; } } } ) ; }
Update all packages pointing to the old package.
Update all packages pointing to the old package .