mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
feat(cli): add VANT_CLI_VERSION env
This commit is contained in:
@@ -17,6 +17,8 @@ import { commitLint } from './commands/commit-lint';
|
|||||||
|
|
||||||
version(`@vant/cli ${packageJson.version}`);
|
version(`@vant/cli ${packageJson.version}`);
|
||||||
|
|
||||||
|
process.env.VANT_CLI_VERSION = packageJson.version;
|
||||||
|
|
||||||
command('dev')
|
command('dev')
|
||||||
.description('Run webpack dev server')
|
.description('Run webpack dev server')
|
||||||
.action(dev);
|
.action(dev);
|
||||||
|
Reference in New Issue
Block a user