@base44-preview/cli 0.0.31-pr.189.c10a602 → 0.0.31-pr.189.c893c9c
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/cli/index.js +12 -7
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -193551,8 +193551,12 @@ async function runCommand(commandFn, options, context) {
|
|
|
193551
193551
|
const appConfig = await initAppConfig();
|
|
193552
193552
|
context.errorReporter.setContext({ appId: appConfig.id });
|
|
193553
193553
|
}
|
|
193554
|
-
const { outroMessage } = await commandFn();
|
|
193555
|
-
|
|
193554
|
+
const { outroMessage, failed } = await commandFn();
|
|
193555
|
+
if (failed) {
|
|
193556
|
+
xe(outroMessage || "");
|
|
193557
|
+
} else {
|
|
193558
|
+
Se(outroMessage || "");
|
|
193559
|
+
}
|
|
193556
193560
|
} catch (error48) {
|
|
193557
193561
|
const errorMessage = error48 instanceof Error ? error48.message : String(error48);
|
|
193558
193562
|
M2.error(errorMessage);
|
|
@@ -194335,6 +194339,7 @@ function printSummary(results, oauthOutcomes) {
|
|
|
194335
194339
|
for (const r2 of failed) {
|
|
194336
194340
|
M2.error(`Failed: ${r2.type}${r2.error ? ` - ${r2.error}` : ""}`);
|
|
194337
194341
|
}
|
|
194342
|
+
return { hasFailures: failed.length > 0 };
|
|
194338
194343
|
}
|
|
194339
194344
|
async function pushConnectorsAction() {
|
|
194340
194345
|
const { connectors } = await readProjectConfig();
|
|
@@ -194351,8 +194356,8 @@ async function pushConnectorsAction() {
|
|
|
194351
194356
|
const needsOAuth = results.filter(isPendingOAuth);
|
|
194352
194357
|
let outroMessage = "Connectors pushed to Base44";
|
|
194353
194358
|
if (needsOAuth.length === 0) {
|
|
194354
|
-
printSummary(results, oauthOutcomes);
|
|
194355
|
-
return { outroMessage };
|
|
194359
|
+
const { hasFailures: hasFailures2 } = printSummary(results, oauthOutcomes);
|
|
194360
|
+
return { outroMessage, failed: hasFailures2 };
|
|
194356
194361
|
}
|
|
194357
194362
|
M2.warn(`${needsOAuth.length} connector(s) require authorization in your browser:`);
|
|
194358
194363
|
for (const connector2 of needsOAuth) {
|
|
@@ -194401,8 +194406,8 @@ Opening browser for '${connector2.type}'...`);
|
|
|
194401
194406
|
}
|
|
194402
194407
|
}
|
|
194403
194408
|
}
|
|
194404
|
-
printSummary(results, oauthOutcomes);
|
|
194405
|
-
return { outroMessage };
|
|
194409
|
+
const { hasFailures } = printSummary(results, oauthOutcomes);
|
|
194410
|
+
return { outroMessage, failed: hasFailures };
|
|
194406
194411
|
}
|
|
194407
194412
|
function getConnectorsPushCommand(context) {
|
|
194408
194413
|
return new Command("push").description("Push local connectors to Base44 (overwrites connectors on Base44)").action(async () => {
|
|
@@ -199623,4 +199628,4 @@ export {
|
|
|
199623
199628
|
CLIExitError
|
|
199624
199629
|
};
|
|
199625
199630
|
|
|
199626
|
-
//# debugId=
|
|
199631
|
+
//# debugId=6524DB5099E3419164756E2164756E21
|