Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion beachball.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-check
/** @type {import('beachball').BeachballConfig}*/
module.exports = {
const config = {
groupChanges: true,
access: "public",
ignorePatterns: [
Expand All @@ -16,4 +16,19 @@ module.exports = {
// This one is especially important (otherwise dependabot would be blocked by change file requirements)
"yarn.lock",
],
hooks: {
prepublish: (packagePath, name, version, packageInfos) => {
const { packageJsonPath } = packageInfos[name];
const packageJson = require(packageJsonPath);
for (const [dep, version] of Object.entries(packageJson.dependencies || {})) {
// If the dep is a specific version, unpin before publishing.
// See the comment towards the end of renovate.json5 for why the deps are pinned to start out.
if (/^\d/.test(version)) {
packageJson.dependencies[dep] = `^${version}`;
}
}
},
},
};

module.exports = config;