Skip to content

Commit

Permalink
release: fix version tag reader (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored Aug 21, 2024
1 parent 703a00d commit d5998ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions npm/wizer/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import decompressUnzip from 'decompress-unzip';
import decompressTar from 'decompress-tar';
import plzma from 'plzmasdk';
const __dirname = dirname(fileURLToPath(import.meta.url));
const version = process.argv.slice(2).at(0).trim();
const tag = version ? `v${version}` : 'dev';
const tag = process.argv.slice(2).at(0).trim() || 'dev';
const version = tag.startsWith('v') ? tag.slice(1) : tag;

const pjson = JSON.parse(await readFile('package.json'));
pjson.version = version;
Expand Down

0 comments on commit d5998ad

Please sign in to comment.