Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kelset committed Jul 28, 2023
1 parent be84dc7 commit 5cf11a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
12 changes: 1 addition & 11 deletions scripts/bump-oss-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const {parseVersion, isReleaseBranch} = require('./version-utils');
const {failIfTagExists} = require('./release-utils');
const checkForGitChanges = require('./monorepo/check-for-git-changes');
const forEachPackage = require('./monorepo/for-each-package');
const {detectPackageUnreleasedChanges} = require('./monorepo/bump-all-updated-packages');
const {detectPackageUnreleasedChanges, buildAllExecutors} = require('./monorepo/bump-all-updated-packages');

let argv = yargs
.option('r', {
Expand Down Expand Up @@ -74,16 +74,6 @@ const buildExecutor =
}
}

const buildAllExecutors = () => {
const executors = [];

forEachPackage((...params) => {
executors.push(buildExecutor(...params));
});

return executors;
}

async function exitIfUnreleasedPackages() {
// use the other script to verify that there's no packages in the monorepo
// that have changes that haven't been released
Expand Down
4 changes: 2 additions & 2 deletions scripts/monorepo/bump-all-updated-packages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const buildAllExecutors = () => {
});

return executors;
};
}

const main = async () => {
if (checkForGitChanges()) {
Expand Down Expand Up @@ -245,4 +245,4 @@ const main = async () => {

main();

module.exports = detectPackageUnreleasedChanges;
module.exports = detectPackageUnreleasedChanges, buildAllExecutors;

0 comments on commit 5cf11a9

Please sign in to comment.