mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-03 06:36:34 +08:00
23 lines
567 B
TypeScript
23 lines
567 B
TypeScript
/* eslint-disable no-template-curly-in-string */
|
|
import releaseIt from 'release-it';
|
|
import { join, dirname } from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
const PLUGIN_PATH = join(__dirname, '../../cjs/vant-cli-release-plugin.cjs');
|
|
|
|
export async function release(command: { tag?: string }) {
|
|
await releaseIt({
|
|
plugins: {
|
|
[PLUGIN_PATH]: {},
|
|
},
|
|
npm: {
|
|
tag: command.tag,
|
|
},
|
|
git: {
|
|
tagName: 'v${version}',
|
|
commitMessage: 'release: ${version}',
|
|
},
|
|
});
|
|
}
|