Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
poteto committed Jul 29, 2024
1 parent 331ff46 commit 4103c12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/rollup/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ function handleRollupError(error) {
}
}

async function buildEverything(index, total) {
async function buildEverything() {
if (!argv['unsafe-partial']) {
await asyncRimRaf('build');
}
Expand Down Expand Up @@ -850,7 +850,7 @@ async function buildEverything(index, total) {
return !shouldSkipBundle(bundle, bundleType);
});

if (process.env.CI_TOTAL != null && process.env.CI_INDEX != null) {
if (process.env.CI_TOTAL && process.env.CI_INDEX) {
const nodeTotal = parseInt(process.env.CI_TOTAL, 10);
const nodeIndex = parseInt(process.env.CI_INDEX, 10);
bundles = bundles.filter((_, i) => i % nodeTotal === nodeIndex);
Expand Down

0 comments on commit 4103c12

Please sign in to comment.