Skip to content

Commit

Permalink
fix: set defaults for clean and debug correctly
Browse files Browse the repository at this point in the history
Fixes #29
  • Loading branch information
simonseyock authored Jan 17, 2024
1 parent cda42c7 commit c894120
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 c894120

Please sign in to comment.