Skip to content

Commit

Permalink
fixed updatePackageVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
btaillon-coveo committed Nov 22, 2022
1 parent 669703f commit 49021bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/packages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ export function updatePackageVersion(
if (manifest.name === packageName) {
manifest.version = newVersion;
} else {
if (packageName in manifest.dependencies) {
if (packageName in (manifest.dependencies || {})) {
manifest.dependencies[packageName] = newVersion;
}
if (packageName in manifest.devDependencies) {
if (packageName in (manifest.devDependencies || {})) {
manifest.devDependencies[packageName] = newVersion;
}
if (packageName in manifest.peerDependencies) {
if (packageName in (manifest.peerDependencies || {})) {
manifest.peerDependencies[packageName] = newVersion;
}
}
Expand Down

0 comments on commit 49021bb

Please sign in to comment.