Skip to content

Commit

Permalink
Fix prerelease command (fix #5193) (#5196)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Dec 27, 2022
1 parent 2086991 commit e3912e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ if (!prevVersion || !nextVersion) {
let distMin;
let distMax;
if (process.env.FOR_RELEASE) {
distMin = pkg.scripts['dist:min'].replace(/-master/g, '');
distMax = pkg.scripts['dist:max'].replace(/-master/g, '');
distMin = `${pkg.scripts['dist:min']} --output-filename aframe.min.js`;
distMax = `${pkg.scripts['dist:max']} --output-filename aframe.js`;
} else {
distMin = pkg.scripts['dist:min'].replace(/master/g, `v${nextVersion}`);
distMax = pkg.scripts['dist:max'].replace(/master/g, `v${nextVersion}`);
distMin = `${pkg.scripts['dist:min']} --output-filename aframe-v${nextVersion}.min.js`;
distMax = `${pkg.scripts['dist:max']} --output-filename aframe-v${nextVersion}.js`;
}

execSync(distMin, {stdio: 'inherit'});
Expand Down

0 comments on commit e3912e5

Please sign in to comment.