@slidev/cli 0.49.27 → 0.49.28
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/{build-6A7Q5VYP.js → build-DOIJJUU3.js} +2 -2
- package/dist/{chunk-XZE6EVP5.js → chunk-AQBXAU6S.js} +2 -2
- package/dist/{chunk-5XLJU7Y5.js → chunk-ISUC27RM.js} +1 -1
- package/dist/cli.js +5 -5
- package/dist/{export-SZDV4AEI.js → export-MUFMK7ZR.js} +2 -2
- package/dist/index.js +2 -2
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveViteConfigs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AQBXAU6S.js";
|
|
4
4
|
import "./chunk-6DS3IPOB.js";
|
|
5
5
|
import "./chunk-HOVIRHCR.js";
|
|
6
6
|
import "./chunk-JSBRDJBE.js";
|
|
@@ -52,7 +52,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
52
52
|
await fs.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
53
53
|
`, "utf-8");
|
|
54
54
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
55
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
55
|
+
const { exportSlides, getExportOptions } = await import("./export-MUFMK7ZR.js");
|
|
56
56
|
const port = 12445;
|
|
57
57
|
const app = connect();
|
|
58
58
|
const server = http.createServer(app);
|
|
@@ -7633,7 +7633,7 @@ function createLayoutWrapperPlugin({ data, utils }) {
|
|
|
7633
7633
|
return;
|
|
7634
7634
|
const index = +no - 1;
|
|
7635
7635
|
const layouts = await utils.getLayouts();
|
|
7636
|
-
const rawLayoutName = data.slides[index]?.frontmatter?.layout ?? data.slides[0]?.frontmatter?.
|
|
7636
|
+
const rawLayoutName = data.slides[index]?.frontmatter?.layout ?? data.slides[0]?.frontmatter?.defaults?.layout;
|
|
7637
7637
|
let layoutName = rawLayoutName || (index === 0 ? "cover" : "default");
|
|
7638
7638
|
if (!layouts[layoutName]) {
|
|
7639
7639
|
console.error(red(`
|
|
@@ -8109,7 +8109,7 @@ import fs from "fs-extra";
|
|
|
8109
8109
|
import { satisfies } from "semver";
|
|
8110
8110
|
|
|
8111
8111
|
// package.json
|
|
8112
|
-
var version = "0.49.
|
|
8112
|
+
var version = "0.49.28";
|
|
8113
8113
|
|
|
8114
8114
|
// node/integrations/themes.ts
|
|
8115
8115
|
var officialThemes = {
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ISUC27RM.js";
|
|
4
4
|
import {
|
|
5
5
|
getThemeMeta,
|
|
6
6
|
loadSetups,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveOptions,
|
|
10
10
|
resolveTheme,
|
|
11
11
|
version
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AQBXAU6S.js";
|
|
13
13
|
import "./chunk-6DS3IPOB.js";
|
|
14
14
|
import {
|
|
15
15
|
getRoots,
|
|
@@ -335,7 +335,7 @@ cli.command(
|
|
|
335
335
|
}).strict().help(),
|
|
336
336
|
async (args) => {
|
|
337
337
|
const { entry, theme, base, download, out, inspect } = args;
|
|
338
|
-
const { build } = await import("./build-
|
|
338
|
+
const { build } = await import("./build-DOIJJUU3.js");
|
|
339
339
|
for (const entryFile of entry) {
|
|
340
340
|
const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
|
|
341
341
|
if (download && !options.data.config.download)
|
|
@@ -415,7 +415,7 @@ cli.command(
|
|
|
415
415
|
(args) => exportOptions(commonOptions(args)).strict().help(),
|
|
416
416
|
async (args) => {
|
|
417
417
|
const { entry, theme } = args;
|
|
418
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
418
|
+
const { exportSlides, getExportOptions } = await import("./export-MUFMK7ZR.js");
|
|
419
419
|
const port = await getPort(12445);
|
|
420
420
|
for (const entryFile of entry) {
|
|
421
421
|
const options = await resolveOptions({ entry: entryFile, theme }, "export");
|
|
@@ -464,7 +464,7 @@ cli.command(
|
|
|
464
464
|
timeout,
|
|
465
465
|
wait
|
|
466
466
|
}) => {
|
|
467
|
-
const { exportNotes } = await import("./export-
|
|
467
|
+
const { exportNotes } = await import("./export-MUFMK7ZR.js");
|
|
468
468
|
const port = await getPort(12445);
|
|
469
469
|
for (const entryFile of entry) {
|
|
470
470
|
const options = await resolveOptions({ entry: entryFile }, "export");
|
|
@@ -10,7 +10,7 @@ import process from "node:process";
|
|
|
10
10
|
import fs from "fs-extra";
|
|
11
11
|
import { blue, cyan, dim, green, yellow } from "kolorist";
|
|
12
12
|
import { Presets, SingleBar } from "cli-progress";
|
|
13
|
-
import { clearUndefined } from "@antfu/utils";
|
|
13
|
+
import { clearUndefined, slash } from "@antfu/utils";
|
|
14
14
|
import { parseRangeString } from "@slidev/parser/core";
|
|
15
15
|
import { outlinePdfFactory } from "@lillallol/outline-pdf";
|
|
16
16
|
import * as pdfLib from "pdf-lib";
|
|
@@ -353,7 +353,7 @@ async function exportSlides({
|
|
|
353
353
|
const files = await fs.readdir(output);
|
|
354
354
|
const mds = files.map((file, i, files2) => {
|
|
355
355
|
const slideIndex = getSlideIndex(file);
|
|
356
|
-
const mdImg = `![${slides[slideIndex]?.title}](./${path.join(output, file)})
|
|
356
|
+
const mdImg = `![${slides[slideIndex]?.title}](./${slash(path.join(output, file))})
|
|
357
357
|
|
|
358
358
|
`;
|
|
359
359
|
if ((i + 1 === files2.length || getSlideIndex(files2[i + 1]) !== slideIndex) && slides[slideIndex]?.note)
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ISUC27RM.js";
|
|
4
4
|
import {
|
|
5
5
|
ViteSlidevPlugin,
|
|
6
6
|
createDataUtils,
|
|
7
7
|
parser,
|
|
8
8
|
resolveOptions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AQBXAU6S.js";
|
|
10
10
|
import "./chunk-6DS3IPOB.js";
|
|
11
11
|
import "./chunk-HOVIRHCR.js";
|
|
12
12
|
import "./chunk-JSBRDJBE.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.49.
|
|
4
|
+
"version": "0.49.28",
|
|
5
5
|
"description": "Presentation slides for developers",
|
|
6
6
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
"vitefu": "^0.2.5",
|
|
110
110
|
"vue": "^3.4.38",
|
|
111
111
|
"yargs": "^17.7.2",
|
|
112
|
-
"@slidev/client": "0.49.
|
|
113
|
-
"@slidev/types": "0.49.
|
|
114
|
-
"@slidev/parser": "0.49.
|
|
112
|
+
"@slidev/client": "0.49.28",
|
|
113
|
+
"@slidev/types": "0.49.28",
|
|
114
|
+
"@slidev/parser": "0.49.28"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|