fix: npm publish bug

This commit is contained in:
suwenxiong 2019-01-15 14:25:50 +08:00
parent 5629b6798d
commit b2261e7a5b

View File

@ -1,7 +1,7 @@
const shell = require ('shelljs');
const packageJson = require ('./package.json');
const version = packageJson.version;
const version = "v" + packageJson.version;
if(!version){
console.error('version 不能为空')