chore(cli): bump release-it v15 (#10773)
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user