Skip to content

Commit 7466d76

Browse files
author
suwenxiong
committed
fix: some bug
1 parent 0afc986 commit 7466d76

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

npm-publish.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
const shell = require ('shelljs');
22
const packageJson = require ('./package.json');
33

4-
const version = packageJson.json;
4+
const version = packageJson.version;
5+
6+
if(!version){
7+
console.error('version 不能为空')
8+
process.exit(1)
9+
}
510

611
shell.exec ('npm install --registry https://registry.npm.taobao.org');
712
shell.exec ('npm run build-client');

0 commit comments

Comments
 (0)