vant/packages/vant-cli/cjs/vant-cli-release-plugin.cjs
2021-11-04 20:16:30 +08:00

15 lines
374 B
JavaScript

const releaseIt = require('release-it');
const { execSync } = require('child_process');
class VantCliReleasePlugin extends releaseIt.Plugin {
async beforeRelease() {
// log an empty line
console.log('');
execSync('vant-cli build', { stdio: 'inherit' });
execSync('vant-cli changelog', { stdio: 'inherit' });
}
}
module.exports = VantCliReleasePlugin;