Skip to content

Commit

Permalink
Roll back execa
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommypop2 committed May 28, 2024
1 parent a4de28f commit a288473
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 117 deletions.
2 changes: 1 addition & 1 deletion packages/commands/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@solid-cli/reactivity": "workspace:*",
"@solid-cli/ui": "workspace:*",
"@solid-cli/utils": "workspace:*",
"execa": "^9.1.0",
"execa": "^8.0.1",
"picocolors": "^1.0.1",
"sucrase": "^3.35.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@solid-cli/ui": "workspace:*",
"@solid-cli/utils": "workspace:*",
"cmd-ts": "^0.13.0",
"execa": "^9.1.0",
"execa": "^8.0.1",
"picocolors": "^1.0.1",
"smol-toml": "^1.2.0",
"tiny-updater": "^3.5.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"@clack/prompts": "0.7.0",
"@solid-cli/reactivity": "workspace:*",
"cmd-ts": "^0.13.0",
"execa": "^9.1.0",
"execa": "^8.0.1",
"picocolors": "^1.0.1",
"smol-toml": "^1.2.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/src/open/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Taken verbatim from https://github.com/withastro/astro/blob/main/packages/astro/src/cli/docs/open.ts
import type { Result } from "execa";
import type { ExecaChildProcess } from "execa";
import { execa } from "execa";

/**
Expand Down Expand Up @@ -27,7 +27,7 @@ const getPlatformSpecificCommand = (): [string] | [string, string[]] => {
}
};

export async function openInBrowser(url: string): Promise<Result> {
export async function openInBrowser(url: string): Promise<ExecaChildProcess> {
const [command, args = []] = getPlatformSpecificCommand();
return execa(command, [...args, encodeURI(url)]);
}
119 changes: 7 additions & 112 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a288473

Please sign in to comment.