Skip to content

Commit

Permalink
update script for dev versions (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rihyx authored Nov 15, 2024
1 parent 1943683 commit e5ceb7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/update-dev-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ async function main() {

for (const pkg of pkgs) {
const { name } = pkg;
const { stdout } = await execPromise(`npm view ${name} dist-tags.dev`);

const current = stdout.replace(/\n$/, '');
const newVersion = current.replace(/\.\d+$/, `.${nextVersionNumber}`);
const newVersion = `1.0.0-dev.${nextVersionNumber}`;

pkg.version = newVersion;

Expand Down

0 comments on commit e5ceb7b

Please sign in to comment.