mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-07 14:16:52 +08:00
fix: some bug
This commit is contained in:
parent
0afc9863f3
commit
7466d76bcb
@ -1,7 +1,12 @@
|
||||
const shell = require ('shelljs');
|
||||
const packageJson = require ('./package.json');
|
||||
|
||||
const version = packageJson.json;
|
||||
const version = packageJson.version;
|
||||
|
||||
if(!version){
|
||||
console.error('version 不能为空')
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
shell.exec ('npm install --registry https://registry.npm.taobao.org');
|
||||
shell.exec ('npm run build-client');
|
||||
|
Loading…
Reference in New Issue
Block a user