inflight-cli 2.0.6 → 2.0.7
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.
- package/dist/commands/share.js +3 -2
- package/package.json +1 -1
package/dist/commands/share.js
CHANGED
|
@@ -2,6 +2,7 @@ import * as p from "@clack/prompts";
|
|
|
2
2
|
import pc from "picocolors";
|
|
3
3
|
import { readGlobalAuth, readWorkspaceConfig, writeWorkspaceConfig } from "../lib/config.js";
|
|
4
4
|
import { getGitInfo } from "../lib/git.js";
|
|
5
|
+
import open from "open";
|
|
5
6
|
import { providers } from "../providers/index.js";
|
|
6
7
|
import { apiGetMe, apiCreateVersion } from "../lib/api.js";
|
|
7
8
|
export async function shareCommand(opts = {}) {
|
|
@@ -42,8 +43,9 @@ export async function shareCommand(opts = {}) {
|
|
|
42
43
|
}
|
|
43
44
|
else {
|
|
44
45
|
p.log.info(`Staging URL: ${pc.cyan(stagingUrl)}`);
|
|
45
|
-
p.outro(pc.green("✓ Inflight added to your staging URL"));
|
|
46
|
+
p.outro(pc.green("✓ Inflight added to your staging URL") + " — opening in browser...");
|
|
46
47
|
}
|
|
48
|
+
await open(stagingUrl);
|
|
47
49
|
return;
|
|
48
50
|
}
|
|
49
51
|
// ── Interactive path: prompt for missing inputs ──
|
|
@@ -127,6 +129,5 @@ export async function shareCommand(opts = {}) {
|
|
|
127
129
|
});
|
|
128
130
|
p.log.info(`Staging URL: ${pc.cyan(stagingUrl)}`);
|
|
129
131
|
p.outro(pc.green("✓ Inflight added to your staging URL") + " — opening in browser...");
|
|
130
|
-
const { default: open } = await import("open");
|
|
131
132
|
await open(stagingUrl);
|
|
132
133
|
}
|