fix(ci): better deal with ci environments
This commit is contained in:
		
							
								
								
									
										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 | ||||||
|  |   } | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user