@slidev/cli 52.10.1 → 52.11.0

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 "./resolver-cMXpGVIO.mjs";
2
- import { t as resolveViteConfigs } from "./shared-De_Cvun-.mjs";
1
+ import "./resolver-B4CxEjJF.mjs";
2
+ import { t as resolveViteConfigs } from "./shared-CgeZlMwz.mjs";
3
3
  import { join, resolve } from "node:path";
4
4
  import { build as build$1 } from "vite";
5
5
  import { existsSync } from "node:fs";
@@ -45,7 +45,7 @@ async function build(options, viteConfig = {}, args) {
45
45
  dev: true
46
46
  }));
47
47
  server.listen(port);
48
- const { exportSlides } = await import("./export-D88qOzFM.mjs");
48
+ const { exportSlides } = await import("./export-C4evmDwN.mjs");
49
49
  const tempDir = resolve(outDir, "temp");
50
50
  await fs$1.mkdir(tempDir, { recursive: true });
51
51
  await exportSlides({
@@ -86,7 +86,7 @@ async function build(options, viteConfig = {}, args) {
86
86
  "true",
87
87
  "auto"
88
88
  ].includes(options.data.config.download)) {
89
- const { exportSlides, getExportOptions } = await import("./export-D88qOzFM.mjs");
89
+ const { exportSlides, getExportOptions } = await import("./export-C4evmDwN.mjs");
90
90
  const port = 12445;
91
91
  const app = connect();
92
92
  const server = http.createServer(app);
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { i as resolveEntry, n as getRoots, r as isInstalledGlobally } from "./resolver-cMXpGVIO.mjs";
2
- import { a as parser, c as resolveAddons, d as updateFrontmatterPatch, i as resolveOptions, l as version, o as getThemeMeta, s as resolveTheme, u as loadSetups } from "./shared-De_Cvun-.mjs";
3
- import { t as createServer } from "./serve-ur4n2Inh.mjs";
1
+ import { i as resolveEntry, n as getRoots, r as isInstalledGlobally } from "./resolver-B4CxEjJF.mjs";
2
+ import { a as parser, c as resolveAddons, d as updateFrontmatterPatch, i as resolveOptions, l as version, o as getThemeMeta, s as resolveTheme, u as loadSetups } from "./shared-CgeZlMwz.mjs";
3
+ import { t as createServer } from "./serve-udAIfMac.mjs";
4
4
  import path from "node:path";
5
5
  import process from "node:process";
6
6
  import fs from "node:fs/promises";
@@ -291,7 +291,7 @@ cli.command("build [entry..]", "Build hostable SPA", (args) => exportOptions(com
291
291
  describe: "enable the inspect plugin for debugging"
292
292
  }).strict().help(), async (args) => {
293
293
  const { entry, theme, base, download, out, inspect, "without-notes": withoutNotes } = args;
294
- const { build } = await import("./build-CuFwQdAK.mjs");
294
+ const { build } = await import("./build-BJjR3gkg.mjs");
295
295
  for (const entryFile of entry) {
296
296
  const options = await resolveOptions({
297
297
  entry: entryFile,
@@ -355,7 +355,7 @@ cli.command("theme [subcommand]", "Theme related operations", (command) => {
355
355
  });
356
356
  cli.command("export [entry..]", "Export slides to PDF", (args) => exportOptions(commonOptions(args)).strict().help(), async (args) => {
357
357
  const { entry, theme } = args;
358
- const { exportSlides, getExportOptions } = await import("./export-D88qOzFM.mjs");
358
+ const { exportSlides, getExportOptions } = await import("./export-C4evmDwN.mjs");
359
359
  const port = await getPort(12445);
360
360
  let warned = false;
361
361
  for (const entryFile of entry) {
@@ -402,7 +402,7 @@ cli.command("export-notes [entry..]", "Export slide notes to PDF", (args) => arg
402
402
  type: "number",
403
403
  describe: "wait for the specified ms before exporting"
404
404
  }).strict().help(), async ({ entry, output, timeout, wait }) => {
405
- const { exportNotes } = await import("./export-D88qOzFM.mjs");
405
+ const { exportNotes } = await import("./export-C4evmDwN.mjs");
406
406
  const port = await getPort(12445);
407
407
  for (const entryFile of entry) {
408
408
  const options = await resolveOptions({ entry: entryFile }, "export");
@@ -1,4 +1,4 @@
1
- import { n as getRoots } from "./resolver-cMXpGVIO.mjs";
1
+ import { n as getRoots } from "./resolver-B4CxEjJF.mjs";
2
2
  import path, { dirname, relative } from "node:path";
3
3
  import process from "node:process";
4
4
  import fs from "node:fs/promises";
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import "./resolver-cMXpGVIO.mjs";
2
- import { a as parser, i as resolveOptions, n as ViteSlidevPlugin, r as createDataUtils } from "./shared-De_Cvun-.mjs";
3
- import { t as createServer } from "./serve-ur4n2Inh.mjs";
1
+ import "./resolver-B4CxEjJF.mjs";
2
+ import { a as parser, i as resolveOptions, n as ViteSlidevPlugin, r as createDataUtils } from "./shared-CgeZlMwz.mjs";
3
+ import { t as createServer } from "./serve-udAIfMac.mjs";
4
4
 
5
5
  export { ViteSlidevPlugin, createDataUtils, createServer, parser, resolveOptions };
@@ -94,7 +94,7 @@ function createResolver(type, officials) {
94
94
  if (name[0] === "." || name[0] !== "@" && name.includes("/")) return [name, resolve(dirname(importer), name)];
95
95
  {
96
96
  const possiblePkgNames = [name];
97
- if (!name.includes("/") && !name.startsWith("@")) possiblePkgNames.push(`@slidev/${type}-${name}`, `slidev-${type}-${name}`);
97
+ if (!name.includes("/") && !name.startsWith("@")) possiblePkgNames.unshift(`@slidev/${type}-${name}`, `slidev-${type}-${name}`);
98
98
  for (const pkgName$1 of possiblePkgNames) {
99
99
  const pkgRoot = await findPkgRoot(pkgName$1, importer);
100
100
  if (pkgRoot) return [pkgName$1, pkgRoot];
@@ -1,4 +1,4 @@
1
- import { t as resolveViteConfigs } from "./shared-De_Cvun-.mjs";
1
+ import { t as resolveViteConfigs } from "./shared-CgeZlMwz.mjs";
2
2
  import { join } from "node:path";
3
3
  import process from "node:process";
4
4
  import { createServer } from "vite";
@@ -1,4 +1,4 @@
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-cMXpGVIO.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-B4CxEjJF.mjs";
2
2
  import { builtinModules } from "node:module";
3
3
  import path, { basename, dirname, join, relative, resolve } from "node:path";
4
4
  import { loadConfigFromFile, mergeConfig } from "vite";
@@ -504,7 +504,7 @@ function createLayoutWrapperPlugin({ data, utils }) {
504
504
 
505
505
  //#endregion
506
506
  //#region package.json
507
- var version = "52.10.1";
507
+ var version = "52.11.0";
508
508
 
509
509
  //#endregion
510
510
  //#region node/integrations/addons.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
3
  "type": "module",
4
- "version": "52.10.1",
4
+ "version": "52.11.0",
5
5
  "description": "Presentation slides for developers",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -42,17 +42,17 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@antfu/ni": "^27.0.1",
45
+ "@antfu/ni": "^28.0.0",
46
46
  "@antfu/utils": "^9.3.0",
47
- "@iconify-json/carbon": "^1.2.14",
47
+ "@iconify-json/carbon": "^1.2.15",
48
48
  "@iconify-json/ph": "^1.2.2",
49
49
  "@iconify-json/svg-spinners": "^1.2.4",
50
50
  "@lillallol/outline-pdf": "^4.0.0",
51
- "@shikijs/markdown-it": "^3.17.0",
52
- "@shikijs/twoslash": "^3.17.0",
53
- "@shikijs/vitepress-twoslash": "^3.17.0",
54
- "@unocss/extractor-mdc": "^66.5.9",
55
- "@unocss/reset": "^66.5.9",
51
+ "@shikijs/markdown-it": "^3.19.0",
52
+ "@shikijs/twoslash": "^3.19.0",
53
+ "@shikijs/vitepress-twoslash": "^3.19.0",
54
+ "@unocss/extractor-mdc": "^66.5.10",
55
+ "@unocss/reset": "^66.5.10",
56
56
  "@vitejs/plugin-vue": "^6.0.2",
57
57
  "@vitejs/plugin-vue-jsx": "^5.1.2",
58
58
  "ansis": "^4.2.0",
@@ -66,7 +66,7 @@
66
66
  "htmlparser2": "^10.0.0",
67
67
  "is-installed-globally": "^1.0.0",
68
68
  "jiti": "^2.6.1",
69
- "katex": "^0.16.25",
69
+ "katex": "^0.16.27",
70
70
  "local-pkg": "^1.1.2",
71
71
  "lz-string": "^1.5.0",
72
72
  "magic-string": "^0.30.21",
@@ -88,30 +88,30 @@
88
88
  "resolve-from": "^5.0.0",
89
89
  "resolve-global": "^2.0.0",
90
90
  "semver": "^7.7.3",
91
- "shiki": "^3.17.0",
91
+ "shiki": "^3.19.0",
92
92
  "shiki-magic-move": "^1.2.1",
93
93
  "sirv": "^3.0.2",
94
94
  "source-map-js": "^1.2.1",
95
95
  "typescript": "^5.9.3",
96
96
  "unhead": "^2.0.19",
97
- "unocss": "^66.5.9",
97
+ "unocss": "^66.5.10",
98
98
  "unplugin-icons": "^22.5.0",
99
99
  "unplugin-vue-components": "^30.0.0",
100
100
  "unplugin-vue-markdown": "^29.2.0",
101
101
  "untun": "^0.1.3",
102
102
  "uqr": "^0.1.2",
103
- "vite": "^7.2.4",
103
+ "vite": "^7.2.7",
104
104
  "vite-plugin-inspect": "^11.3.3",
105
105
  "vite-plugin-remote-assets": "^2.1.0",
106
106
  "vite-plugin-static-copy": "^3.1.4",
107
107
  "vite-plugin-vue-server-ref": "^1.0.0",
108
108
  "vitefu": "^1.1.1",
109
109
  "vue": "^3.5.25",
110
- "yaml": "^2.8.1",
110
+ "yaml": "^2.8.2",
111
111
  "yargs": "^18.0.0",
112
- "@slidev/client": "52.10.1",
113
- "@slidev/parser": "52.10.1",
114
- "@slidev/types": "52.10.1"
112
+ "@slidev/client": "52.11.0",
113
+ "@slidev/parser": "52.11.0",
114
+ "@slidev/types": "52.11.0"
115
115
  },
116
116
  "devDependencies": {
117
117
  "@hedgedoc/markdown-it-plugins": "^2.1.4",