fix typo and update config check code

This commit is contained in:
Artur Girenko 2016-04-09 01:09:45 +02:00
parent 952d0b8a4c
commit b0b34b075b
1 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ generateConfig = (interfaceName, projName) ->
interface: interfaceName
androidHost: "localhost"
iosHost: "localhost"
devRoots: defaultEnvRoots
envRoots: defaultEnvRoots
modules: []
imageDirs: ["images"]
@ -165,7 +165,7 @@ writeConfig = (config) ->
message
verifyConfig = (config) ->
if !config.androidHost? || !config.modules? || !config.imageDirs? || !config.interface? || !config.iosHost?
if !config.androidHost? || !config.modules? || !config.imageDirs? || !config.interface? || !config.iosHost? || !config.envRoots?
throw new Error 're-natal project needs to be upgraded, please run: re-natal upgrade'
config