vant/packages/vant-cli/src/compiler/vant-cli-release-plugin.ts
2020-03-14 19:00:19 +08:00

16 lines
346 B
TypeScript

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;