vant/packages/vant-cli/src/compiler/vant-cli-release-plugin.ts
2021-10-28 20:09:00 +08:00

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;