Skip to content

Commit

Permalink
Create the aframe-v{nextVersion}.module.min.js / aframe.module.min.js…
Browse files Browse the repository at this point in the history
… bundle in prerelease script
  • Loading branch information
vincentfretin committed Jan 27, 2025
1 parent f115d02 commit 3da06dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,20 @@ if (!prevVersion || !nextVersion) {
process.exit(1);
}

let distModule;
let distMin;
let distMax;
if (process.env.FOR_RELEASE) {
distModule = `${pkg.scripts['dist:module']} --output-filename aframe.module.min.js`;
distMin = `${pkg.scripts['dist:min']} --output-filename aframe.min.js`;
distMax = `${pkg.scripts['dist:max']} --output-filename aframe.js`;
} else {
distModule = `${pkg.scripts['dist:module']} --output-filename aframe-v${nextVersion}.module.min.js`;
distMin = `${pkg.scripts['dist:min']} --output-filename aframe-v${nextVersion}.min.js`;
distMax = `${pkg.scripts['dist:max']} --output-filename aframe-v${nextVersion}.js`;
}

execSync(distModule, {stdio: 'inherit'});
execSync(distMin, {stdio: 'inherit'});
execSync(distMax, {stdio: 'inherit'});

Expand Down

0 comments on commit 3da06dd

Please sign in to comment.