@base44-preview/cli 0.0.10-pr.75.97830be → 0.0.11-pr.78.84de648
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 +15 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -38290,7 +38290,7 @@ async function executeCreate({ template, name: rawName, description, projectPath
|
|
|
38290
38290
|
errorMessage: "Failed to create project"
|
|
38291
38291
|
});
|
|
38292
38292
|
await loadProjectEnv(resolvedPath);
|
|
38293
|
-
const { project, entities } = await readProjectConfig(resolvedPath);
|
|
38293
|
+
const { project, entities, functions } = await readProjectConfig(resolvedPath);
|
|
38294
38294
|
let finalAppUrl;
|
|
38295
38295
|
if (entities.length > 0) {
|
|
38296
38296
|
let shouldPushEntities;
|
|
@@ -38305,6 +38305,19 @@ async function executeCreate({ template, name: rawName, description, projectPath
|
|
|
38305
38305
|
errorMessage: "Failed to push data models"
|
|
38306
38306
|
});
|
|
38307
38307
|
}
|
|
38308
|
+
if (functions.length > 0) {
|
|
38309
|
+
let shouldPushFunctions;
|
|
38310
|
+
if (isInteractive) {
|
|
38311
|
+
const result = await ye({ message: "Deploy backend functions now? (This pushes the functions used by the template to Base44)" });
|
|
38312
|
+
shouldPushFunctions = !pD(result) && result;
|
|
38313
|
+
} else shouldPushFunctions = !!deploy;
|
|
38314
|
+
if (shouldPushFunctions) await runTask(`Deploying ${functions.length} backend ${functions.length === 1 ? "function" : "functions"} to Base44...`, async () => {
|
|
38315
|
+
await pushFunctions(functions);
|
|
38316
|
+
}, {
|
|
38317
|
+
successMessage: theme.colors.base44Orange("Functions deployed successfully"),
|
|
38318
|
+
errorMessage: "Failed to deploy functions"
|
|
38319
|
+
});
|
|
38320
|
+
}
|
|
38308
38321
|
if (project.site) {
|
|
38309
38322
|
const { installCommand, buildCommand, outputDirectory } = project.site;
|
|
38310
38323
|
let shouldDeploy;
|
|
@@ -38365,7 +38378,7 @@ const siteDeployCommand = new Command("site").description("Manage site deploymen
|
|
|
38365
38378
|
|
|
38366
38379
|
//#endregion
|
|
38367
38380
|
//#region package.json
|
|
38368
|
-
var version = "0.0.
|
|
38381
|
+
var version = "0.0.11";
|
|
38369
38382
|
|
|
38370
38383
|
//#endregion
|
|
38371
38384
|
//#region src/cli/index.ts
|
package/package.json
CHANGED