zudoku 0.70.1 → 0.70.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/cli.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { _ as logger, a as getViteConfig, c as fileExists, g as invariant, i as getAppServerEntryPath, n as loadZudokuConfig, o as createGraphQLServer, r as getAppClientEntryPath, s as getBuildConfig, t as findOutputPathOfServerConfig, v as ZuploEnv
|
|
1
|
+
import { _ as logger, a as getViteConfig, c as fileExists, g as invariant, i as getAppServerEntryPath, n as loadZudokuConfig, o as createGraphQLServer, r as getAppClientEntryPath, s as getBuildConfig, t as findOutputPathOfServerConfig, v as ZuploEnv } from "./loader-BEcNwJgI.js";
|
|
2
2
|
import { r as runPluginTransformConfig } from "./ProtectedRoutesSchema-dJ_UMmEA.js";
|
|
3
3
|
import { t as joinUrl } from "./joinUrl-0uH36jZG.js";
|
|
4
4
|
import { t as InMemoryResponse } from "./InMemoryResponse-CKwjU7yE.js";
|
|
5
|
-
import { createWriteStream, existsSync, mkdirSync, readFileSync } from "node:fs";
|
|
6
5
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
7
6
|
import * as Sentry from "@sentry/node";
|
|
8
7
|
import { hideBin } from "yargs/helpers";
|
|
@@ -16,6 +15,7 @@ import assert from "node:assert";
|
|
|
16
15
|
import os, { homedir } from "node:os";
|
|
17
16
|
import { createIndex } from "pagefind";
|
|
18
17
|
import Piscina from "piscina";
|
|
18
|
+
import { createWriteStream, existsSync, mkdirSync, readFileSync } from "node:fs";
|
|
19
19
|
import { SitemapStream } from "sitemap";
|
|
20
20
|
import { PostHog } from "posthog-node";
|
|
21
21
|
import { createHash } from "node:crypto";
|
|
@@ -287,7 +287,7 @@ const prerender = async ({ html, dir, basePath = "", serverConfigFilename, write
|
|
|
287
287
|
redirectUrls
|
|
288
288
|
});
|
|
289
289
|
if (config.docs) {
|
|
290
|
-
const { DocsConfigSchema } = await import("./validate-
|
|
290
|
+
const { DocsConfigSchema } = await import("./validate-BCOgReCd.js");
|
|
291
291
|
const { generateLlmsTxtFiles } = await import("./llms-B9rvvqmZ.js");
|
|
292
292
|
const docsConfig = DocsConfigSchema.parse(config.docs);
|
|
293
293
|
const llmsConfig = docsConfig.llms ?? {};
|
|
@@ -408,6 +408,10 @@ function printWarningToConsole(message) {
|
|
|
408
408
|
console.error(message);
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region src/cli/common/package-json.ts
|
|
413
|
+
const getPackageJson = (path) => JSON.parse(readFileSync(path, "utf-8"));
|
|
414
|
+
|
|
411
415
|
//#endregion
|
|
412
416
|
//#region src/cli/preview/handler.ts
|
|
413
417
|
const DEFAULT_PREVIEW_PORT = 4e3;
|
|
@@ -440,7 +444,7 @@ async function preview$1(argv) {
|
|
|
440
444
|
//#endregion
|
|
441
445
|
//#region src/cli/build/handler.ts
|
|
442
446
|
async function build$1(argv) {
|
|
443
|
-
printDiagnosticsToConsole(`Starting Zudoku build v${version}`);
|
|
447
|
+
printDiagnosticsToConsole(`Starting Zudoku build v${getPackageJson(fileURLToPath(import.meta.resolve("zudoku/package.json"))).version}`);
|
|
444
448
|
printDiagnosticsToConsole("");
|
|
445
449
|
printDiagnosticsToConsole("");
|
|
446
450
|
const dir = path.resolve(process.cwd(), argv.dir);
|
|
@@ -822,6 +826,7 @@ var DevServer = class {
|
|
|
822
826
|
//#endregion
|
|
823
827
|
//#region src/cli/dev/handler.ts
|
|
824
828
|
async function dev(argv) {
|
|
829
|
+
const packageJson = getPackageJson(fileURLToPath(import.meta.resolve("zudoku/package.json")));
|
|
825
830
|
process.env.NODE_ENV = "development";
|
|
826
831
|
const server = new DevServer({
|
|
827
832
|
dir: path.resolve(process.cwd(), argv.dir),
|
|
@@ -833,7 +838,7 @@ async function dev(argv) {
|
|
|
833
838
|
const url = joinUrl(`${server.protocol}://localhost:${server.resolvedPort}`, vite.config.base);
|
|
834
839
|
printDiagnosticsToConsole("Ctrl+C to exit");
|
|
835
840
|
printDiagnosticsToConsole("");
|
|
836
|
-
printDiagnosticsToConsole(`🚀 Running Zudoku v${version}: ${url}`);
|
|
841
|
+
printDiagnosticsToConsole(`🚀 Running Zudoku v${packageJson.version}: ${url}`);
|
|
837
842
|
printDiagnosticsToConsole("");
|
|
838
843
|
let hasExited = false;
|
|
839
844
|
return new Promise((resolve) => {
|
|
@@ -1109,7 +1114,6 @@ To fix, run:
|
|
|
1109
1114
|
//#endregion
|
|
1110
1115
|
//#region src/cli/cli.ts
|
|
1111
1116
|
process.env.ZUDOKU_ENV = process.env.ZUDOKU_INTERNAL_DEV ? "internal" : "module";
|
|
1112
|
-
const getPackageJson = (path) => JSON.parse(readFileSync(path, "utf-8"));
|
|
1113
1117
|
const packageJson = getPackageJson(fileURLToPath(import.meta.resolve("zudoku/package.json")));
|
|
1114
1118
|
if (SENTRY_DSN) Sentry.init({
|
|
1115
1119
|
dsn: SENTRY_DSN,
|
|
@@ -1139,4 +1143,4 @@ try {
|
|
|
1139
1143
|
}
|
|
1140
1144
|
|
|
1141
1145
|
//#endregion
|
|
1142
|
-
export {
|
|
1146
|
+
export { };
|
|
@@ -62,10 +62,6 @@ import { headingRank } from "hast-util-heading-rank";
|
|
|
62
62
|
import { spawnSync } from "node:child_process";
|
|
63
63
|
import vm from "node:vm";
|
|
64
64
|
|
|
65
|
-
//#region package.json
|
|
66
|
-
var version = "0.70.0";
|
|
67
|
-
|
|
68
|
-
//#endregion
|
|
69
65
|
//#region src/app/ZuploBuildConfig.ts
|
|
70
66
|
const EntitlementsSchema = z.object({
|
|
71
67
|
devPortalZuploBranding: z.boolean(),
|
|
@@ -154,6 +150,10 @@ var ZudokuError = class extends Error {
|
|
|
154
150
|
}
|
|
155
151
|
};
|
|
156
152
|
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region package.json
|
|
155
|
+
var version = "0.70.1";
|
|
156
|
+
|
|
157
157
|
//#endregion
|
|
158
158
|
//#region src/lib/shiki-constants.ts
|
|
159
159
|
const defaultLanguages = [
|
|
@@ -5743,4 +5743,4 @@ async function loadZudokuConfig(configEnv, rootDir) {
|
|
|
5743
5743
|
}
|
|
5744
5744
|
|
|
5745
5745
|
//#endregion
|
|
5746
|
-
export { logger as _, getViteConfig as a, fileExists as c, FooterSchema as d, FooterSocialIcons as f, invariant as g, validateConfig as h, getAppServerEntryPath as i, CdnUrlSchema as l, ZudokuConfig as m, loadZudokuConfig as n, createGraphQLServer as o, FooterSocialSchema as p, getAppClientEntryPath as r, getBuildConfig as s, findOutputPathOfServerConfig as t, DocsConfigSchema as u, ZuploEnv as v
|
|
5746
|
+
export { logger as _, getViteConfig as a, fileExists as c, FooterSchema as d, FooterSocialIcons as f, invariant as g, validateConfig as h, getAppServerEntryPath as i, CdnUrlSchema as l, ZudokuConfig as m, loadZudokuConfig as n, createGraphQLServer as o, FooterSocialSchema as p, getAppClientEntryPath as r, getBuildConfig as s, findOutputPathOfServerConfig as t, DocsConfigSchema as u, ZuploEnv as v };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { d as FooterSchema, f as FooterSocialIcons, h as validateConfig, l as CdnUrlSchema, m as ZudokuConfig, p as FooterSocialSchema, u as DocsConfigSchema } from "./loader-
|
|
1
|
+
import { d as FooterSchema, f as FooterSocialIcons, h as validateConfig, l as CdnUrlSchema, m as ZudokuConfig, p as FooterSocialSchema, u as DocsConfigSchema } from "./loader-BEcNwJgI.js";
|
|
2
2
|
|
|
3
3
|
export { DocsConfigSchema };
|