Files
vant/packages/vant-cli/src/compiler/vant-cli-release-plugin.ts
T

15 lines
353 B
TypeScript

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;