Skip to content

Commit 135b9af

Browse files
committed
fix: disable open close zenn-dev#6
1 parent d80bf45 commit 135b9af

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

packages/zenn-cli/cli/preview/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { cliCommand } from "..";
33
import { build } from "./build";
44
import chokidar from "chokidar";
55
import socketIo from "socket.io";
6-
import open from "open";
76

87
export const exec: cliCommand = async (argv) => {
98
const args = arg(
@@ -28,7 +27,6 @@ export const exec: cliCommand = async (argv) => {
2827
const previewUrl = `http://localhost:${port}`;
2928
const srcDir = `${__dirname}/../../../.`; // refer ".next" dir from dist/cli/preview/index.js
3029
const server = await build({ port, previewUrl, srcDir });
31-
await open(previewUrl);
3230
if (watch) {
3331
const watcher = chokidar.watch(process.cwd());
3432
const io = socketIo(server);

packages/zenn-cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"gray-matter": "^4.0.2",
3232
"js-yaml": "^3.14.0",
3333
"next": "9.5.2",
34-
"open": "^7.2.1",
3534
"react": "^16.13.1",
3635
"react-dom": "^16.13.1",
3736
"socket.io": "^2.3.0",

yarn.lock

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5842,11 +5842,6 @@ is-directory@^0.3.1:
58425842
resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1"
58435843
integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=
58445844

5845-
is-docker@^2.0.0:
5846-
version "2.1.1"
5847-
resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.1.1.tgz#4125a88e44e450d384e09047ede71adc2d144156"
5848-
integrity sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw==
5849-
58505845
is-extendable@^0.1.0, is-extendable@^0.1.1:
58515846
version "0.1.1"
58525847
resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89"
@@ -6024,13 +6019,6 @@ is-wsl@^1.1.0:
60246019
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d"
60256020
integrity sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=
60266021

6027-
is-wsl@^2.1.1:
6028-
version "2.2.0"
6029-
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271"
6030-
integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==
6031-
dependencies:
6032-
is-docker "^2.0.0"
6033-
60346022
is-yarn-global@^0.3.0:
60356023
version "0.3.0"
60366024
resolved "https://registry.yarnpkg.com/is-yarn-global/-/is-yarn-global-0.3.0.tgz#d502d3382590ea3004893746754c89139973e232"
@@ -7518,14 +7506,6 @@ onetime@^2.0.0:
75187506
dependencies:
75197507
mimic-fn "^1.0.0"
75207508

7521-
open@^7.2.1:
7522-
version "7.2.1"
7523-
resolved "https://registry.yarnpkg.com/open/-/open-7.2.1.tgz#07b0ade11a43f2a8ce718480bdf3d7563a095195"
7524-
integrity sha512-xbYCJib4spUdmcs0g/2mK1nKo/jO2T7INClWd/beL7PFkXRWgr8B23ssDHX/USPn2M2IjDR5UdpYs6I67SnTSA==
7525-
dependencies:
7526-
is-docker "^2.0.0"
7527-
is-wsl "^2.1.1"
7528-
75297509
optionator@^0.9.1:
75307510
version "0.9.1"
75317511
resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499"

0 commit comments

Comments
 (0)