@jive-ai/cli 0.0.24 ā 0.0.25
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/index.mjs +5 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -98,13 +98,13 @@ async function requireProjectConfig() {
|
|
|
98
98
|
}
|
|
99
99
|
return config;
|
|
100
100
|
}
|
|
101
|
-
async function getActiveTeamId() {
|
|
101
|
+
async function getActiveTeamId(allowFail) {
|
|
102
102
|
const teamId = (await requireProjectConfig()).activeTeamId;
|
|
103
103
|
if (!teamId) {
|
|
104
104
|
console.error(chalk.red("No team ID found, select one with `jive team switch`"));
|
|
105
|
-
process.exit(1);
|
|
105
|
+
if (!allowFail) process.exit(1);
|
|
106
106
|
}
|
|
107
|
-
return teamId;
|
|
107
|
+
return teamId || "";
|
|
108
108
|
}
|
|
109
109
|
async function isProjectInitialized() {
|
|
110
110
|
return await getProjectConfig() !== null;
|
|
@@ -328,7 +328,7 @@ const teamCommands = {
|
|
|
328
328
|
console.log(chalk.bold("\nš Your Teams:\n"));
|
|
329
329
|
let activeTeamId = null;
|
|
330
330
|
try {
|
|
331
|
-
activeTeamId = await getActiveTeamId();
|
|
331
|
+
activeTeamId = await getActiveTeamId(true);
|
|
332
332
|
} catch {}
|
|
333
333
|
for (const team$1 of result.teams) {
|
|
334
334
|
const isActive = activeTeamId === team$1.id.toString();
|
|
@@ -2043,7 +2043,7 @@ async function checkTeamMembership() {
|
|
|
2043
2043
|
|
|
2044
2044
|
//#endregion
|
|
2045
2045
|
//#region package.json
|
|
2046
|
-
var version = "0.0.
|
|
2046
|
+
var version = "0.0.25";
|
|
2047
2047
|
|
|
2048
2048
|
//#endregion
|
|
2049
2049
|
//#region src/index.ts
|