We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fce0d13 commit 45ab776Copy full SHA for 45ab776
1 file changed
cli/scripts/bump-minor.mjs
@@ -6,8 +6,9 @@ const match = /^v?(\d+)\.(\d+)\.(\d+)(-.+)?$/.exec(packageJson.version);
6
if (!match) throw Error(`invalid package version: ${packageJson.version}`);
7
8
const major = Number(match[1]);
9
-const minor = Number(match[2]) + 1;
+const minor = Number(match[2]);
10
+const patch = Number(match[3]) + 1;
11
const suffix = match[4] ?? "";
12
-packageJson.version = `${major}.${minor}.0${suffix}`;
13
+packageJson.version = `${major}.${minor}.${patch}${suffix}`;
14
writeFileSync(packageUrl, `${JSON.stringify(packageJson, null, 2)}\n`);
0 commit comments