This commit is contained in:
Zhe Li 2019-03-26 16:36:11 +08:00
Родитель 2182fc90c8
Коммит 98984033bd
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -1,21 +1,21 @@
const fs = require('fs');
const codeGenUrl = process.env['prodCodeGenUrl-v2'];
const graphUrl = process.env['prodGraphUrl'];
const interfaceUrl = process.env['prodInterfaceUrl'];
const capabilityModelUrl = process.env['prodCapabilityModelUrl'];
const graphUrl = process.env['graphUrl'];
const interfaceUrl = process.env['interfaceUrl'];
const capabilityModelUrl = process.env['capabilityModelUrl'];
if(!codeGenUrl){
throw new Error('Unable to find the variable of prodCodeGenUrl-v2');
}
if(!graphUrl){
throw new Error('Unable to find the variable of prodGraphUrl');
throw new Error('Unable to find the variable of graphUrl');
}
if(!interfaceUrl){
throw new Error('Unable to find the variable of prodInterfaceUrl');
throw new Error('Unable to find the variable of interfaceUrl');
}
if(!capabilityModelUrl){
throw new Error('Unable to find the variable of prodCapabilityModelUrl');
throw new Error('Unable to find the variable of capabilityModelUrl');
}
const packageJson = JSON.parse(fs.readFileSync('package.json'));