vant/packages/vant-cli/src/compiler/vant-cli-release-plugin.ts
2019-12-29 09:13:06 +08:00

17 lines
360 B
TypeScript

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