Skip to content

Commit

Permalink
Update bump version script to optionally update every package
Browse files Browse the repository at this point in the history
  • Loading branch information
s1hofmann committed Feb 16, 2024
1 parent f44e282 commit 2599ab5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .build/bump_version.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ const { join } = require("path");

const args = process.argv.slice(2);
const version = args[0];
const allPackages = args.includes("--all");

if (version == null || version === "") {
throw new Error("Version is required");
}

exec("pnpm m ls --json --depth=-1", (_, stdout) => {
const modules = JSON.parse(stdout).filter(
(module) => module.private !== true,
(module) => {
return allPackages ? true : module.private !== true;
}
);

for (const module of modules) {
Expand Down

0 comments on commit 2599ab5

Please sign in to comment.