@base44-preview/cli 0.1.33-pr.643.43257b0 → 0.1.33-pr.643.5285041
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 +10 -20
- package/dist/cli/index.js.map +7 -6
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -247641,6 +247641,13 @@ function normalizeDatetime(value) {
|
|
|
247641
247641
|
return value;
|
|
247642
247642
|
return `${value}Z`;
|
|
247643
247643
|
}
|
|
247644
|
+
// src/cli/utils/git-hash.ts
|
|
247645
|
+
function parseGitHash(value) {
|
|
247646
|
+
if (!isGitCommitHash(value)) {
|
|
247647
|
+
throw new InvalidArgumentError2("Expected a git commit hash (7-64 hex chars).");
|
|
247648
|
+
}
|
|
247649
|
+
return value;
|
|
247650
|
+
}
|
|
247644
247651
|
// src/cli/utils/json.ts
|
|
247645
247652
|
function toJsonStdout(result, options = {}) {
|
|
247646
247653
|
return `${JSON.stringify(result, null, options.compact ? undefined : 2)}
|
|
@@ -252116,12 +252123,6 @@ function printStripeResult(r, log) {
|
|
|
252116
252123
|
}
|
|
252117
252124
|
log.info(` Connectors dashboard: ${theme.colors.links(getConnectorsUrl())}`);
|
|
252118
252125
|
}
|
|
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
252126
|
|
|
252126
252127
|
// src/cli/commands/project/app-id-options.ts
|
|
252127
252128
|
function readExplicitAppId(command) {
|
|
@@ -264286,12 +264287,7 @@ function targetOption() {
|
|
|
264286
264287
|
return new Option2("--target <name>", "Environment to serve the version at");
|
|
264287
264288
|
}
|
|
264288
264289
|
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
|
-
});
|
|
264290
|
+
return new Option2("--git-hash <hash>", "Commit the build came from (defaults to the checkout's HEAD)").argParser(parseGitHash);
|
|
264295
264291
|
}
|
|
264296
264292
|
function concurrencyOption() {
|
|
264297
264293
|
return new Option2("--concurrency <n>", "Parallel file uploads").default(DEFAULT_VERSION_UPLOAD_CONCURRENCY).argParser((value) => {
|
|
@@ -264855,13 +264851,7 @@ function siteOutputDir(project) {
|
|
|
264855
264851
|
return resolve16(project.root, outputDirectory);
|
|
264856
264852
|
}
|
|
264857
264853
|
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;
|
|
264854
|
+
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
264855
|
}
|
|
264866
264856
|
function parseConcurrency(value) {
|
|
264867
264857
|
const parsed = Number(value);
|
|
@@ -274006,4 +273996,4 @@ export {
|
|
|
274006
273996
|
runCLI
|
|
274007
273997
|
};
|
|
274008
273998
|
|
|
274009
|
-
//# debugId=
|
|
273999
|
+
//# debugId=D4E502AA1650121164756E2164756E21
|