@slidev/cli 0.37.1 → 0.38.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.
- package/dist/{build-VHSIFE6E.js → build-GDFRNKG7.js} +13 -13
- package/dist/{build-SWYXOHDR.mjs → build-N6ZUPVQG.mjs} +4 -4
- package/dist/{chunk-4KNSRSYA.js → chunk-BQ7BP5DL.js} +64 -62
- package/dist/{chunk-XRKGEREL.mjs → chunk-D2NFFVC4.mjs} +8 -7
- package/dist/{chunk-ZONFWCC6.mjs → chunk-HLY2TTS3.mjs} +20 -18
- package/dist/{chunk-ORMJVCP4.js → chunk-NDMEWYLR.js} +140 -139
- package/dist/{chunk-N6L4BUFD.js → chunk-OVFYMGU6.js} +2 -2
- package/dist/{chunk-XNT34UVI.mjs → chunk-T5WFA52O.mjs} +2 -2
- package/dist/cli.js +35 -33
- package/dist/cli.mjs +10 -8
- package/dist/{export-Q5J3CD5U.mjs → export-BI2J2JAY.mjs} +1 -1
- package/dist/{export-6T6GAVB2.js → export-KLTUGSHH.js} +6 -6
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/package.json +20 -20
|
@@ -58,9 +58,9 @@ var __privateWrapper = (obj, member, setter, getter) => {
|
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
// ../../node_modules/.pnpm/tsup@5.12.9_typescript@4.
|
|
61
|
+
// ../../node_modules/.pnpm/tsup@5.12.9_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js
|
|
62
62
|
var init_cjs_shims = __esm({
|
|
63
|
-
"../../node_modules/.pnpm/tsup@5.12.9_typescript@4.
|
|
63
|
+
"../../node_modules/.pnpm/tsup@5.12.9_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js"() {
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
|
|
@@ -58,12 +58,12 @@ var __privateWrapper = (obj, member, setter, getter) => {
|
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
// ../../node_modules/.pnpm/tsup@5.12.9_typescript@4.
|
|
61
|
+
// ../../node_modules/.pnpm/tsup@5.12.9_typescript@4.9.4/node_modules/tsup/assets/esm_shims.js
|
|
62
62
|
import { fileURLToPath } from "url";
|
|
63
63
|
import path from "path";
|
|
64
64
|
var getFilename, getDirname, __dirname, __filename;
|
|
65
65
|
var init_esm_shims = __esm({
|
|
66
|
-
"../../node_modules/.pnpm/tsup@5.12.9_typescript@4.
|
|
66
|
+
"../../node_modules/.pnpm/tsup@5.12.9_typescript@4.9.4/node_modules/tsup/assets/esm_shims.js"() {
|
|
67
67
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
68
68
|
getDirname = () => path.dirname(getFilename());
|
|
69
69
|
__dirname = /* @__PURE__ */ getDirname();
|
package/dist/cli.js
CHANGED
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkNDMEWYLRjs = require('./chunk-NDMEWYLR.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkBQ7BP5DLjs = require('./chunk-BQ7BP5DL.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkOVFYMGU6js = require('./chunk-OVFYMGU6.js');
|
|
22
22
|
|
|
23
23
|
// node/cli.ts
|
|
24
|
-
|
|
25
|
-
var import_fast_deep_equal =
|
|
24
|
+
_chunkOVFYMGU6js.init_cjs_shims.call(void 0, );
|
|
25
|
+
var import_fast_deep_equal = _chunkOVFYMGU6js.__toESM.call(void 0, _chunkBQ7BP5DLjs.require_fast_deep_equal.call(void 0, ));
|
|
26
26
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
27
27
|
var _net = require('net'); var _net2 = _interopRequireDefault(_net);
|
|
28
28
|
var _os = require('os'); var _os2 = _interopRequireDefault(_os);
|
|
@@ -43,16 +43,18 @@ var CONFIG_RESTART_FIELDS = [
|
|
|
43
43
|
"fonts",
|
|
44
44
|
"css"
|
|
45
45
|
];
|
|
46
|
-
_fs.injectPreparserExtensionLoader.call(void 0, async (
|
|
46
|
+
_fs.injectPreparserExtensionLoader.call(void 0, async (headmatter, filepath) => {
|
|
47
|
+
var _a;
|
|
48
|
+
const addons = (_a = headmatter == null ? void 0 : headmatter.addons) != null ? _a : [];
|
|
47
49
|
const roots = [
|
|
48
|
-
|
|
49
|
-
...
|
|
50
|
-
|
|
50
|
+
_chunkNDMEWYLRjs.getUserRoot.call(void 0, {}).userRoot,
|
|
51
|
+
..._chunkNDMEWYLRjs.getAddonRoots.call(void 0, addons, ""),
|
|
52
|
+
_chunkNDMEWYLRjs.getClientRoot.call(void 0, )
|
|
51
53
|
];
|
|
52
54
|
const mergeArrays = (a, b) => a.concat(b);
|
|
53
|
-
return await
|
|
55
|
+
return await _chunkBQ7BP5DLjs.loadSetups.call(void 0, roots, "preparser.ts", { filepath, headmatter }, [], false, mergeArrays);
|
|
54
56
|
});
|
|
55
|
-
var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(
|
|
57
|
+
var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkNDMEWYLRjs.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
|
|
56
58
|
cli.command(
|
|
57
59
|
"* [entry]",
|
|
58
60
|
"Start a local server for Slidev",
|
|
@@ -103,9 +105,9 @@ cli.command(
|
|
|
103
105
|
async function initServer() {
|
|
104
106
|
if (server)
|
|
105
107
|
await server.close();
|
|
106
|
-
const options = await
|
|
108
|
+
const options = await _chunkNDMEWYLRjs.resolveOptions.call(void 0, { entry, remote, theme, inspect }, "dev");
|
|
107
109
|
port = userPort || await findFreePort(3030);
|
|
108
|
-
server = await
|
|
110
|
+
server = await _chunkNDMEWYLRjs.createServer.call(void 0,
|
|
109
111
|
options,
|
|
110
112
|
{
|
|
111
113
|
server: {
|
|
@@ -119,7 +121,7 @@ cli.command(
|
|
|
119
121
|
},
|
|
120
122
|
{
|
|
121
123
|
onDataReload(newData, data) {
|
|
122
|
-
if (!theme &&
|
|
124
|
+
if (!theme && _chunkNDMEWYLRjs.resolveThemeName.call(void 0, newData.config.theme) !== _chunkNDMEWYLRjs.resolveThemeName.call(void 0, data.config.theme)) {
|
|
123
125
|
console.log(_kolorist.yellow.call(void 0, "\n restarting on theme change\n"));
|
|
124
126
|
initServer();
|
|
125
127
|
} else if (CONFIG_RESTART_FIELDS.some((i) => !(0, import_fast_deep_equal.default)(newData.config[i], data.config[i]))) {
|
|
@@ -205,8 +207,8 @@ cli.command(
|
|
|
205
207
|
describe: "enable the inspect plugin for debugging"
|
|
206
208
|
}).strict().help(),
|
|
207
209
|
async ({ entry, theme, watch, base, download, out, inspect }) => {
|
|
208
|
-
const { build } = await Promise.resolve().then(() =>
|
|
209
|
-
const options = await
|
|
210
|
+
const { build } = await Promise.resolve().then(() => _chunkOVFYMGU6js.__toESM.call(void 0, _chunkOVFYMGU6js.__require.call(void 0, "./build-GDFRNKG7.js")));
|
|
211
|
+
const options = await _chunkNDMEWYLRjs.resolveOptions.call(void 0, { entry, theme, inspect }, "build");
|
|
210
212
|
if (download && !options.data.config.download)
|
|
211
213
|
options.data.config.download = download;
|
|
212
214
|
printInfo(options);
|
|
@@ -224,9 +226,9 @@ cli.command(
|
|
|
224
226
|
"Format the markdown file",
|
|
225
227
|
(args) => commonOptions(args).strict().help(),
|
|
226
228
|
async ({ entry }) => {
|
|
227
|
-
const data = await
|
|
228
|
-
|
|
229
|
-
await
|
|
229
|
+
const data = await _chunkNDMEWYLRjs.parser.load(entry);
|
|
230
|
+
_chunkNDMEWYLRjs.parser.prettify(data);
|
|
231
|
+
await _chunkNDMEWYLRjs.parser.save(data);
|
|
230
232
|
}
|
|
231
233
|
);
|
|
232
234
|
cli.command(
|
|
@@ -241,17 +243,17 @@ cli.command(
|
|
|
241
243
|
default: "theme"
|
|
242
244
|
}),
|
|
243
245
|
async ({ entry, dir, theme: themeInput }) => {
|
|
244
|
-
const data = await
|
|
245
|
-
const theme =
|
|
246
|
+
const data = await _chunkNDMEWYLRjs.parser.load(entry);
|
|
247
|
+
const theme = _chunkNDMEWYLRjs.resolveThemeName.call(void 0, themeInput || data.config.theme);
|
|
246
248
|
if (theme === "none") {
|
|
247
249
|
console.error('Cannot eject theme "none"');
|
|
248
250
|
process.exit(1);
|
|
249
251
|
}
|
|
250
|
-
if (
|
|
252
|
+
if (_chunkNDMEWYLRjs.isPath.call(void 0, theme)) {
|
|
251
253
|
console.error("Theme is already ejected");
|
|
252
254
|
process.exit(1);
|
|
253
255
|
}
|
|
254
|
-
const roots =
|
|
256
|
+
const roots = _chunkNDMEWYLRjs.getThemeRoots.call(void 0, theme, entry);
|
|
255
257
|
if (!roots.length) {
|
|
256
258
|
console.error(`Could not find theme "${theme}"`);
|
|
257
259
|
process.exit(1);
|
|
@@ -263,7 +265,7 @@ cli.command(
|
|
|
263
265
|
const dirPath = `./${dir}`;
|
|
264
266
|
data.slides[0].frontmatter.theme = dirPath;
|
|
265
267
|
data.slides[0].raw = null;
|
|
266
|
-
await
|
|
268
|
+
await _chunkNDMEWYLRjs.parser.save(data);
|
|
267
269
|
console.log(`Theme "${theme}" ejected successfully to "${dirPath}"`);
|
|
268
270
|
}
|
|
269
271
|
);
|
|
@@ -321,11 +323,11 @@ cli.command(
|
|
|
321
323
|
"with-toc": withTOC
|
|
322
324
|
}) => {
|
|
323
325
|
process.env.NODE_ENV = "production";
|
|
324
|
-
const { exportSlides } = await Promise.resolve().then(() =>
|
|
326
|
+
const { exportSlides } = await Promise.resolve().then(() => _chunkOVFYMGU6js.__toESM.call(void 0, _chunkOVFYMGU6js.__require.call(void 0, "./export-KLTUGSHH.js")));
|
|
325
327
|
const port = await findFreePort(12445);
|
|
326
|
-
const options = await
|
|
328
|
+
const options = await _chunkNDMEWYLRjs.resolveOptions.call(void 0, { entry, theme }, "build");
|
|
327
329
|
output = output || options.data.config.exportFilename || `${_path2.default.basename(entry, ".md")}-export`;
|
|
328
|
-
const server = await
|
|
330
|
+
const server = await _chunkNDMEWYLRjs.createServer.call(void 0,
|
|
329
331
|
options,
|
|
330
332
|
{
|
|
331
333
|
server: { port },
|
|
@@ -334,7 +336,7 @@ cli.command(
|
|
|
334
336
|
);
|
|
335
337
|
await server.listen(port);
|
|
336
338
|
printInfo(options);
|
|
337
|
-
|
|
339
|
+
_chunkNDMEWYLRjs.parser.filterDisabled(options.data);
|
|
338
340
|
const width = options.data.config.canvasWidth;
|
|
339
341
|
const height = Math.round(width / options.data.config.aspectRatio);
|
|
340
342
|
output = await exportSlides({
|
|
@@ -375,12 +377,12 @@ cli.command(
|
|
|
375
377
|
output
|
|
376
378
|
}) => {
|
|
377
379
|
process.env.NODE_ENV = "production";
|
|
378
|
-
const { exportNotes } = await Promise.resolve().then(() =>
|
|
380
|
+
const { exportNotes } = await Promise.resolve().then(() => _chunkOVFYMGU6js.__toESM.call(void 0, _chunkOVFYMGU6js.__require.call(void 0, "./export-KLTUGSHH.js")));
|
|
379
381
|
const port = await findFreePort(12445);
|
|
380
|
-
const options = await
|
|
382
|
+
const options = await _chunkNDMEWYLRjs.resolveOptions.call(void 0, { entry }, "build");
|
|
381
383
|
if (!output)
|
|
382
384
|
output = options.data.config.exportFilename ? `${options.data.config.exportFilename}-notes` : `${_path2.default.basename(entry, ".md")}-export-notes`;
|
|
383
|
-
const server = await
|
|
385
|
+
const server = await _chunkNDMEWYLRjs.createServer.call(void 0,
|
|
384
386
|
options,
|
|
385
387
|
{
|
|
386
388
|
server: { port },
|
|
@@ -389,7 +391,7 @@ cli.command(
|
|
|
389
391
|
);
|
|
390
392
|
await server.listen(port);
|
|
391
393
|
printInfo(options);
|
|
392
|
-
|
|
394
|
+
_chunkNDMEWYLRjs.parser.filterDisabled(options.data);
|
|
393
395
|
output = await exportNotes({
|
|
394
396
|
port,
|
|
395
397
|
output
|
|
@@ -416,7 +418,7 @@ function printInfo(options, port, remote) {
|
|
|
416
418
|
console.log();
|
|
417
419
|
console.log();
|
|
418
420
|
console.log(` ${_kolorist.cyan.call(void 0, "\u25CF") + _kolorist.blue.call(void 0, "\u25A0") + _kolorist.yellow.call(void 0, "\u25B2")}`);
|
|
419
|
-
console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${
|
|
421
|
+
console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkNDMEWYLRjs.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
|
|
420
422
|
console.log();
|
|
421
423
|
console.log(_kolorist.dim.call(void 0, " theme ") + (options.theme ? _kolorist.green.call(void 0, options.theme) : _kolorist.gray.call(void 0, "none")));
|
|
422
424
|
console.log(_kolorist.dim.call(void 0, " entry ") + _kolorist.dim.call(void 0, _path2.default.dirname(options.entry) + _path2.default.sep) + _path2.default.basename(options.entry));
|
package/dist/cli.mjs
CHANGED
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
resolveOptions,
|
|
10
10
|
resolveThemeName,
|
|
11
11
|
version
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-D2NFFVC4.mjs";
|
|
13
13
|
import {
|
|
14
14
|
loadSetups,
|
|
15
15
|
require_fast_deep_equal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HLY2TTS3.mjs";
|
|
17
17
|
import {
|
|
18
18
|
__dirname,
|
|
19
19
|
__require,
|
|
20
20
|
__toESM,
|
|
21
21
|
init_esm_shims
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-T5WFA52O.mjs";
|
|
23
23
|
|
|
24
24
|
// node/cli.ts
|
|
25
25
|
init_esm_shims();
|
|
@@ -44,14 +44,16 @@ var CONFIG_RESTART_FIELDS = [
|
|
|
44
44
|
"fonts",
|
|
45
45
|
"css"
|
|
46
46
|
];
|
|
47
|
-
injectPreparserExtensionLoader(async (
|
|
47
|
+
injectPreparserExtensionLoader(async (headmatter, filepath) => {
|
|
48
|
+
var _a;
|
|
49
|
+
const addons = (_a = headmatter == null ? void 0 : headmatter.addons) != null ? _a : [];
|
|
48
50
|
const roots = [
|
|
49
51
|
getUserRoot({}).userRoot,
|
|
50
52
|
...getAddonRoots(addons, ""),
|
|
51
53
|
getClientRoot()
|
|
52
54
|
];
|
|
53
55
|
const mergeArrays = (a, b) => a.concat(b);
|
|
54
|
-
return await loadSetups(roots, "preparser.ts", filepath, [], false, mergeArrays);
|
|
56
|
+
return await loadSetups(roots, "preparser.ts", { filepath, headmatter }, [], false, mergeArrays);
|
|
55
57
|
});
|
|
56
58
|
var cli = yargs.scriptName("slidev").usage("$0 [args]").version(version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
|
|
57
59
|
cli.command(
|
|
@@ -206,7 +208,7 @@ cli.command(
|
|
|
206
208
|
describe: "enable the inspect plugin for debugging"
|
|
207
209
|
}).strict().help(),
|
|
208
210
|
async ({ entry, theme, watch, base, download, out, inspect }) => {
|
|
209
|
-
const { build } = await Promise.resolve().then(() => __toESM(__require("./build-
|
|
211
|
+
const { build } = await Promise.resolve().then(() => __toESM(__require("./build-N6ZUPVQG.mjs")));
|
|
210
212
|
const options = await resolveOptions({ entry, theme, inspect }, "build");
|
|
211
213
|
if (download && !options.data.config.download)
|
|
212
214
|
options.data.config.download = download;
|
|
@@ -322,7 +324,7 @@ cli.command(
|
|
|
322
324
|
"with-toc": withTOC
|
|
323
325
|
}) => {
|
|
324
326
|
process.env.NODE_ENV = "production";
|
|
325
|
-
const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-
|
|
327
|
+
const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-BI2J2JAY.mjs")));
|
|
326
328
|
const port = await findFreePort(12445);
|
|
327
329
|
const options = await resolveOptions({ entry, theme }, "build");
|
|
328
330
|
output = output || options.data.config.exportFilename || `${path.basename(entry, ".md")}-export`;
|
|
@@ -376,7 +378,7 @@ cli.command(
|
|
|
376
378
|
output
|
|
377
379
|
}) => {
|
|
378
380
|
process.env.NODE_ENV = "production";
|
|
379
|
-
const { exportNotes } = await Promise.resolve().then(() => __toESM(__require("./export-
|
|
381
|
+
const { exportNotes } = await Promise.resolve().then(() => __toESM(__require("./export-BI2J2JAY.mjs")));
|
|
380
382
|
const port = await findFreePort(12445);
|
|
381
383
|
const options = await resolveOptions({ entry }, "build");
|
|
382
384
|
if (!output)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOVFYMGU6js = require('./chunk-OVFYMGU6.js');
|
|
7
7
|
|
|
8
8
|
// node/export.ts
|
|
9
|
-
|
|
9
|
+
_chunkOVFYMGU6js.init_cjs_shims.call(void 0, );
|
|
10
10
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
11
11
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
12
12
|
var _kolorist = require('kolorist');
|
|
@@ -76,9 +76,9 @@ async function exportNotes({
|
|
|
76
76
|
base = "/",
|
|
77
77
|
output = "notes"
|
|
78
78
|
}) {
|
|
79
|
-
if (!
|
|
79
|
+
if (!_chunkOVFYMGU6js.packageExists.call(void 0, "playwright-chromium"))
|
|
80
80
|
throw new Error("The exporting for Slidev is powered by Playwright, please installed it via `npm i -D playwright-chromium`");
|
|
81
|
-
const { chromium } = await Promise.resolve().then(() =>
|
|
81
|
+
const { chromium } = await Promise.resolve().then(() => _chunkOVFYMGU6js.__toESM.call(void 0, _chunkOVFYMGU6js.__require.call(void 0, "playwright-chromium")));
|
|
82
82
|
const browser = await chromium.launch();
|
|
83
83
|
const context = await browser.newContext();
|
|
84
84
|
const page = await context.newPage();
|
|
@@ -121,10 +121,10 @@ async function exportSlides({
|
|
|
121
121
|
executablePath = void 0,
|
|
122
122
|
withTOC = false
|
|
123
123
|
}) {
|
|
124
|
-
if (!
|
|
124
|
+
if (!_chunkOVFYMGU6js.packageExists.call(void 0, "playwright-chromium"))
|
|
125
125
|
throw new Error("The exporting for Slidev is powered by Playwright, please installed it via `npm i -D playwright-chromium`");
|
|
126
126
|
const pages = _core.parseRangeString.call(void 0, total, range);
|
|
127
|
-
const { chromium } = await Promise.resolve().then(() =>
|
|
127
|
+
const { chromium } = await Promise.resolve().then(() => _chunkOVFYMGU6js.__toESM.call(void 0, _chunkOVFYMGU6js.__require.call(void 0, "playwright-chromium")));
|
|
128
128
|
const browser = await chromium.launch({
|
|
129
129
|
executablePath
|
|
130
130
|
});
|
package/dist/index.js
CHANGED
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkNDMEWYLRjs = require('./chunk-NDMEWYLR.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkBQ7BP5DLjs = require('./chunk-BQ7BP5DL.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkOVFYMGU6js = require('./chunk-OVFYMGU6.js');
|
|
20
20
|
|
|
21
21
|
// node/index.ts
|
|
22
|
-
|
|
22
|
+
_chunkOVFYMGU6js.init_cjs_shims.call(void 0, );
|
|
23
23
|
|
|
24
24
|
// node/declare.ts
|
|
25
|
-
|
|
25
|
+
_chunkOVFYMGU6js.init_cjs_shims.call(void 0, );
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -36,4 +36,4 @@ _chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
exports.ViteSlidevPlugin =
|
|
39
|
+
exports.ViteSlidevPlugin = _chunkBQ7BP5DLjs.ViteSlidevPlugin; exports.createServer = _chunkNDMEWYLRjs.createServer; exports.createWindiCSSPlugin = _chunkBQ7BP5DLjs.createWindiCSSPlugin; exports.getAddonRoots = _chunkNDMEWYLRjs.getAddonRoots; exports.getCLIRoot = _chunkNDMEWYLRjs.getCLIRoot; exports.getClientRoot = _chunkNDMEWYLRjs.getClientRoot; exports.getRoot = _chunkNDMEWYLRjs.getRoot; exports.getThemeRoots = _chunkNDMEWYLRjs.getThemeRoots; exports.getUserRoot = _chunkNDMEWYLRjs.getUserRoot; exports.isPath = _chunkNDMEWYLRjs.isPath; exports.parser = _chunkNDMEWYLRjs.parser; exports.resolveOptions = _chunkNDMEWYLRjs.resolveOptions;
|
package/dist/index.mjs
CHANGED
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
isPath,
|
|
10
10
|
parser,
|
|
11
11
|
resolveOptions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-D2NFFVC4.mjs";
|
|
13
13
|
import {
|
|
14
14
|
ViteSlidevPlugin,
|
|
15
15
|
createWindiCSSPlugin
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HLY2TTS3.mjs";
|
|
17
17
|
import {
|
|
18
18
|
init_esm_shims
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-T5WFA52O.mjs";
|
|
20
20
|
|
|
21
21
|
// node/index.ts
|
|
22
22
|
init_esm_shims();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,27 +42,24 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@antfu/utils": "^0.
|
|
45
|
+
"@antfu/utils": "^0.7.2",
|
|
46
46
|
"@hedgedoc/markdown-it-task-lists": "^2.0.1",
|
|
47
|
-
"@iconify-json/carbon": "^1.1.
|
|
48
|
-
"@iconify-json/ph": "^1.1.
|
|
47
|
+
"@iconify-json/carbon": "^1.1.11",
|
|
48
|
+
"@iconify-json/ph": "^1.1.3",
|
|
49
49
|
"@lillallol/outline-pdf": "^4.0.0",
|
|
50
|
-
"@
|
|
51
|
-
"@slidev/parser": "0.37.1",
|
|
52
|
-
"@slidev/types": "0.37.1",
|
|
53
|
-
"@vitejs/plugin-vue": "^3.2.0",
|
|
50
|
+
"@vitejs/plugin-vue": "^4.0.0",
|
|
54
51
|
"cli-progress": "^3.11.2",
|
|
55
52
|
"codemirror": "^5.65.5",
|
|
56
53
|
"connect": "^3.7.0",
|
|
57
54
|
"debug": "^4.3.4",
|
|
58
55
|
"fast-glob": "^3.2.12",
|
|
59
|
-
"fs-extra": "^
|
|
60
|
-
"global-dirs": "^3.0.
|
|
56
|
+
"fs-extra": "^11.1.0",
|
|
57
|
+
"global-dirs": "^3.0.1",
|
|
61
58
|
"import-from": "^4.0.0",
|
|
62
59
|
"is-installed-globally": "^0.4.0",
|
|
63
60
|
"jiti": "^1.16.0",
|
|
64
|
-
"js-base64": "^3.7.
|
|
65
|
-
"katex": "^0.16.
|
|
61
|
+
"js-base64": "^3.7.3",
|
|
62
|
+
"katex": "^0.16.4",
|
|
66
63
|
"kolorist": "^1.6.0",
|
|
67
64
|
"markdown-it": "^13.0.1",
|
|
68
65
|
"markdown-it-footnote": "^3.0.3",
|
|
@@ -79,18 +76,21 @@
|
|
|
79
76
|
"resolve-from": "^5.0.0",
|
|
80
77
|
"resolve-global": "^1.0.0",
|
|
81
78
|
"shiki": "^0.11.1",
|
|
82
|
-
"unocss": "^0.
|
|
83
|
-
"unplugin-icons": "^0.14.
|
|
84
|
-
"unplugin-vue-components": "^0.22.
|
|
85
|
-
"vite": "^
|
|
86
|
-
"vite-plugin-inspect": "^0.7.
|
|
79
|
+
"unocss": "^0.47.6",
|
|
80
|
+
"unplugin-icons": "^0.14.15",
|
|
81
|
+
"unplugin-vue-components": "^0.22.12",
|
|
82
|
+
"vite": "^4.0.1",
|
|
83
|
+
"vite-plugin-inspect": "^0.7.10",
|
|
87
84
|
"vite-plugin-remote-assets": "^0.3.0",
|
|
88
85
|
"vite-plugin-vue-markdown": "^0.22.1",
|
|
89
86
|
"vite-plugin-vue-server-ref": "^0.3.0",
|
|
90
|
-
"vite-plugin-windicss": "^1.8.
|
|
91
|
-
"vue": "^3.2.
|
|
87
|
+
"vite-plugin-windicss": "^1.8.9",
|
|
88
|
+
"vue": "^3.2.45",
|
|
92
89
|
"windicss": "^3.5.6",
|
|
93
|
-
"yargs": "^17.6.2"
|
|
90
|
+
"yargs": "^17.6.2",
|
|
91
|
+
"@slidev/client": "0.38.0",
|
|
92
|
+
"@slidev/parser": "0.38.0",
|
|
93
|
+
"@slidev/types": "0.38.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
96
|
"@types/plantuml-encoder": "^1.4.0",
|