fix(ci): better deal with ci environments
This commit is contained in:
parent
9681acdcc4
commit
cb1ee35f2e
12
ts/index.ts
12
ts/index.ts
@ -2,8 +2,12 @@ import open = require('opn');
|
|||||||
import { ChildProcess } from 'child_process';
|
import { ChildProcess } from 'child_process';
|
||||||
|
|
||||||
export let openUrl = async urlArg => {
|
export let openUrl = async urlArg => {
|
||||||
const childProcess = await open(urlArg, {
|
if(!(process.env.CI === 'true')) {
|
||||||
wait: false
|
const childProcess = await open(urlArg, {
|
||||||
});
|
wait: false
|
||||||
return childProcess;
|
});
|
||||||
|
return childProcess;
|
||||||
|
} else {
|
||||||
|
return null
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user