adhdev 0.1.11 → 0.1.12

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 +7 -18
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1284,24 +1284,13 @@ async function launchWindows(ide, port, workspace, newWindow) {
1284
1284
  if (!cli) {
1285
1285
  throw new Error(`No CLI command for ${ide.displayName}. Please add it to PATH.`);
1286
1286
  }
1287
- const args = ["--remote-debugging-port=" + port];
1288
- if (newWindow) args.push("--new-window");
1289
- if (workspace) args.push(`"${workspace}"`);
1290
- const isCmd = cli.endsWith(".cmd") || cli.endsWith(".bat");
1291
- if (isCmd) {
1292
- const cmdLine = `start "" /b "${cli}" ${args.join(" ")}`;
1293
- (0, import_child_process3.spawn)("cmd", ["/c", cmdLine], {
1294
- detached: true,
1295
- stdio: "ignore",
1296
- windowsHide: true
1297
- }).unref();
1298
- } else {
1299
- (0, import_child_process3.spawn)(cli, args, {
1300
- detached: true,
1301
- stdio: "ignore",
1302
- shell: false
1303
- }).unref();
1304
- }
1287
+ const parts = [`"${cli}"`, `--remote-debugging-port=${port}`];
1288
+ if (newWindow) parts.push("--new-window");
1289
+ if (workspace) parts.push(`"${workspace}"`);
1290
+ const fullCmd = parts.join(" ");
1291
+ const { exec: execCmd } = require("child_process");
1292
+ execCmd(fullCmd, { windowsHide: true }, () => {
1293
+ });
1305
1294
  }
1306
1295
  async function launchLinux(ide, port, workspace, newWindow) {
1307
1296
  const cli = ide.cliCommand;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adhdev",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "ADHDev CLI — Detect, install and configure your IDE + AI agent extensions",
5
5
  "main": "dist/index.js",
6
6
  "bin": {