mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
fix(cli): incorrect version when release
This commit is contained in:
14
packages/vant-cli/src/compiler/vant-cli-release-plugin.ts
Normal file
14
packages/vant-cli/src/compiler/vant-cli-release-plugin.ts
Normal 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;
|
Reference in New Issue
Block a user