fix(@vant/cli): release plugin not work

This commit is contained in:
chenjiahan
2021-11-04 20:12:26 +08:00
parent 30510c01c6
commit 4f40157057
3 changed files with 15 additions and 16 deletions

View File

@@ -0,0 +1,14 @@
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;