mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-30 16:01:14 -04:00
fix(tools): inccorect quiz challenge location when running create-new-language-block (#63929)
This commit is contained in:
@@ -211,10 +211,11 @@ async function createQuizChallenge(
|
||||
questionCount: number,
|
||||
challengeLang: string
|
||||
): Promise<ObjectID> {
|
||||
const newChallengeDir = path.resolve(
|
||||
__dirname,
|
||||
`../../curriculum/challenges/english/${block}`
|
||||
);
|
||||
const { blockContentDir } = getContentConfig('english') as {
|
||||
blockContentDir: string;
|
||||
};
|
||||
|
||||
const newChallengeDir = path.resolve(blockContentDir, block);
|
||||
if (!existsSync(newChallengeDir)) {
|
||||
await withTrace(fs.mkdir, newChallengeDir);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user