switch to open (#3788)

This commit is contained in:
James George 2019-09-11 07:35:04 +05:30 committed by Benjamin Staneck
parent 6d25ec612f
commit 84bab83e88
3 changed files with 6 additions and 6 deletions

View file

@ -7,7 +7,7 @@ const {version} = require('../app/package');
const pify = require('pify');
const args = require('args');
const chalk = require('chalk');
const opn = require('opn');
const open = require('open');
const columnify = require('columnify');
const got = require('got');
const ora = require('ora');
@ -130,7 +130,7 @@ args.command(['lsr', 'list-remote', 'ls-remote'], 'List plugins available on npm
args.command(['d', 'docs', 'h', 'home'], 'Open the npm page of a plugin', (name, args_) => {
const pluginName = args_[0];
assertPluginName(pluginName);
opn(`http://ghub.io/${pluginName}`, {wait: false});
open(`http://ghub.io/${pluginName}`, {wait: false});
process.exit(0);
});

View file

@ -190,7 +190,7 @@
"json-loader": "0.5.7",
"mousetrap": "chabou/mousetrap#useCapture",
"ms": "2.1.1",
"opn": "5.3.0",
"open": "6.4.0",
"ora": "1.3.0",
"parse-url": "3.0.2",
"php-escape-shell": "1.0.0",

View file

@ -4751,9 +4751,9 @@ onetime@^2.0.0:
dependencies:
mimic-fn "^1.0.0"
opn@5.3.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/opn/-/opn-5.3.0.tgz#64871565c863875f052cfdf53d3e3cb5adb53b1c"
open@6.4.0:
version "6.4.0"
resolved "https://registry.npmjs.org/open/-/open-6.4.0.tgz#5c13e96d0dc894686164f18965ecfe889ecfc8a9"
dependencies:
is-wsl "^1.1.0"