mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
16 lines
352 B
TypeScript
16 lines
352 B
TypeScript
import releaseIt from 'release-it';
|
|
import { build } from '../commands/build.js';
|
|
import { changelog } from '../commands/changelog.js';
|
|
|
|
class VantCliReleasePlugin extends releaseIt.Plugin {
|
|
async beforeRelease() {
|
|
// log an empty line
|
|
console.log('');
|
|
|
|
await build();
|
|
await changelog();
|
|
}
|
|
}
|
|
|
|
module.exports = VantCliReleasePlugin;
|