@slidev/cli 0.48.1 → 0.48.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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ViteSlidevPlugin,
|
|
3
3
|
mergeViteConfigs
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-644IOZGH.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createResolver,
|
|
7
7
|
getRoots,
|
|
@@ -48,7 +48,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
|
48
48
|
import * as parser from "@slidev/parser/fs";
|
|
49
49
|
|
|
50
50
|
// package.json
|
|
51
|
-
var version = "0.48.
|
|
51
|
+
var version = "0.48.2";
|
|
52
52
|
|
|
53
53
|
// node/integrations/themes.ts
|
|
54
54
|
import { join as join2 } from "node:path";
|
|
@@ -107,7 +107,8 @@ async function resolveOptions(options, mode) {
|
|
|
107
107
|
const entry = await resolveEntry(options.entry);
|
|
108
108
|
const rootsInfo = await getRoots(entry);
|
|
109
109
|
const loaded = await parser.load(rootsInfo.userRoot, entry, void 0, mode);
|
|
110
|
-
|
|
110
|
+
let themeRaw = options.theme || loaded.headmatter.theme;
|
|
111
|
+
themeRaw = themeRaw === null ? "none" : themeRaw || "default";
|
|
111
112
|
const [theme, themeRoot] = await resolveTheme(themeRaw, entry);
|
|
112
113
|
const themeRoots = themeRoot ? [themeRoot] : [];
|
|
113
114
|
const themeMeta = themeRoot ? await getThemeMeta(theme, themeRoot) : void 0;
|
package/dist/cli.mjs
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
resolveOptions,
|
|
7
7
|
resolveTheme,
|
|
8
8
|
version
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-WEMFFV42.mjs";
|
|
10
|
+
import "./chunk-644IOZGH.mjs";
|
|
11
11
|
import {
|
|
12
12
|
loadSetups
|
|
13
13
|
} from "./chunk-LOUKLO2C.mjs";
|
|
@@ -325,7 +325,7 @@ cli.command(
|
|
|
325
325
|
}).strict().help(),
|
|
326
326
|
async (args) => {
|
|
327
327
|
const { entry, theme, watch, base, download, out, inspect } = args;
|
|
328
|
-
const { build } = await import("./build-
|
|
328
|
+
const { build } = await import("./build-CZRPUF5Y.mjs");
|
|
329
329
|
for (const entryFile of entry) {
|
|
330
330
|
const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
|
|
331
331
|
if (download && !options.data.config.download)
|
|
@@ -368,7 +368,8 @@ cli.command(
|
|
|
368
368
|
const entry = await resolveEntry(entryRaw);
|
|
369
369
|
const roots = await getRoots(entry);
|
|
370
370
|
const data = await parser.load(roots.userRoot, entry);
|
|
371
|
-
|
|
371
|
+
let themeRaw = themeInput || data.headmatter.theme;
|
|
372
|
+
themeRaw = themeRaw === null ? "none" : themeRaw || "default";
|
|
372
373
|
if (themeRaw === "none") {
|
|
373
374
|
console.error('Cannot eject theme "none"');
|
|
374
375
|
process.exit(1);
|
package/dist/index.mjs
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
createServer,
|
|
3
3
|
parser,
|
|
4
4
|
resolveOptions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WEMFFV42.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ViteSlidevPlugin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-644IOZGH.mjs";
|
|
9
9
|
import "./chunk-LOUKLO2C.mjs";
|
|
10
10
|
import "./chunk-AQQIBD5X.mjs";
|
|
11
11
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.2",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
"vitefu": "^0.2.5",
|
|
107
107
|
"vue": "^3.4.21",
|
|
108
108
|
"yargs": "^17.7.2",
|
|
109
|
-
"@slidev/
|
|
110
|
-
"@slidev/
|
|
111
|
-
"@slidev/
|
|
109
|
+
"@slidev/types": "0.48.2",
|
|
110
|
+
"@slidev/parser": "0.48.2",
|
|
111
|
+
"@slidev/client": "0.48.2"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|