Skip to content

Commit 5622c28

Browse files
jamesgeorge007CompuIves
authored andcommitted
Remove opn which is deprecated (#44)
use open instead
1 parent ad37601 commit 5622c28

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"lodash": "^4.17.5",
4242
"lz-string": "^1.4.4",
4343
"ms": "^2.0.0",
44-
"opn": "^5.1.0",
44+
"open": "^6.3.0",
4545
"ora": "^1.3.0",
4646
"pacote": "^2.7.36",
4747
"shortid": "^2.2.8",
@@ -58,7 +58,7 @@
5858
"@types/lz-string": "^1.3.32",
5959
"@types/ms": "^0.7.29",
6060
"@types/node": "^8.0.1",
61-
"@types/opn": "^3.0.28",
61+
"@types/open": "^6.1.0",
6262
"@types/ora": "^0.3.31",
6363
"@types/shortid": "^0.0.29",
6464
"@types/update-notifier": "^1.0.1",

packages/cli/src/commands/login.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as http from "http";
22
import * as inquirer from "inquirer";
33
import { omit } from "lodash";
4-
import * as opn from "opn";
4+
import * as open from "open";
55
import ora = require("ora");
66

77
import * as cfg from "../cfg";
@@ -23,7 +23,7 @@ import * as Commander from "commander";
2323
async function handleSignIn() {
2424
// Open specific url
2525
info(`Opening ${CLI_LOGIN_URL}`);
26-
opn(CLI_LOGIN_URL, { wait: false });
26+
open(CLI_LOGIN_URL, { wait: false });
2727

2828
const { authToken } = await inquirer.prompt([
2929
{

0 commit comments

Comments
 (0)