MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / configureTSCompiler

Function configureTSCompiler

packages/challenge-builder/src/build.ts:199–209  ·  view source on GitHub ↗
(challengeFiles: ChallengeFile[])

Source from the content-addressed store, hash-verified

197}
198
199async function configureTSCompiler(challengeFiles: ChallengeFile[]) {
200 if (hasTS(challengeFiles)) {
201 const tsConfig = getTSConfig(challengeFiles);
202
203 if (tsConfig) {
204 await setupTSCompiler(tsConfig);
205 } else {
206 await setupTSCompiler();
207 }
208 }
209}
210
211// TODO: All the buildXChallenge files have a similar structure, so make that
212// abstraction (function, class, whatever) and then create the various functions

Callers 2

buildDOMChallengeFunction · 0.85
buildJSChallengeFunction · 0.85

Calls 3

hasTSFunction · 0.85
getTSConfigFunction · 0.85
setupTSCompilerFunction · 0.85

Tested by

no test coverage detected