File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 10
10
var chalk = require ( 'chalk' ) ;
11
11
var execSync = require ( 'child_process' ) . execSync ;
12
12
var spawn = require ( 'cross-spawn' ) ;
13
- var opn = require ( 'opn ' ) ;
13
+ var open = require ( 'open ' ) ;
14
14
15
- // https://github.com/sindresorhus/opn #app
15
+ // https://github.com/sindresorhus/open #app
16
16
var OSX_CHROME = 'google chrome' ;
17
17
18
18
const Actions = Object . freeze ( {
@@ -24,7 +24,7 @@ const Actions = Object.freeze({
24
24
function getBrowserEnv ( ) {
25
25
// Attempt to honor this environment variable.
26
26
// It is specific to the operating system.
27
- // See https://github.com/sindresorhus/opn #app for documentation.
27
+ // See https://github.com/sindresorhus/open #app for documentation.
28
28
const value = process . env . BROWSER ;
29
29
let action ;
30
30
if ( ! value ) {
@@ -93,11 +93,11 @@ function startBrowserProcess(browser, url) {
93
93
browser = undefined ;
94
94
}
95
95
96
- // Fallback to opn
96
+ // Fallback to open
97
97
// (It will always open new tab)
98
98
try {
99
99
var options = { app : browser , wait : false } ;
100
- opn ( url , options ) . catch ( ( ) => { } ) ; // Prevent `unhandledRejection` error.
100
+ open ( url , options ) . catch ( ( ) => { } ) ; // Prevent `unhandledRejection` error.
101
101
return true ;
102
102
} catch ( err ) {
103
103
return false ;
Original file line number Diff line number Diff line change 67
67
"inquirer" : " 6.2.2" ,
68
68
"is-root" : " 2.0.0" ,
69
69
"loader-utils" : " 1.2.3" ,
70
- "opn " : " 5.4 .0" ,
70
+ "open " : " ^6.3 .0" ,
71
71
"pkg-up" : " 2.0.0" ,
72
72
"react-error-overlay" : " ^5.1.6" ,
73
73
"recursive-readdir" : " 2.2.2" ,
You can’t perform that action at this time.
0 commit comments