dde272c4b8
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
20 lines
526 B
TypeScript
20 lines
526 B
TypeScript
import { getCurriculum } from '../get-curriculum';
|
|
import {
|
|
buildExtCurriculumDataV2,
|
|
Curriculum as CurriculumV2,
|
|
CurriculumProps as CurriculumPropsV2
|
|
} from './build-external-curricula-data-v2';
|
|
|
|
const isSelectiveBuild =
|
|
process.env.FCC_SUPERBLOCK ||
|
|
process.env.FCC_BLOCK ||
|
|
process.env.FCC_CHALLENGE_ID;
|
|
|
|
if (isSelectiveBuild) {
|
|
console.log(
|
|
'Skipping external curriculum build (selective build mode active)'
|
|
);
|
|
} else {
|
|
buildExtCurriculumDataV2(getCurriculum() as CurriculumV2<CurriculumPropsV2>);
|
|
}
|