fix(schema): change schema and unpack script

This commit is contained in:
Kristofer Koishigawa
2018-09-20 22:24:45 +09:00
committed by Mrugesh Mohapatra
parent 0db6aeb523
commit b014b23404
4 changed files with 20 additions and 32 deletions

View File

@@ -42,7 +42,10 @@ function superblockInfo(filePath) {
}
}
module.exports = function getChallenges(challengesDir) {
// unpackFlag is an argument passed by the unpack script in unpack.js
// which allows us to conditionall omit translations when running
// the test suite and prevent schema related errors in the main fCC branch
module.exports = function getChallenges(challengesDir, unpackFlag) {
if (!challengesDir) {
challengesDir = 'challenges';
}
@@ -63,6 +66,8 @@ module.exports = function getChallenges(challengesDir) {
'react',
'reactRedux',
'redux',
'releasedOn',
unpackFlag ? undefined : 'translations',
'type'
])
);