@theholocron/cli 3.33.0 → 3.33.1
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.mjs +11 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -260,6 +260,7 @@ function resolveConfig(raw) {
|
|
|
260
260
|
description: raw.description,
|
|
261
261
|
homepage,
|
|
262
262
|
org: raw.org,
|
|
263
|
+
domain: raw.domain,
|
|
263
264
|
repo: raw.repo,
|
|
264
265
|
workflows: raw.workflows,
|
|
265
266
|
providers,
|
|
@@ -3692,7 +3693,16 @@ async function runSetup(input) {
|
|
|
3692
3693
|
}));
|
|
3693
3694
|
print(formatStep(steps[steps.length - 1]));
|
|
3694
3695
|
const deployEntry = (config.workflows ?? []).map((e) => typeof e === "string" ? { name: e } : e).find((e) => e.name === "deploy");
|
|
3695
|
-
const previewCfg = deployEntry?.with ? extractPreviewConfig(deployEntry.with
|
|
3696
|
+
const previewCfg = deployEntry?.with ? extractPreviewConfig(deployEntry.with, {
|
|
3697
|
+
org: config.org,
|
|
3698
|
+
domain: config.domain
|
|
3699
|
+
}) : null;
|
|
3700
|
+
if (previewCfg) {
|
|
3701
|
+
steps.push(await runStep("deployment", `ensureProject ${previewCfg.project}`, dryRun, async () => {
|
|
3702
|
+
await deploy.ensureProject({ name: previewCfg.project });
|
|
3703
|
+
}));
|
|
3704
|
+
print(formatStep(steps[steps.length - 1]));
|
|
3705
|
+
}
|
|
3696
3706
|
if (previewCfg?.domain && deploy.ensureCustomDomain) {
|
|
3697
3707
|
const wildcardDomain = `*.${previewCfg.domain}`;
|
|
3698
3708
|
steps.push(await runStep("deployment", `ensureCustomDomain ${wildcardDomain}`, dryRun, async () => {
|