fix: typo in build-curriculum.js (#42533)

This commit is contained in:
Ikko Ashimine
2021-06-17 00:27:23 +09:00
committed by GitHub
parent b793107de6
commit 87ea2772f8

View File

@ -6,7 +6,7 @@ const { getChallengesForLang } = require('../../../curriculum/getChallenges');
const globalConfigPath = path.resolve(__dirname, '../../../config'); const globalConfigPath = path.resolve(__dirname, '../../../config');
// We are defaulting to English because the ids for the challenges are same // We are defaulting to English because the ids for the challenges are same
// accross all languages. // across all languages.
getChallengesForLang('english') getChallengesForLang('english')
.then(JSON.stringify) .then(JSON.stringify)
.then(x => fs.writeFileSync(`${globalConfigPath}/curriculum.json`, x)); .then(x => fs.writeFileSync(`${globalConfigPath}/curriculum.json`, x));