beachball
Advanced tools
Comparing version 2.42.0 to 2.43.0
@@ -25,4 +25,9 @@ "use strict"; | ||
else { | ||
// Ensure we can bump the correct versions | ||
let bumpAsPrerelease = false; | ||
if (options.prereleasePrefix && !["premajor", "preminor", "prepatch"].includes(changeType)) { | ||
bumpAsPrerelease = true; | ||
} | ||
// Version should be updated | ||
info.version = semver_1.default.inc(info.version, options.prereleasePrefix ? 'prerelease' : changeType, options.prereleasePrefix || undefined, options.identifierBase); | ||
info.version = semver_1.default.inc(info.version, bumpAsPrerelease ? 'prerelease' : changeType, options.prereleasePrefix || undefined, options.identifierBase); | ||
modifiedPackages.add(pkgName); | ||
@@ -29,0 +34,0 @@ } |
@@ -27,3 +27,3 @@ "use strict"; | ||
} | ||
for (const depKind of ['dependencies', 'devDependencies', 'peerDependencies']) { | ||
for (const depKind of ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies']) { | ||
// updatedDeps contains all of the dependencies in the bump info since the beginning of a build job | ||
@@ -30,0 +30,0 @@ const updatedDepsVersions = info[depKind]; |
@@ -16,3 +16,3 @@ "use strict"; | ||
} | ||
for (const deps of [info.dependencies, info.devDependencies, info.peerDependencies]) { | ||
for (const deps of [info.dependencies, info.devDependencies, info.peerDependencies, info.optionalDependencies]) { | ||
for (const dep of Object.keys(deps || {})) { | ||
@@ -19,0 +19,0 @@ if (packageInfos[dep]) { |
@@ -11,3 +11,3 @@ "use strict"; | ||
} | ||
for (const deps of [info.dependencies, info.devDependencies, info.peerDependencies]) { | ||
for (const deps of [info.dependencies, info.devDependencies, info.peerDependencies, info.optionalDependencies]) { | ||
if (!deps) { | ||
@@ -14,0 +14,0 @@ continue; |
@@ -18,2 +18,3 @@ "use strict"; | ||
peerDependencies: packageJson.peerDependencies, | ||
optionalDependencies: packageJson.optionalDependencies, | ||
private: packageJson.private !== undefined ? packageJson.private : false, | ||
@@ -20,0 +21,0 @@ combinedOptions: (0, getPackageOptions_1.getCombinedPackageOptions)(packageOptions), |
@@ -69,4 +69,4 @@ "use strict"; | ||
function performWorkspaceVersionOverrides(packageJson, packageInfos) { | ||
const { dependencies, devDependencies, peerDependencies } = packageJson; | ||
for (const deps of [dependencies, devDependencies, peerDependencies]) { | ||
const { dependencies, devDependencies, peerDependencies, optionalDependencies } = packageJson; | ||
for (const deps of [dependencies, devDependencies, peerDependencies, optionalDependencies]) { | ||
if (!deps) | ||
@@ -73,0 +73,0 @@ continue; |
@@ -22,3 +22,3 @@ "use strict"; | ||
} | ||
const allDeps = new Set([info.dependencies, info.devDependencies, info.peerDependencies] | ||
const allDeps = new Set([info.dependencies, info.devDependencies, info.peerDependencies, info.optionalDependencies] | ||
.flatMap(deps => Object.keys(deps || {})) | ||
@@ -25,0 +25,0 @@ .filter(pkg => packageSet.has(pkg))); |
@@ -26,2 +26,3 @@ import { PackageOptions, BeachballOptions } from './BeachballOptions'; | ||
peerDependencies?: PackageDeps; | ||
optionalDependencies?: PackageDeps; | ||
private?: boolean; | ||
@@ -40,2 +41,3 @@ scripts?: Record<string, string>; | ||
peerDependencies?: PackageDeps; | ||
optionalDependencies?: PackageDeps; | ||
private: boolean; | ||
@@ -42,0 +44,0 @@ /** options that are combined from the root configuration */ |
{ | ||
"name": "beachball", | ||
"version": "2.42.0", | ||
"version": "2.43.0", | ||
"description": "The Sunniest Semantic Version Bumper", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
377067
4789