fix(client): ensure validation works during watch (#38936)

This commit is contained in:
Oliver Eyton-Williams
2020-05-28 17:24:29 +02:00
committed by GitHub
parent 3567813c51
commit d233cb35a3
3 changed files with 10 additions and 11 deletions

View File

@@ -14,10 +14,10 @@ const arrToString = arr =>
exports.localeChallengesRootDir = getChallengesDirForLang(locale);
exports.replaceChallengeNode = async function replaceChallengeNode(
fullFilePath
) {
return prepareChallenge(await createChallenge(fullFilePath));
exports.replaceChallengeNode = locale => {
return async function replaceChallengeNode(fullFilePath) {
return prepareChallenge(await createChallenge(fullFilePath, null, locale));
};
};
exports.buildChallenges = async function buildChallenges() {