mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
7c3c64bf8d
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
9 lines
382 B
TypeScript
9 lines
382 B
TypeScript
import { readFileSync } from 'node:fs';
|
|
import { join } from 'node:path';
|
|
|
|
const CURRICULUM_PATH = '../../curriculum/generated/curriculum.json';
|
|
|
|
// Curriculum is read using fs, because it is too large for VSCode's LSP to handle type inference which causes annoying behavior.
|
|
export const getCurriculum = () =>
|
|
JSON.parse(readFileSync(join(__dirname, CURRICULUM_PATH), 'utf-8'));
|