fix(scripts): import classroom functions directly to fix build

The barrel export from @/lib/classroom pulls in all manager modules,
some of which have transitive dependencies on React components with
styled-system imports. Import directly from the specific manager files
(classroom-manager.ts and enrollment-manager.ts) to avoid the
dependency chain that breaks esbuild bundling for the seed script.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock
2026-01-13 11:38:21 -06:00
parent c587caaaae
commit f8861e6f8d

View File

@@ -127,11 +127,9 @@ import {
} from '../src/utils/problemGenerator'
import { createEmptySkillSet, type SkillSet } from '../src/types/tutorial'
import type { GameResultsReport } from '../src/lib/arcade/game-sdk/types'
import {
createClassroom,
getTeacherClassroom,
directEnrollStudent,
} from '../src/lib/classroom'
// Import directly from specific manager files to avoid pulling in React components via barrel export
import { createClassroom, getTeacherClassroom } from '../src/lib/classroom/classroom-manager'
import { directEnrollStudent } from '../src/lib/classroom/enrollment-manager'
// =============================================================================
// BKT Simulation Utilities