typerighter 0.12.0 → 0.12.2
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/{app-C35j_dTB.js → app-5DaKZ6wW.js} +1 -1
- package/dist/{cli-Be6WWIHS.js → cli-CrhTEDdv.js} +12 -12
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +413 -406
- package/dist/client.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{init-Cr4wOumz.js → init-DXSnwZBc.js} +3 -3
- package/dist/node/plugin/vite/index.d.ts.map +1 -1
- package/dist/shared/utils/path.d.ts +1 -0
- package/dist/shared/utils/path.d.ts.map +1 -1
- package/dist/{shared-xivlz-gA.js → shared-D_aJCGWs.js} +59 -55
- package/dist/shared.js +2 -2
- package/dist/{vite-sjqEapXH.js → vite-BqxagMts.js} +25 -10
- package/dist/vite.js +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as e, _ as t, v as n, w as r } from "./shared-
|
|
1
|
+
import { E as e, _ as t, v as n, w as r } from "./shared-D_aJCGWs.js";
|
|
2
2
|
import { Fragment as i, computed as a, createApp as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, h as f, inject as p, markRaw as m, mergeProps as h, nextTick as g, openBlock as _, provide as v, reactive as ee, readonly as y, ref as b, renderList as x, renderSlot as S, shallowRef as C, toDisplayString as w, unref as T, watch as te, withKeys as E, withModifiers as D } from "vue";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@lucide+vue@1.30.0_vue@3.5.40_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/utils/isEmptyString.mjs
|
|
4
4
|
var O = (e) => e === "", ne = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), k = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), re = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), ie = (e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import { a as s, n as c, t as l } from "./vite-
|
|
1
|
+
import { A as e, L as t, N as n, R as r, d as i, f as a, s as o } from "./shared-D_aJCGWs.js";
|
|
2
|
+
import { a as s, n as c, t as l } from "./vite-BqxagMts.js";
|
|
3
3
|
import u from "node:fs";
|
|
4
4
|
import d from "node:path";
|
|
5
5
|
import f from "picocolors";
|
|
@@ -93,7 +93,7 @@ function b(e) {
|
|
|
93
93
|
//#region src/node/build/index.ts
|
|
94
94
|
var x = "typerighter/client/theme-default";
|
|
95
95
|
async function S(e, t = {}) {
|
|
96
|
-
let { root:
|
|
96
|
+
let { root: r, logger: a } = e, o = d.resolve(r, t.outDir ?? "dist"), s = t.base ?? "/", u = d.join(o, ".client"), f = d.join(o, ".server");
|
|
97
97
|
await h.rm(o, {
|
|
98
98
|
recursive: !0,
|
|
99
99
|
force: !0
|
|
@@ -106,7 +106,7 @@ async function S(e, t = {}) {
|
|
|
106
106
|
]), D = await Promise.all(S.map(async (e) => [e, (await m.getSchema(e)).properties])), O = Object.fromEntries(D), k = i(Object.values(b).flat()), A = JSON.stringify({
|
|
107
107
|
title: _.siteTitle,
|
|
108
108
|
description: _.siteDescription
|
|
109
|
-
}), j = JSON.stringify({ contentTree: k }), M = d.join(
|
|
109
|
+
}), j = JSON.stringify({ contentTree: k }), M = d.join(r, "node_modules", ".typerighter");
|
|
110
110
|
await h.mkdir(M, { recursive: !0 });
|
|
111
111
|
let N = d.join(M, "client-entry.js"), P = d.join(M, "ssr-entry.js");
|
|
112
112
|
await Promise.all([h.writeFile(N, l({
|
|
@@ -126,7 +126,7 @@ async function S(e, t = {}) {
|
|
|
126
126
|
let i = c({ context: e }), l = e.createViteLogger(), m = new y(a, "Building client bundle...");
|
|
127
127
|
await p({
|
|
128
128
|
...t.viteConfig,
|
|
129
|
-
root:
|
|
129
|
+
root: r,
|
|
130
130
|
base: s,
|
|
131
131
|
plugins: i,
|
|
132
132
|
customLogger: l,
|
|
@@ -147,7 +147,7 @@ async function S(e, t = {}) {
|
|
|
147
147
|
let x = new y(a, "Building SSR bundle...");
|
|
148
148
|
await p({
|
|
149
149
|
...t.viteConfig,
|
|
150
|
-
root:
|
|
150
|
+
root: r,
|
|
151
151
|
base: s,
|
|
152
152
|
plugins: i,
|
|
153
153
|
customLogger: l,
|
|
@@ -160,7 +160,7 @@ async function S(e, t = {}) {
|
|
|
160
160
|
}
|
|
161
161
|
}), x.done("SSR bundle");
|
|
162
162
|
let S = v.map((e) => {
|
|
163
|
-
let t =
|
|
163
|
+
let t = n(e);
|
|
164
164
|
return t === "index" ? "/" : `/${t}`;
|
|
165
165
|
});
|
|
166
166
|
S.push("/"), E(k.children, "", S);
|
|
@@ -177,7 +177,7 @@ async function S(e, t = {}) {
|
|
|
177
177
|
let D = T(S, s);
|
|
178
178
|
await h.writeFile(d.join(o, "sitemap.xml"), D);
|
|
179
179
|
let O = d.join(u, "assets"), A = d.join(o, "assets");
|
|
180
|
-
await h.cp(O, A, { recursive: !0 }).catch(() => {}), await w(d.join(
|
|
180
|
+
await h.cp(O, A, { recursive: !0 }).catch(() => {}), await w(d.join(r, _.rootDir), o);
|
|
181
181
|
} finally {
|
|
182
182
|
await Promise.all([
|
|
183
183
|
h.rm(M, {
|
|
@@ -197,7 +197,7 @@ async function S(e, t = {}) {
|
|
|
197
197
|
a.log(`\nBuild complete. Output: ${o}`);
|
|
198
198
|
}
|
|
199
199
|
function C(e) {
|
|
200
|
-
let
|
|
200
|
+
let n = `/${e.rootDir}/${r}`, i = JSON.parse(e.siteConfig), o = JSON.parse(e.siteData), s = a((o.contentTree ?? {
|
|
201
201
|
rootItems: [],
|
|
202
202
|
children: []
|
|
203
203
|
}).children ?? [], i.title ?? ""), c = JSON.stringify({
|
|
@@ -212,7 +212,7 @@ import { renderToString } from 'vue/server-renderer';
|
|
|
212
212
|
import { h } from 'vue';
|
|
213
213
|
import theme from '${e.layoutImport}';
|
|
214
214
|
|
|
215
|
-
const pages = import.meta.glob('${
|
|
215
|
+
const pages = import.meta.glob('${n}', { eager: true });
|
|
216
216
|
const contentExts = ${JSON.stringify(t)};
|
|
217
217
|
const siteData = ${c};
|
|
218
218
|
|
|
@@ -652,7 +652,7 @@ function Y() {
|
|
|
652
652
|
n.dispose();
|
|
653
653
|
}
|
|
654
654
|
}), e.command("init [root]", "Scaffold a new project").action(async (e) => {
|
|
655
|
-
let { initialize: t } = await import("./init-
|
|
655
|
+
let { initialize: t } = await import("./init-DXSnwZBc.js");
|
|
656
656
|
await t(Z(e));
|
|
657
657
|
}), e.command("preview [root]", "Preview production build").option("--port <port>", "Port to listen on").action(async (e, t) => {
|
|
658
658
|
let { preview: n } = await import("vite");
|
|
@@ -682,7 +682,7 @@ function Y() {
|
|
|
682
682
|
} finally {
|
|
683
683
|
n.dispose();
|
|
684
684
|
}
|
|
685
|
-
}), e.help(), e.version("0.12.
|
|
685
|
+
}), e.help(), e.version("0.12.2"), e.parse();
|
|
686
686
|
}
|
|
687
687
|
function X(e, t) {
|
|
688
688
|
let n = t instanceof Error ? t.message : String(t);
|
package/dist/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./cli-
|
|
1
|
+
import { t as e } from "./cli-CrhTEDdv.js";
|
|
2
2
|
export { e as cli };
|