Skip to content

Commit

Permalink
Build: Replace any pre-release tag with -dev during development
Browse files Browse the repository at this point in the history
Otherwise we end up with somethign like "QUnit 3.0.0-alpha.2-dev".
  • Loading branch information
Krinkle committed Jul 31, 2024
1 parent 32c26dd commit c79a25d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/dist-replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ let distVersion = require('../package.json').version;

if (!process.env.QUNIT_BUILD_RELEASE) {
// During development, include a timestamp.
distVersion += '-dev ' + (new Date()).toISOString().replace(/:\d+\.\d+Z$/, 'Z');
distVersion = distVersion.replace(/-.+$/, '')
+ '-dev ' + (new Date()).toISOString().replace(/:\d+\.\d+Z$/, 'Z');
}

const replacements = {
Expand Down

0 comments on commit c79a25d

Please sign in to comment.