@embeddable.com/sdk-core 3.13.6-next.2 → 3.13.7-next.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.
- package/lib/index.esm.js +5 -1
- package/lib/index.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/workspaceUtils.ts +5 -1
package/lib/index.esm.js
CHANGED
|
@@ -21728,6 +21728,7 @@ async function getWorkspaces(ctx, token, workspaceSpinner) {
|
|
|
21728
21728
|
}
|
|
21729
21729
|
}
|
|
21730
21730
|
async function selectWorkspace(ora, ctx, token) {
|
|
21731
|
+
var _a;
|
|
21731
21732
|
const workspaceSpinner = ora({
|
|
21732
21733
|
text: `Fetching workspaces using ${ctx.pushBaseUrl}...`,
|
|
21733
21734
|
color: "green",
|
|
@@ -21740,12 +21741,15 @@ async function selectWorkspace(ora, ctx, token) {
|
|
|
21740
21741
|
process.exit(1);
|
|
21741
21742
|
}
|
|
21742
21743
|
workspaceSpinner.info(`Found ${availableWorkspaces.length} workspace(s)`);
|
|
21744
|
+
const isDev = (_a = ctx.dev) === null || _a === undefined ? undefined : _a.watch;
|
|
21743
21745
|
if (availableWorkspaces.length === 1) {
|
|
21744
21746
|
selectedWorkspace = availableWorkspaces[0];
|
|
21745
21747
|
}
|
|
21746
21748
|
else {
|
|
21747
21749
|
selectedWorkspace = await select({
|
|
21748
|
-
message:
|
|
21750
|
+
message: isDev
|
|
21751
|
+
? "Select workspace to use as primary"
|
|
21752
|
+
: "Select workspace to push changes",
|
|
21749
21753
|
choices: availableWorkspaces.map((workspace) => ({
|
|
21750
21754
|
name: `${workspace.name} (${workspace.workspaceId})`,
|
|
21751
21755
|
value: workspace,
|