feat(cli): add VANT_CLI_VERSION env

This commit is contained in:
chenjiahan 2020-03-19 18:49:46 +08:00
parent 7878f72f30
commit 377f4375d7

View File

@ -17,6 +17,8 @@ import { commitLint } from './commands/commit-lint';
version(`@vant/cli ${packageJson.version}`);
process.env.VANT_CLI_VERSION = packageJson.version;
command('dev')
.description('Run webpack dev server')
.action(dev);