2 Commits

Author SHA1 Message Date
b26b03f04b 1.0.5 2018-05-22 13:42:21 +02:00
cb1ee35f2e fix(ci): better deal with ci environments 2018-05-22 13:42:21 +02:00
2 changed files with 9 additions and 5 deletions

View File

@ -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",

View File

@ -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
}
}; };