fix(cli): incorrect version when release

This commit is contained in:
陈嘉涵
2019-12-17 19:36:43 +08:00
parent b56e1ba217
commit 7db27a1b79
6 changed files with 30 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ import {
import {
SRC_DIR,
DOCS_DIR,
PACKAGE_JSON,
getPackageJson,
VANT_CONFIG_FILE,
SITE_DESKTOP_SHARED_FILE
} from '../common/constant';
@@ -96,7 +96,7 @@ function genExportConfig() {
}
function genExportVersion() {
return `export const packageVersion = '${PACKAGE_JSON.version}';`;
return `export const packageVersion = '${getPackageJson().version}';`;
}
export function genSiteDesktopShared() {