Skip to content

Commit

Permalink
Merge pull request #34 from terrestris/fix-defaults-clean-debug
Browse files Browse the repository at this point in the history
fix: set defaults for clean and debug correctly
  • Loading branch information
simonseyock authored Jan 17, 2024
2 parents 5e71390 + c894120 commit 9f017e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 9f017e7

Please sign in to comment.