[Build] fix package version

This commit is contained in:
陈嘉涵 2018-05-12 12:30:53 +08:00
parent 773f98f66b
commit 360f2f40b1
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ const Components = require('./get-components')();
const fs = require('fs');
const path = require('path');
const uppercamelize = require('uppercamelcase');
const version = require('../../package.json').version;
const version = process.env.VERSION || require('../../package.json').version;
const tips = '// This file is auto gererated by build/bin/build-entry.js';
function buildVantEntry() {

View File

@ -11,7 +11,7 @@ echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
# build
npm run dist
VERSION=$VERSION npm run dist
# publish vant-css
echo "Releasing vant-css $VERSION ..."