@theholocron/cli 3.45.3 → 3.45.5

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.
@@ -569,6 +569,7 @@ interface DnsRecord {
569
569
  content: string;
570
570
  ttl?: number;
571
571
  priority?: number;
572
+ proxied?: boolean;
572
573
  }
573
574
  interface Dns extends ProviderIdentity {
574
575
  readonly key: "dns";
package/dist/cli.mjs CHANGED
@@ -3251,7 +3251,7 @@ var test_default$1 = "name: Test\n\non: # yamllint disable-line rule:truthy\n p
3251
3251
  var typecheck_default$1 = "name: Typecheck\n\non: # yamllint disable-line rule:truthy\n push:\n branches: [main, alpha]\n pull_request:\n\nconcurrency:\n group: typecheck-${{ github.ref }}\n cancel-in-progress: true\n\npermissions:\n contents: read\n\njobs:\n typecheck:\n name: Typecheck\n uses: theholocron/.github/.github/workflows/typecheck.yml@main\n secrets: inherit\n";
3252
3252
  //#endregion
3253
3253
  //#region src/commands/workflows/wiki.yml
3254
- var wiki_default$1 = "name: Wiki\n\non: # yamllint disable-line rule:truthy\n push:\n branches: [main]\n pull_request:\n branches: [main]\n\nconcurrency:\n group: ${{ github.event_name == 'pull_request' && format('wiki-preview-{0}', github.event.pull_request.number) || 'wiki' }}\n cancel-in-progress: ${{ github.event_name == 'pull_request' }}\n\npermissions:\n contents: read\n\njobs:\n publish:\n name: Publish\n if: ${{ github.event_name != 'pull_request' }}\n uses: theholocron/.github/.github/workflows/wiki.yml@main\n secrets: inherit\n\n preview:\n name: Preview\n if: ${{ github.event_name == 'pull_request' }}\n uses: theholocron/.github/.github/workflows/wiki.yml@main\n with:\n preview: true\n preview-id: pr-${{ github.event.pull_request.number }}\n secrets: inherit\n";
3254
+ var wiki_default$1 = "name: Wiki\n\non: # yamllint disable-line rule:truthy\n push:\n branches: [main]\n pull_request:\n branches: [main]\n\nconcurrency:\n group: ${{ github.event_name == 'pull_request' && format('wiki-preview-{0}', github.event.pull_request.number) || 'wiki' }}\n cancel-in-progress: ${{ github.event_name == 'pull_request' }}\n\npermissions:\n contents: read\n deployments: write\n\njobs:\n publish:\n name: Publish\n if: ${{ github.event_name != 'pull_request' }}\n uses: theholocron/.github/.github/workflows/wiki.yml@main\n secrets: inherit\n\n preview:\n name: Preview\n if: ${{ github.event_name == 'pull_request' }}\n uses: theholocron/.github/.github/workflows/wiki.yml@main\n with:\n preview: true\n preview-id: pr-${{ github.event.pull_request.number }}\n secrets: inherit\n";
3255
3255
  //#endregion
3256
3256
  //#region src/commands/setup-workflows.ts
3257
3257
  /**
@@ -4236,6 +4236,7 @@ async function runSetup(input) {
4236
4236
  }));
4237
4237
  print(formatStep(steps[steps.length - 1]));
4238
4238
  const wikiDns = wiki.dnsRecord?.();
4239
+ const wikiProxy = wiki.proxyConfig?.();
4239
4240
  if (wikiDns && loader.has("dns")) {
4240
4241
  const dns = loader.get("dns");
4241
4242
  steps.push(await runStep("dns", `upsertRecord ${wikiDns.cname}`, dryRun, async () => {
@@ -4243,12 +4244,12 @@ async function runSetup(input) {
4243
4244
  type: "CNAME",
4244
4245
  name: wikiDns.cname,
4245
4246
  content: wikiDns.target,
4246
- ttl: 1
4247
+ ttl: 1,
4248
+ ...wikiProxy ? { proxied: true } : {}
4247
4249
  });
4248
4250
  }));
4249
4251
  print(formatStep(steps[steps.length - 1]));
4250
4252
  }
4251
- const wikiProxy = wiki.proxyConfig?.();
4252
4253
  if (wikiProxy && wikiDns && loader.has("workers")) {
4253
4254
  const workers = loader.get("workers");
4254
4255
  steps.push(await runStep("workers", `upsertProxy ${wikiDns.cname}`, dryRun, async () => {