@within-7/jetr 0.6.0 → 0.7.0

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.
Files changed (2) hide show
  1. package/dist/cli.js +10 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -719,9 +719,16 @@ domainCmd.command("add").description("Add a custom domain to a site").argument("
719
719
  try {
720
720
  const result = await api.addDomain(site, hostname);
721
721
  console.log(chalk2.green(`\u2713 Domain added: ${result.hostname}`));
722
- console.log();
723
- console.log(` Now set up DNS:`);
724
- console.log(` ${chalk2.cyan(result.hostname)} CNAME ${chalk2.dim(result.cname_target)}`);
722
+ if (result.route_registered) {
723
+ console.log(chalk2.green(` Route auto-registered on Cloudflare`));
724
+ }
725
+ if (result.note) {
726
+ console.log(` ${chalk2.dim(String(result.note))}`);
727
+ }
728
+ if (result.cname_target) {
729
+ console.log();
730
+ console.log(` DNS: ${chalk2.cyan(String(result.hostname))} CNAME ${chalk2.dim(String(result.cname_target))}`);
731
+ }
725
732
  console.log();
726
733
  } catch (e) {
727
734
  console.error(chalk2.red(e.message));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@within-7/jetr",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "CLI for Jetr static site hosting",
5
5
  "type": "module",
6
6
  "bin": {