From f61dae7839381af0d9a58c52739a2c169762bd15 Mon Sep 17 00:00:00 2001 From: James Brown Date: Fri, 5 Jan 2024 17:21:02 -0800 Subject: [PATCH] feat: add a config flag to disable writing the VERSION.txt file --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d9b9844..14bbeb6 100644 --- a/index.js +++ b/index.js @@ -16,6 +16,7 @@ module.exports = { updateInterval: 60000, enableInTests: false, enableInDev: false, + writeVersionFile: true, maxCountInTesting: 10, }; @@ -43,8 +44,8 @@ module.exports = { * Write version file */ treeForPublic() { - const { currentVersion, versionFileName } = this._config; - if (currentVersion) { + const { currentVersion, versionFileName, writeVersionFile } = this._config; + if (currentVersion && writeVersionFile) { this.ui.writeLine(`Created ${versionFileName} with ${currentVersion}`); return writeFile(versionFileName, currentVersion); }