refactor: migrate (some) curriculum files to TypeScript (#62228)

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
Oliver Eyton-Williams
2025-10-23 07:24:57 +02:00
committed by GitHub
parent 0d44fff1ff
commit 4a635c1b32
62 changed files with 909 additions and 582 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import fs from 'fs';
import path from 'path';
import { getChallengesForLang } from '../../../curriculum/get-challenges';
import { getChallengesForLang } from '../../../curriculum/src/get-challenges';
import {
buildExtCurriculumDataV1,
type Curriculum as CurriculumV1,
@@ -13,7 +13,7 @@ import {
type CurriculumProps as CurriculumPropsV2
} from './build-external-curricula-data-v2';
const globalConfigPath = path.resolve(__dirname, '../../../shared/config');
const globalConfigPath = path.resolve(__dirname, '../../../shared-dist/config');
// We are defaulting to English because the ids for the challenges are same
// across all languages.
@@ -5,7 +5,7 @@ import { submitTypes } from '../../../shared-dist/config/challenge-types';
import { type ChallengeNode } from '../../../client/src/redux/prop-types';
import { SuperBlocks } from '../../../shared-dist/config/curriculum';
import type { Chapter } from '../../../shared-dist/config/chapters';
import { getSuperblockStructure } from '../../../curriculum/build-curriculum';
import { getSuperblockStructure } from '../../../curriculum/src/file-handler';
export type CurriculumIntros =
| BlockBasedCurriculumIntros