@slidev/cli 0.49.27 → 0.49.29

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-5XLJU7Y5.js";
3
+ } from "./chunk-IVWMFGB5.js";
4
4
  import {
5
5
  getThemeMeta,
6
6
  loadSetups,
@@ -9,14 +9,13 @@ import {
9
9
  resolveOptions,
10
10
  resolveTheme,
11
11
  version
12
- } from "./chunk-XZE6EVP5.js";
12
+ } from "./chunk-YP37OZJY.js";
13
13
  import "./chunk-6DS3IPOB.js";
14
14
  import {
15
15
  getRoots,
16
16
  isInstalledGlobally,
17
17
  resolveEntry
18
18
  } from "./chunk-HOVIRHCR.js";
19
- import "./chunk-JSBRDJBE.js";
20
19
 
21
20
  // node/cli.ts
22
21
  import path from "node:path";
@@ -335,7 +334,7 @@ cli.command(
335
334
  }).strict().help(),
336
335
  async (args) => {
337
336
  const { entry, theme, base, download, out, inspect } = args;
338
- const { build } = await import("./build-6A7Q5VYP.js");
337
+ const { build } = await import("./build-2WDSCT4J.js");
339
338
  for (const entryFile of entry) {
340
339
  const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
341
340
  if (download && !options.data.config.download)
@@ -415,7 +414,7 @@ cli.command(
415
414
  (args) => exportOptions(commonOptions(args)).strict().help(),
416
415
  async (args) => {
417
416
  const { entry, theme } = args;
418
- const { exportSlides, getExportOptions } = await import("./export-SZDV4AEI.js");
417
+ const { exportSlides, getExportOptions } = await import("./export-FTRUCBWA.js");
419
418
  const port = await getPort(12445);
420
419
  for (const entryFile of entry) {
421
420
  const options = await resolveOptions({ entry: entryFile, theme }, "export");
@@ -464,7 +463,7 @@ cli.command(
464
463
  timeout,
465
464
  wait
466
465
  }) => {
467
- const { exportNotes } = await import("./export-SZDV4AEI.js");
466
+ const { exportNotes } = await import("./export-FTRUCBWA.js");
468
467
  const port = await getPort(12445);
469
468
  for (const entryFile of entry) {
470
469
  const options = await resolveOptions({ entry: entryFile }, "export");
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  getRoots
3
3
  } from "./chunk-HOVIRHCR.js";
4
- import "./chunk-JSBRDJBE.js";
5
4
 
6
5
  // node/commands/export.ts
7
6
  import path from "node:path";
@@ -10,7 +9,7 @@ import process from "node:process";
10
9
  import fs from "fs-extra";
11
10
  import { blue, cyan, dim, green, yellow } from "kolorist";
12
11
  import { Presets, SingleBar } from "cli-progress";
13
- import { clearUndefined } from "@antfu/utils";
12
+ import { clearUndefined, slash } from "@antfu/utils";
14
13
  import { parseRangeString } from "@slidev/parser/core";
15
14
  import { outlinePdfFactory } from "@lillallol/outline-pdf";
16
15
  import * as pdfLib from "pdf-lib";
@@ -353,7 +352,7 @@ async function exportSlides({
353
352
  const files = await fs.readdir(output);
354
353
  const mds = files.map((file, i, files2) => {
355
354
  const slideIndex = getSlideIndex(file);
356
- const mdImg = `![${slides[slideIndex]?.title}](./${path.join(output, file)})
355
+ const mdImg = `![${slides[slideIndex]?.title}](./${slash(path.join(output, file))})
357
356
 
358
357
  `;
359
358
  if ((i + 1 === files2.length || getSlideIndex(files2[i + 1]) !== slideIndex) && slides[slideIndex]?.note)
package/dist/index.js CHANGED
@@ -1,15 +1,14 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-5XLJU7Y5.js";
3
+ } from "./chunk-IVWMFGB5.js";
4
4
  import {
5
5
  ViteSlidevPlugin,
6
6
  createDataUtils,
7
7
  parser,
8
8
  resolveOptions
9
- } from "./chunk-XZE6EVP5.js";
9
+ } from "./chunk-YP37OZJY.js";
10
10
  import "./chunk-6DS3IPOB.js";
11
11
  import "./chunk-HOVIRHCR.js";
12
- import "./chunk-JSBRDJBE.js";
13
12
  export {
14
13
  ViteSlidevPlugin,
15
14
  createDataUtils,
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  escapeVueInCode
3
3
  } from "./chunk-6DS3IPOB.js";
4
- import "./chunk-JSBRDJBE.js";
5
4
 
6
5
  // node/syntax/markdown-it/markdown-it-prism.ts
7
6
  import { createRequire } from "node:module";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
3
  "type": "module",
4
- "version": "0.49.27",
4
+ "version": "0.49.29",
5
5
  "description": "Presentation slides for developers",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -48,11 +48,11 @@
48
48
  "@iconify-json/ph": "^1.1.14",
49
49
  "@iconify-json/svg-spinners": "^1.1.3",
50
50
  "@lillallol/outline-pdf": "^4.0.0",
51
- "@shikijs/markdown-it": "^1.13.0",
52
- "@shikijs/twoslash": "^1.13.0",
53
- "@shikijs/vitepress-twoslash": "^1.13.0",
54
- "@unocss/extractor-mdc": "^0.62.2",
55
- "@unocss/reset": "^0.62.2",
51
+ "@shikijs/markdown-it": "^1.14.1",
52
+ "@shikijs/twoslash": "^1.14.1",
53
+ "@shikijs/vitepress-twoslash": "^1.14.1",
54
+ "@unocss/extractor-mdc": "^0.62.3",
55
+ "@unocss/reset": "^0.62.3",
56
56
  "@vitejs/plugin-vue": "^5.1.2",
57
57
  "@vitejs/plugin-vue-jsx": "^4.0.1",
58
58
  "chokidar": "^3.6.0",
@@ -76,9 +76,9 @@
76
76
  "markdown-it": "^14.1.0",
77
77
  "markdown-it-footnote": "^4.0.0",
78
78
  "markdown-it-mdc": "^0.2.5",
79
- "micromatch": "^4.0.7",
79
+ "micromatch": "^4.0.8",
80
80
  "mlly": "^1.7.1",
81
- "monaco-editor": "^0.50.0",
81
+ "monaco-editor": "^0.51.0",
82
82
  "open": "^10.1.0",
83
83
  "pdf-lib": "^1.17.1",
84
84
  "plantuml-encoder": "^1.4.0",
@@ -90,28 +90,29 @@
90
90
  "resolve-from": "^5.0.0",
91
91
  "resolve-global": "^2.0.0",
92
92
  "semver": "^7.6.3",
93
- "shiki": "^1.13.0",
94
- "shiki-magic-move": "^0.4.3",
93
+ "shiki": "^1.14.1",
94
+ "shiki-magic-move": "^0.4.4",
95
95
  "sirv": "^2.0.4",
96
96
  "source-map-js": "^1.2.0",
97
97
  "typescript": "^5.5.4",
98
- "unocss": "^0.62.2",
98
+ "unocss": "^0.62.3",
99
99
  "unplugin-icons": "^0.19.2",
100
100
  "unplugin-vue-components": "^0.27.4",
101
101
  "unplugin-vue-markdown": "^0.26.2",
102
102
  "untun": "^0.1.3",
103
103
  "uqr": "^0.1.2",
104
- "vite": "^5.4.1",
105
- "vite-plugin-inspect": "^0.8.5",
104
+ "vite": "^5.4.2",
105
+ "vite-plugin-inspect": "^0.8.7",
106
106
  "vite-plugin-remote-assets": "^0.5.0",
107
107
  "vite-plugin-static-copy": "^1.0.6",
108
108
  "vite-plugin-vue-server-ref": "^0.4.2",
109
- "vitefu": "^0.2.5",
109
+ "vitefu": "^1.0.0",
110
110
  "vue": "^3.4.38",
111
+ "yaml": "^2.5.0",
111
112
  "yargs": "^17.7.2",
112
- "@slidev/client": "0.49.27",
113
- "@slidev/types": "0.49.27",
114
- "@slidev/parser": "0.49.27"
113
+ "@slidev/client": "0.49.29",
114
+ "@slidev/parser": "0.49.29",
115
+ "@slidev/types": "0.49.29"
115
116
  },
116
117
  "devDependencies": {
117
118
  "@hedgedoc/markdown-it-plugins": "^2.1.4",
@@ -1,30 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __commonJS = (cb, mod) => function __require() {
8
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
- // If the importer is in node compatibility mode or this is not an ESM
20
- // file that has been converted to a CommonJS file using a Babel-
21
- // compatible transform (i.e. "__esModule" has not been set), then set
22
- // "default" to the CommonJS "module.exports" for node compatibility.
23
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
- mod
25
- ));
26
-
27
- export {
28
- __commonJS,
29
- __toESM
30
- };