diff --git a/index.js b/index.js index 928e24c..0892a3d 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,9 @@ const yaml = require("yaml"); -module.exports.readVersion = contents => yaml.parse(contents, "utf8").version; +// Get the current version in the yaml file. +module.exports.readVersion = (contents) => yaml.parse(contents, "utf8").version; +// Update the version in the yaml file. module.exports.writeVersion = (contents, version) => { const yamlFile = yaml.parse(contents, "utf8"); yamlFile.version = version;