'use strict'; const config = require('./shared/mwm.8f84d326.cjs'); const defu = require('defu'); require('c12'); function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; } const defu__default = /*#__PURE__*/_interopDefaultCompat(defu); function defineConfigForWorkspace(commitMessage, tagName, tagAnnotation = commitMessage) { return { git: { requireCleanWorkingDir: true, commitMessage, tagAnnotation, tagName, requireCommits: true, requireCommitsFail: false }, github: { release: true }, npm: { publish: false } }; } function defineConfigForPackage(commitMessage, tagName, tagAnnotation = commitMessage) { return { git: { commitMessage, tagAnnotation, tagName, requireCommits: true, requireCommitsFail: false }, github: { release: true }, npm: { publish: true } }; } function defineConfigForRelease(commitMessage, tagName, tagAnnotation = commitMessage) { return { git: { commitMessage, tagAnnotation, tagName, requireCommits: true, requireCommitsFail: false }, github: { release: true }, npm: { publish: true } }; } function defineConfigForNuxt(commitMessage, tagName, tagAnnotation = commitMessage) { return { git: { commitMessage, tagAnnotation, tagName, requireCommits: true, requireCommitsFail: false }, github: { release: true }, npm: { publish: true } }; } function defineConfigForNuxtLayer(commitMessage, tagName, tagAnnotation = commitMessage) { return defineConfigForNuxt(commitMessage, tagName, tagAnnotation); } function defineConfigForNuxtModule(commitMessage, tagName, tagAnnotation = commitMessage) { return defineConfigForNuxt(commitMessage, tagName, tagAnnotation); } function defineConfigForNitroPlugin(commitMessage, tagName, tagAnnotation = commitMessage) { return defineConfigForNuxt(commitMessage, tagName, tagAnnotation); } function defineReleaseItConfig(preset, name, config) { const versionTemplate = "${version}"; const commitMessage = name ? `Release: ${name} ${versionTemplate}` : `Release: ${versionTemplate}`; const tagName = name ? `${name}-v${versionTemplate}` : `v${versionTemplate}`; switch (preset) { case "workspace": return defu__default(config, defineConfigForWorkspace(commitMessage, tagName)); case "package": return defu__default(config, defineConfigForPackage(commitMessage, tagName)); case "release": return defu__default(config, defineConfigForRelease(commitMessage, tagName)); case "nuxt-layer": return defu__default(config, defineConfigForNuxtLayer(commitMessage, tagName)); case "nuxt-module": return defu__default(config, defineConfigForNuxtModule(commitMessage, tagName)); case "nitro-plugin": return defu__default(config, defineConfigForNitroPlugin(commitMessage, tagName)); } } exports.defineMWMConfig = config.defineMWMConfig; exports.defineReleaseItConfig = defineReleaseItConfig;