@base44-preview/cli 0.0.54-pr.537.19f716f → 0.0.54-pr.537.2a32173
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 +6 -6
- package/dist/cli/index.js.map +6 -6
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -253097,7 +253097,8 @@ async function executeCreate({
|
|
|
253097
253097
|
deploy: deploy5,
|
|
253098
253098
|
skills,
|
|
253099
253099
|
isInteractive
|
|
253100
|
-
},
|
|
253100
|
+
}, ctx) {
|
|
253101
|
+
const { log, runTask: runTask2 } = ctx;
|
|
253101
253102
|
const name2 = rawName.trim();
|
|
253102
253103
|
const resolvedPath = resolve5(projectPath);
|
|
253103
253104
|
const { projectId } = await runTask2("Setting up your project...", async () => {
|
|
@@ -253112,16 +253113,16 @@ async function executeCreate({
|
|
|
253112
253113
|
errorMessage: "Failed to create project"
|
|
253113
253114
|
});
|
|
253114
253115
|
setAppConfig({ id: projectId, projectRoot: resolvedPath });
|
|
253115
|
-
const summary = await completeProjectSetup({ projectId, name: name2, resolvedPath, deploy: deploy5, skills, isInteractive },
|
|
253116
|
+
const summary = await completeProjectSetup({ projectId, name: name2, resolvedPath, deploy: deploy5, skills, isInteractive }, ctx);
|
|
253116
253117
|
printProjectSummary(summary, log);
|
|
253117
253118
|
return { outroMessage: "Your project is set up and ready to use" };
|
|
253118
253119
|
}
|
|
253119
|
-
async function createAction(
|
|
253120
|
+
async function createAction(ctx, name2, options) {
|
|
253120
253121
|
if (name2 && !options.path) {
|
|
253121
253122
|
options.path = `./${import_kebabCase.default(name2)}`;
|
|
253122
253123
|
}
|
|
253123
253124
|
const skipPrompts = !!(options.name ?? name2) && !!options.path;
|
|
253124
|
-
if (!skipPrompts && isNonInteractive) {
|
|
253125
|
+
if (!skipPrompts && ctx.isNonInteractive) {
|
|
253125
253126
|
throw new InvalidInputError("Project name and --path are required in non-interactive mode", {
|
|
253126
253127
|
hints: [
|
|
253127
253128
|
{
|
|
@@ -253130,7 +253131,6 @@ async function createAction({ log, runTask: runTask2, isNonInteractive }, name2,
|
|
|
253130
253131
|
]
|
|
253131
253132
|
});
|
|
253132
253133
|
}
|
|
253133
|
-
const ctx = { log, runTask: runTask2 };
|
|
253134
253134
|
if (skipPrompts) {
|
|
253135
253135
|
return await createNonInteractive({ name: options.name ?? name2, ...options }, ctx);
|
|
253136
253136
|
}
|
|
@@ -261663,4 +261663,4 @@ export {
|
|
|
261663
261663
|
CLIExitError
|
|
261664
261664
|
};
|
|
261665
261665
|
|
|
261666
|
-
//# debugId=
|
|
261666
|
+
//# debugId=FD713C2BFF2881E264756E2164756E21
|