We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcc5f43 commit 9090a56Copy full SHA for 9090a56
packages/gel/src/cli.mts
@@ -186,7 +186,7 @@ function runCli(
186
return execSync(command, execOptions);
187
}
188
189
-async function findPackageUrl(): Promise<string> {
+async function findPackageUrl(): Promise<URL> {
190
const arch = os.arch();
191
const platform = os.platform();
192
@@ -213,8 +213,8 @@ async function findPackageUrl(): Promise<string> {
213
throw new Error(`Unsupported OS: ${platform}`);
214
215
216
- const pkg = `${EDGEDB_PKG_ROOT}/${dist}/gel-cli${ext}`;
217
- debug(" - Package URL:", pkg);
+ const pkg = new URL(`/dist/${dist}/gel-cli${ext}`, EDGEDB_PKG_ROOT);
+ debug(" - Package URL:", pkg.href);
218
return pkg;
219
220
0 commit comments