mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
13 lines
404 B
TypeScript
Executable File
13 lines
404 B
TypeScript
Executable File
import { logger } from 'rslog';
|
|
import { createRequire } from 'node:module';
|
|
|
|
const require = createRequire(import.meta.url);
|
|
const { version: rsbuildVersion } = require('@rsbuild/core/package.json');
|
|
const { version: cliVersion } = require('../package.json');
|
|
|
|
export { cliVersion };
|
|
|
|
logger.greet(` Vant CLI v${cliVersion} / Rsbuild v${rsbuildVersion}\n`);
|
|
|
|
process.env.VANT_CLI_VERSION = cliVersion;
|