From c8941200e9be3a6481f82ee4e4431b04e98511c3 Mon Sep 17 00:00:00 2001 From: Simon Seyock <8100558+simonseyock@users.noreply.github.com> Date: Wed, 17 Jan 2024 10:00:39 +0100 Subject: [PATCH] fix: set defaults for clean and debug correctly Fixes #29 --- src/publish.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/publish.js b/src/publish.js index 8ed17cf..1351084 100644 --- a/src/publish.js +++ b/src/publish.js @@ -16,8 +16,8 @@ module.exports = async function publish(pluginConfig, { const settingsPath = pluginConfig.settingsPath || '.m2/settings.xml'; const mavenTarget = pluginConfig.mavenTarget || 'deploy'; - const clean = pluginConfig.clean || true; - const debug = pluginConfig.debug || false; + const clean = pluginConfig.clean !== false; + const debug = pluginConfig.debug === true; if (!/^[\w~./-]*$/.test(settingsPath)) { throw new Error('config settingsPath contains disallowed characters');