typerighter 0.2.0 → 0.2.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/{cli-ClyVBBVW.js → cli-CfMrevh1.js} +6 -6
- package/dist/cli.js +1 -1
- package/dist/index.js +3 -3
- package/dist/node/build/index.d.ts.map +1 -1
- package/dist/node/cli/index.d.ts.map +1 -1
- package/dist/node/lib/logger.d.ts +1 -0
- package/dist/node/lib/logger.d.ts.map +1 -1
- package/dist/node/lib/typedown-context.d.ts.map +1 -1
- package/dist/node/plugin/vite/alias.d.ts +3 -0
- package/dist/node/plugin/vite/alias.d.ts.map +1 -0
- package/dist/node/plugin/vite/index.d.ts.map +1 -1
- package/dist/plugin-B-At85hl.js +1 -0
- package/dist/{vite-Di36EFu3.js → vite-BNDqb1zM.js} +25 -15
- package/dist/vite.js +2 -2
- package/package.json +3 -3
- package/dist/plugin-DStheS2n.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, c as t } from "./constants-BN1OmC7K.js";
|
|
2
|
-
import { a as n, i as r, n as i, o as a, r as o, t as s } from "./vite-
|
|
2
|
+
import { a as n, i as r, n as i, o as a, r as o, t as s } from "./vite-BNDqb1zM.js";
|
|
3
3
|
import c from "node:path";
|
|
4
4
|
import l from "node:fs/promises";
|
|
5
5
|
import { build as u, createLogger as d, createServer as f } from "vite";
|
|
@@ -60,7 +60,7 @@ async function _(e) {
|
|
|
60
60
|
}))]);
|
|
61
61
|
try {
|
|
62
62
|
let r = s();
|
|
63
|
-
n.
|
|
63
|
+
n.phase("\nPhase 1: Building client bundle...\n"), await u({
|
|
64
64
|
...e.viteConfig,
|
|
65
65
|
root: t,
|
|
66
66
|
base: d,
|
|
@@ -75,7 +75,7 @@ async function _(e) {
|
|
|
75
75
|
input: T
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
}), n.
|
|
78
|
+
}), n.phase("\nPhase 2: Building SSR bundle...\n"), await u({
|
|
79
79
|
...e.viteConfig,
|
|
80
80
|
root: t,
|
|
81
81
|
base: d,
|
|
@@ -86,7 +86,7 @@ async function _(e) {
|
|
|
86
86
|
ssr: E,
|
|
87
87
|
emptyOutDir: !0
|
|
88
88
|
}
|
|
89
|
-
}), n.
|
|
89
|
+
}), n.phase("\nPhase 3: Pre-rendering pages...\n");
|
|
90
90
|
let i = y.map((e) => {
|
|
91
91
|
let t = e.replace(/\.td$/, "");
|
|
92
92
|
return t === "index" ? "/" : `/${t}`;
|
|
@@ -116,7 +116,7 @@ async function _(e) {
|
|
|
116
116
|
})
|
|
117
117
|
]);
|
|
118
118
|
}
|
|
119
|
-
n.
|
|
119
|
+
n.phase(`\nBuild complete. Output: ${a}`);
|
|
120
120
|
}
|
|
121
121
|
async function v(e, t) {
|
|
122
122
|
let n = (await l.readdir(e, {
|
|
@@ -140,7 +140,7 @@ async function y() {
|
|
|
140
140
|
plugins: [s()]
|
|
141
141
|
});
|
|
142
142
|
await e.listen(), e.printUrls();
|
|
143
|
-
} else if (t === "build") await _({ root: n });
|
|
143
|
+
} else if (t === "build") await _({ root: n }), process.exit(0);
|
|
144
144
|
else if (t === "init") {
|
|
145
145
|
let { initialize: e } = await import("./init-0BIO3hYI.js");
|
|
146
146
|
await e(n);
|
package/dist/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./cli-
|
|
1
|
+
import { t as e } from "./cli-CfMrevh1.js";
|
|
2
2
|
export { e as cli };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./vite-
|
|
2
|
-
import "./plugin-
|
|
3
|
-
import { n as t, t as n } from "./cli-
|
|
1
|
+
import { t as e } from "./vite-BNDqb1zM.js";
|
|
2
|
+
import "./plugin-B-At85hl.js";
|
|
3
|
+
import { n as t, t as n } from "./cli-CfMrevh1.js";
|
|
4
4
|
export { t as buildSite, n as cli, e as typedown };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/build/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/build/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACE,KAAK,YAAY,EACzB,MAAM,MAAM,CAAC;AAiBd,MAAM,WAAW,YAAY;IAC3B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAGD,wBAAsB,SAAS,CAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA+HrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/cli/index.ts"],"names":[],"mappings":"AAWA,wBAAsB,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/cli/index.ts"],"names":[],"mappings":"AAWA,wBAAsB,GAAG,kBA2CxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/node/lib/logger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;kBACF,MAAM,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/node/lib/logger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;kBACF,MAAM,GAAG,IAAI;mBAIZ,MAAM,GAAG,IAAI;kBAId,MAAM,GAAG,IAAI;mBAIZ,MAAM,GAAG,IAAI;CAG9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedown-context.d.ts","sourceRoot":"","sources":["../../../src/node/lib/typedown-context.ts"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AAe,EAAE,CAAC;IAatD,SAAS,IAAK,OAAO,CAAC,MAAM,EAAE,CAAC;IAQ/B,wBAAwB,IAAK,OAAO,CAAC,aAAa,CAAC;IAgBnD,SAAS,IAAK,OAAO,CAAC,YAAY,CAAC;IASnC,WAAW,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAM/C,SAAS,CAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAYjD,WAAW,IAAK,OAAO,CAAC,MAAM,EAAE,CAAC;IAQvC,IAAI,EAAE,IAAK,gBAAgB,CAE1B;CACF;AAgDD,wBAAsB,YAAY,IAAK,OAAO,CAAC,eAAe,CAAC,CAM9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alias.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/alias.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,EACb,MAAM,MAAM,CAAC;AAKd,wBAAgB,cAAc,IAAK,YAAY,CAW9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,MAAM,EACP,MAAM,MAAM,CAAC;AAwBd,wBAAgB,QAAQ,IAAK,MAAM,EAAE,CA6KpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./vite-BNDqb1zM.js";
|
|
@@ -3,7 +3,6 @@ import { t as l$2 } from "./chunk-DfAF0w94-EwUSVR-h.js";
|
|
|
3
3
|
import { n as isLinkToPage, r as EXTERNAL_URL_RE, t as isExternal } from "./shared-DzTfF-_d.js";
|
|
4
4
|
import { r as getResourceTitle } from "./content-BM3UKxcc.js";
|
|
5
5
|
import { r as BRAND_FAVICON_URI } from "./brand-CeSqpEQ2.js";
|
|
6
|
-
import { createRequire } from "node:module";
|
|
7
6
|
import tailwindcss from "@tailwindcss/vite";
|
|
8
7
|
import vue from "@vitejs/plugin-vue";
|
|
9
8
|
import path from "node:path";
|
|
@@ -13,6 +12,7 @@ import MarkdownIt from "markdown-it";
|
|
|
13
12
|
import { createHighlighter, guessEmbeddedLanguages, isSpecialLang } from "shiki";
|
|
14
13
|
import fs from "node:fs";
|
|
15
14
|
import { URL as URL$1 } from "node:url";
|
|
15
|
+
import { createRequire } from "node:module";
|
|
16
16
|
//#region __vite-browser-external
|
|
17
17
|
var require___vite_browser_external = /* @__PURE__ */ __commonJSMin(((s, u) => {
|
|
18
18
|
u.exports = {};
|
|
@@ -8241,6 +8241,9 @@ var require_picocolors_browser = /* @__PURE__ */ __commonJSMin(((s, u) => {
|
|
|
8241
8241
|
info(s) {
|
|
8242
8242
|
console.log(import_picocolors_browser.default.cyan(s));
|
|
8243
8243
|
},
|
|
8244
|
+
phase(s) {
|
|
8245
|
+
console.log(import_picocolors_browser.default.bold(import_picocolors_browser.default.cyan(s)));
|
|
8246
|
+
},
|
|
8244
8247
|
warn(s) {
|
|
8245
8248
|
console.warn(import_picocolors_browser.default.yellow(s));
|
|
8246
8249
|
},
|
|
@@ -9486,14 +9489,13 @@ async function initializeTypedownContext() {
|
|
|
9486
9489
|
if (u === void 0 || d === void 0) throw Error("RPC server started but address/port not available");
|
|
9487
9490
|
let f = await RpcClient.connect(new URL(u).hostname, d), p = new TypedownContext(f, await createMarkdownRenderer(await f.getConfig()));
|
|
9488
9491
|
s.unref();
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
m || (m = !0, f.free(), s.close());
|
|
9492
|
+
function m() {
|
|
9493
|
+
s.close();
|
|
9492
9494
|
}
|
|
9493
|
-
return process.on("exit",
|
|
9494
|
-
|
|
9495
|
+
return process.on("exit", m), process.on("SIGINT", () => {
|
|
9496
|
+
m(), process.exit(0);
|
|
9495
9497
|
}), process.on("SIGTERM", () => {
|
|
9496
|
-
|
|
9498
|
+
m(), process.exit(0);
|
|
9497
9499
|
}), p;
|
|
9498
9500
|
}
|
|
9499
9501
|
var _tdContext;
|
|
@@ -9589,8 +9591,19 @@ export async function render(url) {
|
|
|
9589
9591
|
`;
|
|
9590
9592
|
}
|
|
9591
9593
|
//#endregion
|
|
9592
|
-
//#region src/node/plugin/vite/
|
|
9594
|
+
//#region src/node/plugin/vite/alias.ts
|
|
9593
9595
|
var require$1 = createRequire(import.meta.url);
|
|
9596
|
+
function resolveAliases() {
|
|
9597
|
+
return [{
|
|
9598
|
+
find: "vue/server-renderer",
|
|
9599
|
+
replacement: require$1.resolve("vue/server-renderer")
|
|
9600
|
+
}, {
|
|
9601
|
+
find: "vue",
|
|
9602
|
+
replacement: require$1.resolve("vue/dist/vue.runtime.esm-bundler.js")
|
|
9603
|
+
}];
|
|
9604
|
+
}
|
|
9605
|
+
//#endregion
|
|
9606
|
+
//#region src/node/plugin/vite/index.ts
|
|
9594
9607
|
function typedown() {
|
|
9595
9608
|
let s;
|
|
9596
9609
|
return [
|
|
@@ -9598,13 +9611,10 @@ function typedown() {
|
|
|
9598
9611
|
name: "vite-plugin-typedown",
|
|
9599
9612
|
enforce: "pre",
|
|
9600
9613
|
config() {
|
|
9601
|
-
return {
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
}
|
|
9605
|
-
find: "vue",
|
|
9606
|
-
replacement: require$1.resolve("vue/dist/vue.runtime.esm-bundler.js")
|
|
9607
|
-
}] } };
|
|
9614
|
+
return {
|
|
9615
|
+
resolve: { alias: resolveAliases() },
|
|
9616
|
+
ssr: { noExternal: ["typerighter"] }
|
|
9617
|
+
};
|
|
9608
9618
|
},
|
|
9609
9619
|
resolveId(s) {
|
|
9610
9620
|
if (s === "/@typedown/app" || s === "@typedown/app") return RESOLVED_VIRTUAL_APP_ID;
|
package/dist/vite.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "./vite-
|
|
2
|
-
import "./plugin-
|
|
1
|
+
import { t as e } from "./vite-BNDqb1zM.js";
|
|
2
|
+
import "./plugin-B-At85hl.js";
|
|
3
3
|
export { e as typedown };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "typerighter",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"description": "Typedown: A typed content framework.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"tailwindcss": "^4.3.3",
|
|
77
77
|
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
78
78
|
"vue": "^3.0.0",
|
|
79
|
-
"@typerighter/rpc-client": "0.2.
|
|
80
|
-
"@typerighter/rpc-server": "0.2.
|
|
79
|
+
"@typerighter/rpc-client": "0.2.2",
|
|
80
|
+
"@typerighter/rpc-server": "0.2.2"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@hdnax/nuclint": "^0.17.4",
|
package/dist/plugin-DStheS2n.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./vite-Di36EFu3.js";
|