@base44-preview/cli 0.0.28-pr.210.d18f6fe → 0.0.28-pr.211.b9a3905
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 +11 -6
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -162160,18 +162160,20 @@ async function createArchive(pathToArchive, targetArchivePath) {
|
|
|
162160
162160
|
}
|
|
162161
162161
|
// src/core/project/deploy.ts
|
|
162162
162162
|
function hasResourcesToDeploy(projectData) {
|
|
162163
|
-
const { project, entities, functions, agents } = projectData;
|
|
162163
|
+
const { project, entities, functions, agents, connectors } = projectData;
|
|
162164
162164
|
const hasSite = Boolean(project.site?.outputDirectory);
|
|
162165
162165
|
const hasEntities = entities.length > 0;
|
|
162166
162166
|
const hasFunctions = functions.length > 0;
|
|
162167
162167
|
const hasAgents = agents.length > 0;
|
|
162168
|
-
|
|
162168
|
+
const hasConnectors = connectors.length > 0;
|
|
162169
|
+
return hasEntities || hasFunctions || hasAgents || hasConnectors || hasSite;
|
|
162169
162170
|
}
|
|
162170
162171
|
async function deployAll(projectData) {
|
|
162171
|
-
const { project, entities, functions, agents } = projectData;
|
|
162172
|
+
const { project, entities, functions, agents, connectors } = projectData;
|
|
162172
162173
|
await entityResource.push(entities);
|
|
162173
162174
|
await functionResource.push(functions);
|
|
162174
162175
|
await agentResource.push(agents);
|
|
162176
|
+
await connectorResource.push(connectors);
|
|
162175
162177
|
if (project.site?.outputDirectory) {
|
|
162176
162178
|
const outputDir = resolve(project.root, project.site.outputDirectory);
|
|
162177
162179
|
const { appUrl } = await deploySite(outputDir);
|
|
@@ -170191,7 +170193,7 @@ async function deployAction(options) {
|
|
|
170191
170193
|
outroMessage: "No resources found to deploy"
|
|
170192
170194
|
};
|
|
170193
170195
|
}
|
|
170194
|
-
const { project: project2, entities, functions, agents } = projectData;
|
|
170196
|
+
const { project: project2, entities, functions, agents, connectors } = projectData;
|
|
170195
170197
|
const summaryLines = [];
|
|
170196
170198
|
if (entities.length > 0) {
|
|
170197
170199
|
summaryLines.push(` - ${entities.length} ${entities.length === 1 ? "entity" : "entities"}`);
|
|
@@ -170202,6 +170204,9 @@ async function deployAction(options) {
|
|
|
170202
170204
|
if (agents.length > 0) {
|
|
170203
170205
|
summaryLines.push(` - ${agents.length} ${agents.length === 1 ? "agent" : "agents"}`);
|
|
170204
170206
|
}
|
|
170207
|
+
if (connectors.length > 0) {
|
|
170208
|
+
summaryLines.push(` - ${connectors.length} ${connectors.length === 1 ? "connector" : "connectors"}`);
|
|
170209
|
+
}
|
|
170205
170210
|
if (project2.site?.outputDirectory) {
|
|
170206
170211
|
summaryLines.push(` - Site from ${project2.site.outputDirectory}`);
|
|
170207
170212
|
}
|
|
@@ -170233,7 +170238,7 @@ ${summaryLines.join(`
|
|
|
170233
170238
|
return { outroMessage: "App deployed successfully" };
|
|
170234
170239
|
}
|
|
170235
170240
|
function getDeployCommand(context) {
|
|
170236
|
-
return new Command("deploy").description("Deploy all project resources (entities, functions, agents, and site)").option("-y, --yes", "Skip confirmation prompt").action(async (options) => {
|
|
170241
|
+
return new Command("deploy").description("Deploy all project resources (entities, functions, agents, connectors, and site)").option("-y, --yes", "Skip confirmation prompt").action(async (options) => {
|
|
170237
170242
|
await runCommand(() => deployAction(options), { requireAuth: true }, context);
|
|
170238
170243
|
});
|
|
170239
170244
|
}
|
|
@@ -174855,4 +174860,4 @@ export {
|
|
|
174855
174860
|
CLIExitError
|
|
174856
174861
|
};
|
|
174857
174862
|
|
|
174858
|
-
//# debugId=
|
|
174863
|
+
//# debugId=44CC07CD570B2B5A64756E2164756E21
|