Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
b26b03f04b | |||
cb1ee35f2e |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartopen",
|
"name": "@pushrocks/smartopen",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"description": "open things",
|
"description": "open things",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.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 => {
|
||||||
|
if(!(process.env.CI === 'true')) {
|
||||||
const childProcess = await open(urlArg, {
|
const childProcess = await open(urlArg, {
|
||||||
wait: false
|
wait: false
|
||||||
});
|
});
|
||||||
return childProcess;
|
return childProcess;
|
||||||
|
} else {
|
||||||
|
return null
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user