mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(tools): curriculum command line helpers (#61831)
This commit is contained in:
committed by
GitHub
parent
c58ba56eeb
commit
10c565828e
@@ -9,6 +9,7 @@ const {
|
||||
getContentDir,
|
||||
getBlockCreator
|
||||
} = require('../../curriculum/build-curriculum');
|
||||
const { getBlockStructure } = require('../../curriculum/file-handler');
|
||||
|
||||
const { curriculumLocale } = envData;
|
||||
|
||||
@@ -23,7 +24,7 @@ exports.replaceChallengeNode = () => {
|
||||
const filename = path.basename(filePath);
|
||||
|
||||
console.log(`Replacing challenge node for ${filePath}`);
|
||||
const meta = blockCreator.getMetaForBlock(block);
|
||||
const meta = getBlockStructure(block);
|
||||
|
||||
return await blockCreator.createChallenge({
|
||||
filename,
|
||||
|
||||
Reference in New Issue
Block a user