diff --git a/eng/tools/versioning/set-dev.js b/eng/tools/versioning/set-dev.js index 925872a91bab..fa9f9602cff3 100644 --- a/eng/tools/versioning/set-dev.js +++ b/eng/tools/versioning/set-dev.js @@ -81,7 +81,8 @@ const updateDependencySection = (rushPackages, dependencySection, buildId) => { if ( parsedDepMinVersion.major == parsedPackageVersion.major && parsedDepMinVersion.minor == parsedPackageVersion.minor && - parsedDepMinVersion.patch == parsedPackageVersion.patch + parsedDepMinVersion.patch == parsedPackageVersion.patch && + !rushPackages[depName].json["private"] ) { rushPackages = updatePackageVersion(rushPackages, depName, buildId); } @@ -100,13 +101,6 @@ const updateInternalDependencyVersions = (rushPackages, package, buildId) => { buildId ); - console.log("checking devDependencies .."); - rushPackages = updateDependencySection( - rushPackages, - rushPackages[package].json.devDependencies, - buildId - ); - console.log("checking peerDependencies .."); rushPackages = updateDependencySection( rushPackages, @@ -141,12 +135,13 @@ const makeDependencySectionConsistentForPackage = (rushPackages, dependencySecti parsedDepMinVersion.major == parsedPackageVersion.major && parsedDepMinVersion.minor == parsedPackageVersion.minor && parsedDepMinVersion.patch == parsedPackageVersion.patch && - rushPackages[depName].newVer !== undefined + rushPackages[depName].newVer !== undefined && + !rushPackages[depName].json["private"] ) { // Setting version to ^[major.minor.patch]-alpha so that this automatically matches // with the latest dev version published on npm - dependencySection[depName] = `^${parsedPackageVersion.major}.${parsedPackageVersion.minor}.${parsedPackageVersion.patch}-alpha`; + dependencySection[depName] = `dev`; } } return rushPackages;