fix(cli): incorrect version when release

This commit is contained in:
陈嘉涵
2019-12-17 19:36:43 +08:00
parent b56e1ba217
commit 7db27a1b79
6 changed files with 30 additions and 9 deletions

View File

@@ -0,0 +1,14 @@
// @ts-ignore
import releaseIt from 'release-it';
import { build } from '../commands/build';
class VantCliReleasePlugin extends releaseIt.Plugin {
async beforeRelease() {
// log an empty line
console.log('');
await build();
}
}
module.exports = VantCliReleasePlugin;