Skip to content

Commit 3d28a93

Browse files
authored
chore: fix bump version script (#54)
1 parent d55b536 commit 3d28a93

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/bump-version.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ for (const file of packageFiles) {
5050
const content = fs.readFileSync(file, 'utf8');
5151
const pkg = JSON.parse(content) as { version?: string };
5252
if (pkg.version) {
53-
const oldVersion = pkg.version;
54-
const newVersion = incrementVersion(pkg.version);
5553
// do a string replace from oldVersion to newVersion
54+
const oldVersion = pkg.version;
5655
const newContent = content.replace(`"version": "${oldVersion}"`, `"version": "${newVersion}"`);
5756
fs.writeFileSync(file, newContent);
5857
console.log(`Updated ${file}: ${oldVersion} -> ${newVersion}`);

0 commit comments

Comments
 (0)