mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
31 lines
862 B
TypeScript
Executable File
31 lines
862 B
TypeScript
Executable File
// @ts-ignore
|
|
import fs from 'fs';
|
|
import { URL, fileURLToPath } from 'url';
|
|
import { dev } from './commands/dev.js';
|
|
import { lint } from './commands/lint.js';
|
|
import { test } from './commands/jest.js';
|
|
import { clean } from './commands/clean.js';
|
|
import { build } from './commands/build.js';
|
|
import { release } from './commands/release.js';
|
|
import { changelog } from './commands/changelog.js';
|
|
import { buildSite } from './commands/build-site.js';
|
|
import { commitLint } from './commands/commit-lint.js';
|
|
|
|
const packagePath = fileURLToPath(new URL('../package.json', import.meta.url));
|
|
const packageJson = JSON.parse(fs.readFileSync(packagePath, 'utf-8'));
|
|
export const cliVersion: string = packageJson.version;
|
|
|
|
process.env.VANT_CLI_VERSION = cliVersion;
|
|
|
|
export {
|
|
dev,
|
|
lint,
|
|
test,
|
|
clean,
|
|
build,
|
|
release,
|
|
changelog,
|
|
buildSite,
|
|
commitLint,
|
|
};
|