@slidev/cli 52.17.1 → 52.17.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.
@@ -1,5 +1,5 @@
1
- import { n as resolveViteConfigs } from "./serve-bAegrEOc.mjs";
2
- import { join, resolve } from "node:path";
1
+ import { n as resolveViteConfigs } from "./serve-CDMTHA3C.mjs";
2
+ import { join, resolve } from "pathe";
3
3
  import { build as build$1 } from "vite";
4
4
  import { existsSync } from "node:fs";
5
5
  import fs$1 from "node:fs/promises";
@@ -51,7 +51,7 @@ async function build(options, viteConfig = {}, args) {
51
51
  dev: true
52
52
  }));
53
53
  server.listen(port);
54
- const { exportSlides } = await import("./export-_6QaMWg2.mjs");
54
+ const { exportSlides } = await import("./export-CtL3Az7M.mjs");
55
55
  const tempDir = resolve(outDir, "temp");
56
56
  await fs$1.mkdir(tempDir, { recursive: true });
57
57
  await exportSlides({
@@ -92,7 +92,7 @@ async function build(options, viteConfig = {}, args) {
92
92
  "true",
93
93
  "auto"
94
94
  ].includes(options.data.config.download)) {
95
- const { exportSlides, getExportOptions } = await import("./export-_6QaMWg2.mjs");
95
+ const { exportSlides, getExportOptions } = await import("./export-CtL3Az7M.mjs");
96
96
  const port = 12445;
97
97
  const app = connect();
98
98
  const server = http.createServer(app);
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { i as resolveEntry, r as isInstalledGlobally } from "./resolver-BBT539iz.mjs";
2
- import { c as getThemeMeta, d as loadSetups, f as updateFrontmatterPatch, l as resolveTheme, o as resolveOptions, s as parser, t as createServer, u as version } from "./serve-bAegrEOc.mjs";
3
- import path from "node:path";
1
+ import { i as resolveEntry, r as isInstalledGlobally } from "./resolver-BV2a2pHC.mjs";
2
+ import { c as getThemeMeta, d as loadSetups, f as updateFrontmatterPatch, l as resolveTheme, o as resolveOptions, s as parser, t as createServer, u as version } from "./serve-CDMTHA3C.mjs";
4
3
  import process from "node:process";
4
+ import path from "pathe";
5
5
  import fs from "node:fs/promises";
6
6
  import { blue, bold, cyan, cyanBright, dim, gray, green, underline, yellow } from "ansis";
7
7
  import { injectPreparserExtensionLoader } from "@slidev/parser/fs";
@@ -300,7 +300,7 @@ cli.command("build [entry..]", "Build hostable SPA", (args) => exportOptions(com
300
300
  describe: "enable the inspect plugin for debugging"
301
301
  }).strict().help(), async (args) => {
302
302
  const { entry, theme, base, download, out, inspect, "without-notes": withoutNotes, "router-mode": routerMode } = args;
303
- const { build } = await import("./build-CsQUCdtJ.mjs");
303
+ const { build } = await import("./build-C6LBmXd-.mjs");
304
304
  for (const entryFile of entry) {
305
305
  const options = await resolveOptions({
306
306
  entry: entryFile,
@@ -329,7 +329,7 @@ cli.command("format [entry..]", "Format the markdown file", (args) => commonOpti
329
329
  }
330
330
  });
331
331
  cli.command("mcp [entry]", "Start an MCP (Model Context Protocol) server over stdio for AI agents to inspect and edit the slides", (args) => commonOptions(args).strict().help(), async ({ entry }) => {
332
- const { startMcpStdioServer } = await import("./stdio-CjXw2-ks.mjs");
332
+ const { startMcpStdioServer } = await import("./stdio-Cq1YeFUk.mjs");
333
333
  await startMcpStdioServer(await resolveEntry(entry));
334
334
  });
335
335
  cli.command("theme [subcommand]", "Theme related operations", (command) => {
@@ -369,7 +369,7 @@ cli.command("theme [subcommand]", "Theme related operations", (command) => {
369
369
  });
370
370
  cli.command("export [entry..]", "Export slides to PDF", (args) => exportOptions(commonOptions(args)).strict().help(), async (args) => {
371
371
  const { entry, theme } = args;
372
- const { exportSlides, getExportOptions } = await import("./export-_6QaMWg2.mjs");
372
+ const { exportSlides, getExportOptions } = await import("./export-CtL3Az7M.mjs");
373
373
  const candidatePort = await getPort(12445);
374
374
  let warned = false;
375
375
  for (const entryFile of entry) {
@@ -421,7 +421,7 @@ cli.command("export-notes [entry..]", "Export slide notes to PDF", (args) => arg
421
421
  type: "number",
422
422
  describe: "wait for the specified ms before exporting"
423
423
  }).strict().help(), async ({ entry, output, timeout, wait }) => {
424
- const { exportNotes } = await import("./export-_6QaMWg2.mjs");
424
+ const { exportNotes } = await import("./export-CtL3Az7M.mjs");
425
425
  const candidatePort = await getPort(12445);
426
426
  for (const entryFile of entry) {
427
427
  const options = await resolveOptions({ entry: entryFile }, "export");
@@ -547,7 +547,7 @@ function printInfo(options, port, base, remote, tunnelUrl, publicIp) {
547
547
  if (options.utils.define.__SLIDEV_FEATURE_PRESENTER__) console.log(`${dim(" presenter mode ")} > ${blue(`${baseUrl}${presenterPath}`)}`);
548
548
  console.log(`${dim(" slides overview ")} > ${blue(`${baseUrl}${overviewPath}`)}`);
549
549
  if (options.utils.define.__SLIDEV_FEATURE_BROWSER_EXPORTER__) console.log(`${dim(" export slides")} > ${blue(`${baseUrl}/export/`)}`);
550
- if (options.mode === "dev" && options.data.config.mcp !== false) console.log(`${dim(" mcp server (ai)")} > ${blue(`http://localhost:${bold(port)}/__mcp`)}`);
550
+ if (options.mode === "dev" && options.data.config.mcp !== false) console.log(`${dim(" mcp server ")} > ${blue(`http://localhost:${bold(port)}/__mcp`)}`);
551
551
  if (options.inspect) console.log(`${dim(" vite inspector")} > ${yellow(`${baseUrl}/__inspect/`)}`);
552
552
  let lastRemoteUrl = "";
553
553
  if (remote !== void 0) {
@@ -1,6 +1,6 @@
1
- import { n as getRoots } from "./resolver-BBT539iz.mjs";
2
- import path, { dirname, relative } from "node:path";
1
+ import { n as getRoots } from "./resolver-BV2a2pHC.mjs";
3
2
  import process from "node:process";
3
+ import path, { dirname, relative } from "pathe";
4
4
  import fs from "node:fs/promises";
5
5
  import { clearUndefined, ensureSuffix, slash } from "@antfu/utils";
6
6
  import { blue, cyan, dim, green, yellow } from "ansis";
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as createDataUtils, o as resolveOptions, r as ViteSlidevPlugin, s as parser, t as createServer } from "./serve-bAegrEOc.mjs";
1
+ import { a as createDataUtils, o as resolveOptions, r as ViteSlidevPlugin, s as parser, t as createServer } from "./serve-CDMTHA3C.mjs";
2
2
  export { ViteSlidevPlugin, createDataUtils, createServer, parser, resolveOptions };
@@ -1,5 +1,5 @@
1
- import { dirname, join, relative, resolve, sep } from "node:path";
2
1
  import process from "node:process";
2
+ import { dirname, join, relative, resolve, sep } from "pathe";
3
3
  import { existsSync, lstatSync, readdirSync, readlinkSync } from "node:fs";
4
4
  import { copyFile, readFile } from "node:fs/promises";
5
5
  import { fileURLToPath, pathToFileURL } from "node:url";
@@ -1,7 +1,7 @@
1
- import { a as resolveImportPath, c as toAtFS, i as resolveEntry, n as getRoots, o as resolveImportUrl, r as isInstalledGlobally, s as resolveSourceFiles, t as createResolver } from "./resolver-BBT539iz.mjs";
1
+ import { a as resolveImportPath, c as toAtFS, i as resolveEntry, n as getRoots, o as resolveImportUrl, r as isInstalledGlobally, s as resolveSourceFiles, t as createResolver } from "./resolver-BV2a2pHC.mjs";
2
2
  import { builtinModules } from "node:module";
3
- import path, { basename, dirname, isAbsolute, join, relative, resolve, win32 } from "node:path";
4
3
  import process from "node:process";
4
+ import path, { basename, dirname, isAbsolute, join, relative, resolve, win32 } from "pathe";
5
5
  import { createServer, loadConfigFromFile, mergeConfig, parseSync } from "vite";
6
6
  import MarkdownExit from "markdown-exit";
7
7
  import fs, { existsSync, mkdirSync, realpathSync, writeFileSync } from "node:fs";
@@ -698,7 +698,7 @@ function createLayoutWrapperPlugin({ data, utils }) {
698
698
  }
699
699
  //#endregion
700
700
  //#region package.json
701
- var version = "52.17.1";
701
+ var version = "52.17.2";
702
702
  //#endregion
703
703
  //#region node/integrations/addons.ts
704
704
  async function resolveAddons(addonsInConfig) {
@@ -1,5 +1,5 @@
1
- import { n as getRoots } from "./resolver-BBT539iz.mjs";
2
- import { i as createSlidevMcpServer, s as parser, u as version } from "./serve-bAegrEOc.mjs";
1
+ import { n as getRoots } from "./resolver-BV2a2pHC.mjs";
2
+ import { i as createSlidevMcpServer, s as parser, u as version } from "./serve-CDMTHA3C.mjs";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
4
  //#region node/mcp/stdio.ts
5
5
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
3
  "type": "module",
4
- "version": "52.17.1",
4
+ "version": "52.17.2",
5
5
  "description": "Presentation slides for developers",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -82,6 +82,7 @@
82
82
  "monaco-editor": "^0.55.1",
83
83
  "obug": "^2.1.3",
84
84
  "open": "^11.0.0",
85
+ "pathe": "^2.0.3",
85
86
  "pdf-lib": "^1.17.1",
86
87
  "picomatch": "^4.0.5",
87
88
  "plantuml-encoder": "^1.4.0",
@@ -114,9 +115,9 @@
114
115
  "yaml": "^2.9.0",
115
116
  "yargs": "^18.0.0",
116
117
  "zod": "^3.25.76",
117
- "@slidev/types": "52.17.1",
118
- "@slidev/client": "52.17.1",
119
- "@slidev/parser": "52.17.1"
118
+ "@slidev/client": "52.17.2",
119
+ "@slidev/parser": "52.17.2",
120
+ "@slidev/types": "52.17.2"
120
121
  },
121
122
  "devDependencies": {
122
123
  "@hedgedoc/markdown-it-plugins": "^2.1.4",