revert verifyConfig changes
fix: writeFileSync requires an explicit relative path
This commit is contained in:
parent
5c40f8f118
commit
cdce32d948
|
@ -216,8 +216,9 @@ generateConfig = (interfaceName, projName) ->
|
||||||
|
|
||||||
writeConfig = (config) ->
|
writeConfig = (config) ->
|
||||||
try
|
try
|
||||||
fs.writeFileSync '.re-natal', JSON.stringify config, null, 2
|
fs.writeFileSync './.re-natal', JSON.stringify config, null, 2
|
||||||
catch {message}
|
catch {message}
|
||||||
|
logErr message
|
||||||
logErr \
|
logErr \
|
||||||
if message.match /EACCES/i
|
if message.match /EACCES/i
|
||||||
'Invalid write permissions for creating .re-natal config file'
|
'Invalid write permissions for creating .re-natal config file'
|
||||||
|
@ -225,7 +226,7 @@ writeConfig = (config) ->
|
||||||
message
|
message
|
||||||
|
|
||||||
verifyConfig = (config) ->
|
verifyConfig = (config) ->
|
||||||
if !config.modules? || !config.imageDirs? || !config.interface? || !config.envRoots?
|
if !config.platforms? || !config.modules? || !config.imageDirs? || !config.interface? || !config.envRoots?
|
||||||
throw new Error 're-natal project needs to be upgraded, please run: re-natal upgrade'
|
throw new Error 're-natal project needs to be upgraded, please run: re-natal upgrade'
|
||||||
|
|
||||||
config
|
config
|
||||||
|
|
Loading…
Reference in New Issue