Skip to content

Commit 2c7ff0a

Browse files
committed
add open as a dep
1 parent f4fccd1 commit 2c7ff0a

3 files changed

Lines changed: 205 additions & 25 deletions

File tree

cli.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env node
22

33
import { spawn, spawnSync } from "child_process";
4-
import open from "open";
54
import path from "path";
65
import fs from "fs";
76
import { fileURLToPath } from "url";
87
import { select } from "@inquirer/prompts";
98

9+
let open;
10+
1011
const __dirname = path.dirname(fileURLToPath(import.meta.url));
1112

1213
const FRONTEND_PORT = 4173;
@@ -138,6 +139,8 @@ function startFrontend() {
138139
---------------------------- */
139140

140141
async function main() {
142+
open = (await import("open")).default;
143+
141144
checkVerdi();
142145
checkRestApiDeps();
143146
checkFrontend();

package-lock.json

Lines changed: 200 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"inquirer": "^13.4.1",
4545
"mathjs": "^15.1.0",
4646
"mc-react-structure-visualizer": "^0.8.3",
47+
"open": "^11.0.0",
4748
"plotly.js-basic-dist-min": "^3.1.2",
4849
"react-json-view-lite": "^2.5.0",
4950
"react-resizable-panels": "^3.0.6",

0 commit comments

Comments
 (0)