@staff0rd/assist 0.70.0 → 0.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.70.0",
9
+ version: "0.71.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -2100,6 +2100,7 @@ async function start(id) {
2100
2100
  }
2101
2101
 
2102
2102
  // src/commands/backlog/web/index.ts
2103
+ import { exec } from "child_process";
2103
2104
  import { createServer } from "http";
2104
2105
  import chalk28 from "chalk";
2105
2106
 
@@ -2286,12 +2287,14 @@ async function handleRequest(req, res, port) {
2286
2287
  // src/commands/backlog/web/index.ts
2287
2288
  async function web(options2) {
2288
2289
  const port = Number.parseInt(options2.port, 10);
2290
+ const url = `http://localhost:${port}`;
2289
2291
  const server = createServer((req, res) => {
2290
2292
  handleRequest(req, res, port);
2291
2293
  });
2292
2294
  server.listen(port, () => {
2293
- console.log(chalk28.green(`Backlog web view: http://localhost:${port}`));
2295
+ console.log(chalk28.green(`Backlog web view: ${url}`));
2294
2296
  console.log(chalk28.dim("Press Ctrl+C to stop"));
2297
+ exec(`open ${url}`);
2295
2298
  });
2296
2299
  }
2297
2300
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.70.0",
3
+ "version": "0.71.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {