@slidev/cli 0.50.0-beta.5 → 0.50.0-beta.6
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.
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-UNQ5DBLZ.js";
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
|
-
var version = "0.50.0-beta.
|
|
12
|
+
var version = "0.50.0-beta.6";
|
|
13
13
|
|
|
14
14
|
// node/integrations/themes.ts
|
|
15
15
|
import { join } from "node:path";
|
|
@@ -438,7 +438,7 @@ function createConfigPlugin(options) {
|
|
|
438
438
|
configureServer(server) {
|
|
439
439
|
return () => {
|
|
440
440
|
server.middlewares.use(async (req, res, next) => {
|
|
441
|
-
if (req.url
|
|
441
|
+
if (req.url === "/index.html") {
|
|
442
442
|
res.setHeader("Content-Type", "text/html");
|
|
443
443
|
res.statusCode = 200;
|
|
444
444
|
res.end(options.utils.indexHtml);
|
|
@@ -2586,6 +2586,8 @@ async function resolveOptions(entryOptions, mode) {
|
|
|
2586
2586
|
const config = parser.resolveConfig(loaded.headmatter, themeMeta, entryOptions.entry);
|
|
2587
2587
|
const addonRoots = await resolveAddons(config.addons);
|
|
2588
2588
|
const roots = uniq5([...themeRoots, ...addonRoots, rootsInfo.userRoot]);
|
|
2589
|
+
if (entryOptions.download)
|
|
2590
|
+
config.download ||= entryOptions.download;
|
|
2589
2591
|
debug({
|
|
2590
2592
|
...rootsInfo,
|
|
2591
2593
|
...entryOptions,
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W7262TA2.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-4HBHIHYH.js";
|
|
13
13
|
import {
|
|
14
14
|
getRoots,
|
|
15
15
|
isInstalledGlobally,
|
|
@@ -332,11 +332,9 @@ cli.command(
|
|
|
332
332
|
}).strict().help(),
|
|
333
333
|
async (args) => {
|
|
334
334
|
const { entry, theme, base, download, out, inspect } = args;
|
|
335
|
-
const { build } = await import("./build-
|
|
335
|
+
const { build } = await import("./build-62NZDFIC.js");
|
|
336
336
|
for (const entryFile of entry) {
|
|
337
|
-
const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
|
|
338
|
-
if (download && !options.data.config.download)
|
|
339
|
-
options.data.config.download = download;
|
|
337
|
+
const options = await resolveOptions({ entry: entryFile, theme, inspect, download }, "build");
|
|
340
338
|
printInfo(options);
|
|
341
339
|
await build(
|
|
342
340
|
options,
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W7262TA2.js";
|
|
4
4
|
import {
|
|
5
5
|
ViteSlidevPlugin,
|
|
6
6
|
createDataUtils,
|
|
7
7
|
parser,
|
|
8
8
|
resolveOptions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4HBHIHYH.js";
|
|
10
10
|
import "./chunk-UNQ5DBLZ.js";
|
|
11
11
|
export {
|
|
12
12
|
ViteSlidevPlugin,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.50.0-beta.
|
|
4
|
+
"version": "0.50.0-beta.6",
|
|
5
5
|
"description": "Presentation slides for developers",
|
|
6
6
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
"vue": "^3.5.12",
|
|
110
110
|
"yaml": "^2.6.0",
|
|
111
111
|
"yargs": "^17.7.2",
|
|
112
|
-
"@slidev/
|
|
113
|
-
"@slidev/types": "0.50.0-beta.
|
|
114
|
-
"@slidev/
|
|
112
|
+
"@slidev/parser": "0.50.0-beta.6",
|
|
113
|
+
"@slidev/types": "0.50.0-beta.6",
|
|
114
|
+
"@slidev/client": "0.50.0-beta.6"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|