chore(cli): bump release-it v15 (#10773)

This commit is contained in:
neverland
2022-07-02 22:26:41 +08:00
committed by GitHub
parent 2f1066e9c6
commit eea5f002a7
9 changed files with 1126 additions and 1027 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ 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');
const PLUGIN_PATH = join(__dirname, '../compiler/vant-cli-release-plugin.js');
export async function release(command: { tag?: string }) {
await releaseIt({
@@ -0,0 +1,14 @@
import { Plugin } from 'release-it';
import { execSync } from 'child_process';
class VantCliReleasePlugin extends Plugin {
async beforeRelease() {
// log an empty line
console.log('');
execSync('vant-cli build', { stdio: 'inherit' });
execSync('vant-cli changelog', { stdio: 'inherit' });
}
}
export default VantCliReleasePlugin;