diff --git a/packages/release-version/bump.config.ts b/packages/release-version/bump.config.ts deleted file mode 100644 index 2743752..0000000 --- a/packages/release-version/bump.config.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { defineConfig } from './src' - -export default defineConfig({ - all: true, -}) diff --git a/packages/release-version/bumpx.config.ts b/packages/release-version/bumpx.config.ts new file mode 100644 index 0000000..cddfecb --- /dev/null +++ b/packages/release-version/bumpx.config.ts @@ -0,0 +1,5 @@ +import { defineBumpXConfig } from './src' + +export default defineBumpXConfig({ + all: true, +}) diff --git a/packages/release-version/src/core/config.ts b/packages/release-version/src/core/config.ts index 25ad9b8..9b5f2bb 100644 --- a/packages/release-version/src/core/config.ts +++ b/packages/release-version/src/core/config.ts @@ -20,7 +20,7 @@ export async function loadBumpConfig( overrides?: Partial, cwd = process.cwd(), ) { - const name = 'bump' + const name = 'bumpx' const configFile = findConfigFile(name, cwd) const { config } = await loadConfig({ name, @@ -65,6 +65,10 @@ function findConfigFile(name: string, cwd: string) { } } -export function defineConfig(config: Partial) { +/** + * 自定义配置入口 + * @param config + */ +export function defineBumpXConfig(config: Partial) { return config }