setWordupPkg(key, value) { dotProp.set(this.dotWordupJson, key, value) const newValue = dotProp.get(this.dotWordupJson, key) const ymlLevels = key.split('.') if(ymlLevels.length > 1){ this.dotWordupYml.setIn(ymlLevels, YAML.createNode(newValue)) }else{ this.dotWordupYml.set(key, YAML.createNode(newValue)) } try { fs.writeFileSync(this.getProjectPath('.wordup','config.yml'), this.dotWordupYml.toString()) } catch (err) { this.error(err, {exit:1}) } }