Skip to content

Commit 36be0f7

Browse files
authored
fix(tools): inccorect quiz challenge location when running create-new-language-block (freeCodeCamp#63929)
1 parent c91913f commit 36be0f7

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tools/challenge-helper-scripts/create-language-block.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,11 @@ async function createQuizChallenge(
211211
questionCount: number,
212212
challengeLang: string
213213
): Promise<ObjectID> {
214-
const newChallengeDir = path.resolve(
215-
__dirname,
216-
`../../curriculum/challenges/english/${block}`
217-
);
214+
const { blockContentDir } = getContentConfig('english') as {
215+
blockContentDir: string;
216+
};
217+
218+
const newChallengeDir = path.resolve(blockContentDir, block);
218219
if (!existsSync(newChallengeDir)) {
219220
await withTrace(fs.mkdir, newChallengeDir);
220221
}

0 commit comments

Comments
 (0)