@base44-preview/cli 0.0.54-pr.536.d47bf2a → 0.0.54-pr.536.e87c1c3
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 +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -253038,7 +253038,8 @@ async function executeCreate({
|
|
|
253038
253038
|
deploy: deploy5,
|
|
253039
253039
|
skills,
|
|
253040
253040
|
isInteractive
|
|
253041
|
-
},
|
|
253041
|
+
}, ctx) {
|
|
253042
|
+
const { log, runTask: runTask2 } = ctx;
|
|
253042
253043
|
const name2 = rawName.trim();
|
|
253043
253044
|
const resolvedPath = resolve5(projectPath);
|
|
253044
253045
|
const { projectId } = await runTask2("Setting up your project...", async () => {
|
|
@@ -253053,16 +253054,16 @@ async function executeCreate({
|
|
|
253053
253054
|
errorMessage: "Failed to create project"
|
|
253054
253055
|
});
|
|
253055
253056
|
setAppConfig({ id: projectId, projectRoot: resolvedPath });
|
|
253056
|
-
const summary = await completeProjectSetup({ projectId, name: name2, resolvedPath, deploy: deploy5, skills, isInteractive },
|
|
253057
|
+
const summary = await completeProjectSetup({ projectId, name: name2, resolvedPath, deploy: deploy5, skills, isInteractive }, ctx);
|
|
253057
253058
|
printProjectSummary(summary, log);
|
|
253058
253059
|
return { outroMessage: "Your project is set up and ready to use" };
|
|
253059
253060
|
}
|
|
253060
|
-
async function createAction(
|
|
253061
|
+
async function createAction(ctx, name2, options) {
|
|
253061
253062
|
if (name2 && !options.path) {
|
|
253062
253063
|
options.path = `./${import_kebabCase.default(name2)}`;
|
|
253063
253064
|
}
|
|
253064
253065
|
const skipPrompts = !!(options.name ?? name2) && !!options.path;
|
|
253065
|
-
if (!skipPrompts && isNonInteractive) {
|
|
253066
|
+
if (!skipPrompts && ctx.isNonInteractive) {
|
|
253066
253067
|
throw new InvalidInputError("Project name and --path are required in non-interactive mode", {
|
|
253067
253068
|
hints: [
|
|
253068
253069
|
{
|
|
@@ -253071,7 +253072,6 @@ async function createAction({ log, runTask: runTask2, isNonInteractive }, name2,
|
|
|
253071
253072
|
]
|
|
253072
253073
|
});
|
|
253073
253074
|
}
|
|
253074
|
-
const ctx = { log, runTask: runTask2 };
|
|
253075
253075
|
if (skipPrompts) {
|
|
253076
253076
|
return await createNonInteractive({ name: options.name ?? name2, ...options }, ctx);
|
|
253077
253077
|
}
|
|
@@ -261604,4 +261604,4 @@ export {
|
|
|
261604
261604
|
CLIExitError
|
|
261605
261605
|
};
|
|
261606
261606
|
|
|
261607
|
-
//# debugId=
|
|
261607
|
+
//# debugId=95AD9CC34F970E8B64756E2164756E21
|