Skip to content

Commit 05a97e5

Browse files
committed
fix(scripts): remove leading v from version tag
Signed-off-by: Matt Roberts <[email protected]>
1 parent dd73aba commit 05a97e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/bump_version.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ const fs = require('fs');
1919
const glob = require('glob');
2020

2121
/**
22-
* This script updates the devDependencies and dependencies in the workspaces
22+
* This script updates the devDependencies and dependencies in the workspaces
2323
* to match the version specified by the given parameter.
2424
* The expected parameter should be the tag for the package.
25-
*
26-
* Example:
25+
*
26+
* Example:
2727
* node ./script/bump_version.js <tag>
2828
*/
2929

@@ -38,7 +38,7 @@ const packageNames = [
3838
];
3939

4040
function bumpDependencies() {
41-
const targetPackageVersion = process.argv[2];
41+
const targetPackageVersion = process.argv[2].replace(/^v/, '');
4242
const workspacePackages = glob.sync(workspacesPattern);
4343

4444
workspacePackages.forEach((packagePath) => {

0 commit comments

Comments
 (0)