Skip to content

Commit

Permalink
pin local dependencies when auto-bumping (#5222)
Browse files Browse the repository at this point in the history
* pin local dependencies when auto-bumping

* better jsdoc
  • Loading branch information
pngwn authored Aug 14, 2023
1 parent ae58f89 commit 2e61a66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .changeset/fix_changelogs.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ ${current_changelog.replace(`# ${pkg_name}`, "").trim()}
unlinkSync(join(pkg_meta.rootDir, ".changeset", "_changelog.json"));

/**
* @param {string} pkg_to_bump
* @param {string} version
* @param {string} pkg_to_bump The name of the package to bump
* @param {string} version The version to bump to
* @returns {void}
* */
function bump_local_dependents(pkg_to_bump, version) {
Expand All @@ -104,7 +104,7 @@ function bump_local_dependents(pkg_to_bump, version) {
});

if (pkg_index !== -1) {
requirements[pkg_index] = `${pkg_to_bump}>=${version}`;
requirements[pkg_index] = `${pkg_to_bump}==${version}`;
writeFileSync(requirements_path, requirements.join("\n"));
}
}
Expand Down

0 comments on commit 2e61a66

Please sign in to comment.