typerighter 0.40.1 → 0.40.3

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.
@@ -1,4 +1,4 @@
1
- import { r as e, t } from "./vite-Djs3IU9Y.js";
1
+ import { r as e, t } from "./vite-D6x3T--t.js";
2
2
  import { n } from "./context-CNTdcpo4.js";
3
3
  import r from "node:path";
4
4
  import i from "picocolors";
@@ -363,7 +363,7 @@ function k() {
363
363
  }), process.on("unhandledRejection", (e) => {
364
364
  A("runtime", e instanceof Error ? e : Error(String(e)));
365
365
  }), i.command("[root]", "Start dev server").alias("dev").option("--port <port>", "Port to listen on").option("--host", "Expose to network").option("--fresh", "Start fresh, ignore cache from previous session").option("--verbose", "Print version and build info").action(async (e, n) => {
366
- n.verbose && console.log(`${O} cli v0.40.1 (built 9/24/2026, 5:24:01 AM)\n`), n.fresh && (process.env.TYPEDOWN_NO_CACHE = "1");
366
+ n.verbose && console.log(`${O} cli v0.40.3 (built 9/27/2026, 7:37:35 AM)\n`), n.fresh && (process.env.TYPEDOWN_NO_CACHE = "1");
367
367
  let r = await a({
368
368
  root: M(e),
369
369
  configFile: !1,
@@ -388,7 +388,7 @@ function k() {
388
388
  }
389
389
  process.exit(0);
390
390
  }), i.command("init [root]", "Scaffold a new project").option("--name <name>", "Project name").option("--title <title>", "Site title").option("--description <description>", "Site description").option("--yes", "Skip confirmation for existing projects").action(async (e, t) => {
391
- let { initialize: n } = await import("./init-YypOGdjI.js");
391
+ let { initialize: n } = await import("./init-Dq6msKwz.js");
392
392
  await n(M(e), t);
393
393
  }), i.command("preview [root]", "Preview production build").option("--port <port>", "Port to listen on").action(async (e, t) => {
394
394
  let r = M(e), i = n(r);
@@ -426,7 +426,7 @@ function k() {
426
426
  } finally {
427
427
  i.dispose();
428
428
  }
429
- }), i.help(), i.version("0.40.1"), i.parse();
429
+ }), i.help(), i.version("0.40.3"), i.parse();
430
430
  }
431
431
  function A(e, t) {
432
432
  let n = t instanceof Error ? t.message : String(t);
@@ -434,7 +434,7 @@ function A(e, t) {
434
434
  }
435
435
  async function j(e) {
436
436
  let t = await (await e.getTdContext()).rpc.getVersion();
437
- console.log(`${O} cli v0.40.1 (built 9/24/2026, 5:24:01 AM)`), console.log(`${O} rpc v${t}`), console.log("");
437
+ console.log(`${O} cli v0.40.3 (built 9/27/2026, 7:37:35 AM)`), console.log(`${O} rpc v${t}`), console.log("");
438
438
  }
439
439
  function M(e) {
440
440
  return r.resolve(e ?? process.cwd());
package/dist/cli.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./cli-CPY9dpTQ.js";
1
+ import { t as e } from "./cli-DQKf3is3.js";
2
2
  export { e as cli };
@@ -1493,7 +1493,7 @@ var ni = {
1493
1493
  onClick: o
1494
1494
  }, K(t.value ? "show less" : `+${a.value} more`), 1)) : F("", !0)]));
1495
1495
  }
1496
- }), [["__scopeId", "data-v-e838ea77"]]), _i = [
1496
+ }), [["__scopeId", "data-v-d8bb2881"]]), _i = [
1497
1497
  {
1498
1498
  fg: "#a0522d",
1499
1499
  bg: "rgba(160, 82, 45, 0.1)"
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as e, r as t, t as n } from "./vite-Djs3IU9Y.js";
2
- import { t as r } from "./cli-CPY9dpTQ.js";
1
+ import { n as e, r as t, t as n } from "./vite-D6x3T--t.js";
2
+ import { t as r } from "./cli-DQKf3is3.js";
3
3
  export { t as buildSite, r as cli, e as generateClientAppEntry, n as typedown };
@@ -750,7 +750,7 @@ function He(e) {
750
750
  build: "typerighter build",
751
751
  preview: "typerighter preview"
752
752
  },
753
- devDependencies: { typerighter: "^0.40.1" }
753
+ devDependencies: { typerighter: "^0.40.3" }
754
754
  }, void 0, 2) + "\n";
755
755
  }
756
756
  function Ue() {
@@ -1,7 +1,7 @@
1
1
  import { U as e, c as t, i as n } from "./shared-LPNgvigl.js";
2
2
  //#region src/node/lib/htmlTemplate.ts
3
3
  function r(e) {
4
- let n = t(e.title), r = t(e.description), i = e.siteTitle !== void 0 && e.title !== e.siteTitle ? `${n} - ${t(e.siteTitle)}` : n, a = e.origin ?? "", o = e.canonicalUrl === void 0 ? void 0 : a + e.canonicalUrl, s = o === void 0 ? "" : `\n <link rel="canonical" href="${t(o)}">`, c = o === void 0 ? "" : `\n <meta property="og:url" content="${t(o)}">`, l = e.ogImagePath === void 0 ? `${a}${e.base}og-image.png` : `${a}${e.base}${e.ogImagePath}`, u = e.author === void 0 ? "" : `\n <meta name="author" content="${t(e.author)}">`, d = e.siteTitle === void 0 ? "" : `\n <meta property="og:site_name" content="${t(e.siteTitle)}">`, f = a === "" ? "" : `\n <link rel="alternate" type="application/rss+xml" title="${e.siteTitle === void 0 ? "RSS Feed" : t(e.siteTitle)}" href="${a}${e.base}feed.xml">`, p = (e.jsonLdBlocks ?? []).map((e) => `\n <script type="application/ld+json">${e}<\/script>`).join(""), m = e.headExtra === void 0 ? "" : e.headExtra + "\n";
4
+ let n = t(e.title), r = t(e.description), i = e.siteTitle !== void 0 && e.title !== e.siteTitle ? `${n} - ${t(e.siteTitle)}` : n, a = e.origin ?? "", o = e.canonicalUrl === void 0 ? void 0 : a + e.canonicalUrl, s = o === void 0 ? "" : `\n <link rel="canonical" href="${t(o)}">`, c = o === void 0 ? "" : `\n <meta property="og:url" content="${t(o)}">`, l = e.ogImagePath === void 0 ? `${a}${e.base}og-image.png` : `${a}${e.ogImagePath}`, u = e.author === void 0 ? "" : `\n <meta name="author" content="${t(e.author)}">`, d = e.siteTitle === void 0 ? "" : `\n <meta property="og:site_name" content="${t(e.siteTitle)}">`, f = a === "" ? "" : `\n <link rel="alternate" type="application/rss+xml" title="${e.siteTitle === void 0 ? "RSS Feed" : t(e.siteTitle)}" href="${a}${e.base}feed.xml">`, p = (e.jsonLdBlocks ?? []).map((e) => `\n <script type="application/ld+json">${e}<\/script>`).join(""), m = e.headExtra === void 0 ? "" : e.headExtra + "\n";
5
5
  return `<!DOCTYPE html>
6
6
  <html lang="${e.lang ?? "en"}">
7
7
  <head>
@@ -1,5 +1,5 @@
1
1
  import { N as e } from "./shared-LPNgvigl.js";
2
- import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./jsonld-e_0GNJdS.js";
2
+ import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./jsonld-Dxk0xvAr.js";
3
3
  import { pathToFileURL as c } from "node:url";
4
4
  import { parentPort as l, workerData as u } from "node:worker_threads";
5
5
  //#region src/node/build/prerenderWorker.ts