diff --git a/src/util/config-file.js b/src/util/config-file.js index 3fd4853c..34bd5611 100644 --- a/src/util/config-file.js +++ b/src/util/config-file.js @@ -24,7 +24,8 @@ function writeConfig(configPath, content) { if (!content.projectName) { throw new Error(`Error! Project name is not set in ${configPath}`) } - if (!content.files.length) { + + if (content.files && !content.files.length) { throw new Error( `Error! Project files was overridden and is empty in ${configPath}`, )