From 05a97e5fbd1664414243e8d8d805c36224e72440 Mon Sep 17 00:00:00 2001 From: Matt Roberts Date: Wed, 11 Dec 2024 12:37:56 +0000 Subject: [PATCH] fix(scripts): remove leading v from version tag Signed-off-by: Matt Roberts --- scripts/bump_version.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/bump_version.js b/scripts/bump_version.js index f9c962536..9eba38964 100644 --- a/scripts/bump_version.js +++ b/scripts/bump_version.js @@ -19,11 +19,11 @@ const fs = require('fs'); const glob = require('glob'); /** - * This script updates the devDependencies and dependencies in the workspaces + * This script updates the devDependencies and dependencies in the workspaces * to match the version specified by the given parameter. * The expected parameter should be the tag for the package. - * - * Example: + * + * Example: * node ./script/bump_version.js */ @@ -38,7 +38,7 @@ const packageNames = [ ]; function bumpDependencies() { - const targetPackageVersion = process.argv[2]; + const targetPackageVersion = process.argv[2].replace(/^v/, ''); const workspacePackages = glob.sync(workspacesPattern); workspacePackages.forEach((packagePath) => {