@base44-preview/cli 0.1.33-pr.643.43257b0 → 0.1.33-pr.643.44738be
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 -25
- package/dist/cli/index.js.map +8 -7
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -246984,9 +246984,6 @@ async function shipCommit(projectRoot, outputDir, gitHash, options) {
|
|
|
246984
246984
|
onAssets: ({ totalAssets, newAssets }) => options?.onSiteProgress?.(`Found ${totalAssets} static assets (${newAssets} new)`)
|
|
246985
246985
|
}
|
|
246986
246986
|
});
|
|
246987
|
-
if (options?.publish === false) {
|
|
246988
|
-
return;
|
|
246989
|
-
}
|
|
246990
246987
|
try {
|
|
246991
246988
|
const { appUrl } = await publishDeployment(gitHash);
|
|
246992
246989
|
return appUrl;
|
|
@@ -247641,6 +247638,13 @@ function normalizeDatetime(value) {
|
|
|
247641
247638
|
return value;
|
|
247642
247639
|
return `${value}Z`;
|
|
247643
247640
|
}
|
|
247641
|
+
// src/cli/utils/git-hash.ts
|
|
247642
|
+
function parseGitHash(value) {
|
|
247643
|
+
if (!isGitCommitHash(value)) {
|
|
247644
|
+
throw new InvalidArgumentError2("Expected a git commit hash (7-64 hex chars).");
|
|
247645
|
+
}
|
|
247646
|
+
return value;
|
|
247647
|
+
}
|
|
247644
247648
|
// src/cli/utils/json.ts
|
|
247645
247649
|
function toJsonStdout(result, options = {}) {
|
|
247646
247650
|
return `${JSON.stringify(result, null, options.compact ? undefined : 2)}
|
|
@@ -252056,7 +252060,6 @@ ${summaryLines.join(`
|
|
|
252056
252060
|
let actorCompleted = 0;
|
|
252057
252061
|
const result = await deployAll(projectData, {
|
|
252058
252062
|
gitHash: options.gitHash,
|
|
252059
|
-
publish: options.publish,
|
|
252060
252063
|
onSiteProgress: (message) => {
|
|
252061
252064
|
log.message(theme.styles.dim(message));
|
|
252062
252065
|
},
|
|
@@ -252095,7 +252098,7 @@ ${summaryLines.join(`
|
|
|
252095
252098
|
return { outroMessage: "App deployed successfully" };
|
|
252096
252099
|
}
|
|
252097
252100
|
function getDeployCommand3() {
|
|
252098
|
-
return new Base44Command("deploy").description("Deploy all project resources (entities, functions, actors, agents, connectors, and site)").option("-y, --yes", "Skip confirmation prompt").option("--build", "Build the site before deploying (skips the prompt)").option("--no-build", "Deploy without building (skips the prompt)").
|
|
252101
|
+
return new Base44Command("deploy").description("Deploy all project resources (entities, functions, actors, agents, connectors, and site)").option("-y, --yes", "Skip confirmation prompt").option("--build", "Build the site before deploying (skips the prompt)").option("--no-build", "Deploy without building (skips the prompt)").addOption(new Option2("--git-hash <hash>", "Commit the built site came from (defaults to the checkout's HEAD)").argParser(parseGitHash)).action(deployAction);
|
|
252099
252102
|
}
|
|
252100
252103
|
async function handleOAuthConnectors(connectorResults, isNonInteractive, options, log) {
|
|
252101
252104
|
const needsOAuth = filterPendingOAuth(connectorResults);
|
|
@@ -252116,12 +252119,6 @@ function printStripeResult(r, log) {
|
|
|
252116
252119
|
}
|
|
252117
252120
|
log.info(` Connectors dashboard: ${theme.colors.links(getConnectorsUrl())}`);
|
|
252118
252121
|
}
|
|
252119
|
-
function parseGitHash(value) {
|
|
252120
|
-
if (!isGitCommitHash(value)) {
|
|
252121
|
-
throw new InvalidArgumentError2("Expected a git commit hash (7-64 hex chars).");
|
|
252122
|
-
}
|
|
252123
|
-
return value;
|
|
252124
|
-
}
|
|
252125
252122
|
|
|
252126
252123
|
// src/cli/commands/project/app-id-options.ts
|
|
252127
252124
|
function readExplicitAppId(command) {
|
|
@@ -264286,12 +264283,7 @@ function targetOption() {
|
|
|
264286
264283
|
return new Option2("--target <name>", "Environment to serve the version at");
|
|
264287
264284
|
}
|
|
264288
264285
|
function gitHashOption() {
|
|
264289
|
-
return new Option2("--git-hash <hash>", "Commit the build came from (defaults to the checkout's HEAD)").argParser(
|
|
264290
|
-
if (!isGitCommitHash(value)) {
|
|
264291
|
-
throw new InvalidArgumentError2("Expected a git commit hash (7-64 hex chars).");
|
|
264292
|
-
}
|
|
264293
|
-
return value;
|
|
264294
|
-
});
|
|
264286
|
+
return new Option2("--git-hash <hash>", "Commit the build came from (defaults to the checkout's HEAD)").argParser(parseGitHash);
|
|
264295
264287
|
}
|
|
264296
264288
|
function concurrencyOption() {
|
|
264297
264289
|
return new Option2("--concurrency <n>", "Parallel file uploads").default(DEFAULT_VERSION_UPLOAD_CONCURRENCY).argParser((value) => {
|
|
@@ -264855,13 +264847,7 @@ function siteOutputDir(project) {
|
|
|
264855
264847
|
return resolve16(project.root, outputDirectory);
|
|
264856
264848
|
}
|
|
264857
264849
|
function getSiteDeployCommand() {
|
|
264858
|
-
return new Base44Command("deploy").description("Deploy built site files to Base44 hosting").option("-y, --yes", "Skip confirmation prompt").option("--build", "Build the site before deploying (skips the prompt)").option("--no-build", "Deploy without building (skips the prompt)").option("--publish", "Serve this build in production once it is deployed").addOption(new Option2("--git-hash <hash>", "Commit the build came from (defaults to the checkout's HEAD)").argParser(
|
|
264859
|
-
}
|
|
264860
|
-
function parseGitHash2(value) {
|
|
264861
|
-
if (!isGitCommitHash(value)) {
|
|
264862
|
-
throw new InvalidArgumentError2("Expected a git commit hash (7-64 hex chars).");
|
|
264863
|
-
}
|
|
264864
|
-
return value;
|
|
264850
|
+
return new Base44Command("deploy").description("Deploy built site files to Base44 hosting").option("-y, --yes", "Skip confirmation prompt").option("--build", "Build the site before deploying (skips the prompt)").option("--no-build", "Deploy without building (skips the prompt)").option("--publish", "Serve this build in production once it is deployed").addOption(new Option2("--git-hash <hash>", "Commit the build came from (defaults to the checkout's HEAD)").argParser(parseGitHash)).addOption(new Option2("--concurrency <n>", "Parallel asset uploads").default(DEFAULT_UPLOAD_CONCURRENCY).argParser(parseConcurrency)).action(deployAction2);
|
|
264865
264851
|
}
|
|
264866
264852
|
function parseConcurrency(value) {
|
|
264867
264853
|
const parsed = Number(value);
|
|
@@ -274006,4 +273992,4 @@ export {
|
|
|
274006
273992
|
runCLI
|
|
274007
273993
|
};
|
|
274008
273994
|
|
|
274009
|
-
//# debugId=
|
|
273995
|
+
//# debugId=F146228674371CF664756E2164756E21
|