@slidev/cli 0.34.2 → 0.34.3

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkXIB52LE6js = require('./chunk-XIB52LE6.js');
5
+ var _chunk4MU7RGP4js = require('./chunk-4MU7RGP4.js');
6
6
 
7
7
 
8
8
 
@@ -655,13 +655,13 @@ async function build(options, viteConfig = {}) {
655
655
  let originalIndexHTML;
656
656
  if (_fsextra2.default.existsSync(indexPath))
657
657
  originalIndexHTML = await _fsextra2.default.readFile(indexPath, "utf-8");
658
- await _fsextra2.default.writeFile(indexPath, await _chunkXIB52LE6js.getIndexHtml.call(void 0, options), "utf-8");
658
+ await _fsextra2.default.writeFile(indexPath, await _chunk4MU7RGP4js.getIndexHtml.call(void 0, options), "utf-8");
659
659
  let config = void 0;
660
660
  try {
661
- const inlineConfig = await _chunkXIB52LE6js.mergeViteConfigs.call(void 0, options, viteConfig, {
661
+ const inlineConfig = await _chunk4MU7RGP4js.mergeViteConfigs.call(void 0, options, viteConfig, {
662
662
  root: options.userRoot,
663
663
  plugins: [
664
- await _chunkXIB52LE6js.ViteSlidevPlugin.call(void 0, options, pluginOptions),
664
+ await _chunk4MU7RGP4js.ViteSlidevPlugin.call(void 0, options, pluginOptions),
665
665
  {
666
666
  name: "resolve-config",
667
667
  configResolved(_config) {
@@ -679,7 +679,7 @@ async function build(options, viteConfig = {}) {
679
679
  console.log(_kolorist.yellow.call(void 0, " Monaco is disabled in the build, to enabled it, set `monaco: true` in the frontmatter"));
680
680
  } else {
681
681
  console.log(_kolorist.blue.call(void 0, " building for Monaco...\n"));
682
- await _vite.build.call(void 0, await _chunkXIB52LE6js.mergeViteConfigs.call(void 0, options, inlineConfig, {
682
+ await _vite.build.call(void 0, await _chunk4MU7RGP4js.mergeViteConfigs.call(void 0, options, inlineConfig, {
683
683
  root: _path.join.call(void 0, options.clientRoot, "iframes/monaco"),
684
684
  base: `${config.base}iframes/monaco/`,
685
685
  build: {
@@ -2,7 +2,7 @@ import {
2
2
  ViteSlidevPlugin,
3
3
  getIndexHtml,
4
4
  mergeViteConfigs
5
- } from "./chunk-4NHF5SPM.mjs";
5
+ } from "./chunk-VI5P2KM6.mjs";
6
6
  import {
7
7
  __require,
8
8
  __toESM,
@@ -224,7 +224,8 @@ async function loadDrawings(options) {
224
224
  const files = await _fastglob2.default.call(void 0, "*.svg", {
225
225
  onlyFiles: true,
226
226
  cwd: dir,
227
- absolute: true
227
+ absolute: true,
228
+ suppressErrors: true
228
229
  });
229
230
  const obj = {};
230
231
  Promise.all(files.map(async (path) => {
@@ -771,7 +772,8 @@ defineProps<{ no: number | string }>()`);
771
772
  for (const root of roots2) {
772
773
  const layoutPaths = await _fastglob2.default.call(void 0, "layouts/**/*.{vue,ts}", {
773
774
  cwd: root,
774
- absolute: true
775
+ absolute: true,
776
+ suppressErrors: true
775
777
  });
776
778
  for (const layoutPath of layoutPaths) {
777
779
  const layout = _path.basename.call(void 0, layoutPath).replace(/\.\w+$/, "");
@@ -1021,6 +1023,7 @@ var _jsbase64 = require('js-base64'); var base64 = _interopRequireWildcard(_jsba
1021
1023
 
1022
1024
 
1023
1025
  var _markdownitfootnote = require('markdown-it-footnote'); var _markdownitfootnote2 = _interopRequireDefault(_markdownitfootnote);
1026
+ var _markdownittasklists = require('@hedgedoc/markdown-it-task-lists'); var _markdownittasklists2 = _interopRequireDefault(_markdownittasklists);
1024
1027
  var _shiki = require('shiki'); var Shiki = _interopRequireWildcard(_shiki);
1025
1028
  var _plantumlencoder = require('plantuml-encoder');
1026
1029
 
@@ -1326,6 +1329,7 @@ async function createMarkdownPlugin({ data: { config }, roots, mode, entry }, {
1326
1329
  }
1327
1330
  });
1328
1331
  md2.use(_markdownitfootnote2.default);
1332
+ md2.use(_markdownittasklists2.default, { enabled: true, lineNumber: true, label: true });
1329
1333
  md2.use(math_plugin, KatexOptions);
1330
1334
  setups.forEach((i) => i(md2));
1331
1335
  (_a = mdOptions == null ? void 0 : mdOptions.markdownItSetup) == null ? void 0 : _a.call(mdOptions, md2);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ViteSlidevPlugin,
3
3
  mergeViteConfigs
4
- } from "./chunk-4NHF5SPM.mjs";
4
+ } from "./chunk-VI5P2KM6.mjs";
5
5
  import {
6
6
  __commonJS,
7
7
  __dirname,
@@ -2399,7 +2399,7 @@ init_esm_shims();
2399
2399
  import * as parser from "@slidev/parser/fs";
2400
2400
 
2401
2401
  // package.json
2402
- var version = "0.34.2";
2402
+ var version = "0.34.3";
2403
2403
 
2404
2404
  // node/themes.ts
2405
2405
  init_esm_shims();
@@ -9505,25 +9505,29 @@ import _debug from "debug";
9505
9505
  init_esm_shims();
9506
9506
  var import_semver = __toESM(require_semver2());
9507
9507
  import fs2 from "fs-extra";
9508
- function getPackageJson(root) {
9509
- const file = resolveImportPath(`${root}/package.json`, true);
9510
- if (file && fs2.existsSync(file))
9511
- return fs2.readJSON(file);
9512
- return {};
9508
+ async function getPackageJson(root) {
9509
+ try {
9510
+ const file = resolveImportPath(`${root}/package.json`, true);
9511
+ if (file && fs2.existsSync(file))
9512
+ return await fs2.readJSON(file);
9513
+ return {};
9514
+ } catch (e) {
9515
+ return {};
9516
+ }
9513
9517
  }
9514
9518
  async function getAddons(userRoot, config2) {
9515
9519
  const { slidev = {} } = await getPackageJson(userRoot);
9516
9520
  const configAddons = Array.isArray(config2.addons) ? config2.addons : [];
9517
9521
  const addons = configAddons.concat(Array.isArray(slidev == null ? void 0 : slidev.addons) ? slidev.addons : []);
9518
- return getRecursivePlugins(addons.map(resolvePluginName));
9522
+ return (await getRecursivePlugins(addons.map(resolvePluginName), 3)).filter(Boolean);
9519
9523
  }
9520
- async function getRecursivePlugins(addons) {
9524
+ async function getRecursivePlugins(addons, depth) {
9521
9525
  const addonsArray = await Promise.all(addons.map(async (addon) => {
9522
9526
  const { slidev = {}, engines = {} } = await getPackageJson(addon);
9523
9527
  checkEngine(addon, engines);
9524
9528
  let addons2 = Array.isArray(slidev == null ? void 0 : slidev.addons) ? slidev.addons : [];
9525
- if (addons2.length > 0)
9526
- addons2 = await getRecursivePlugins(addons2.map(resolvePluginName));
9529
+ if (addons2.length > 0 && depth)
9530
+ addons2 = await getRecursivePlugins(addons2.map(resolvePluginName), depth - 1);
9527
9531
  addons2.push(addon);
9528
9532
  return addons2;
9529
9533
  }));
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
3
 
4
- var _chunkXIB52LE6js = require('./chunk-XIB52LE6.js');
4
+ var _chunk4MU7RGP4js = require('./chunk-4MU7RGP4.js');
5
5
 
6
6
 
7
7
 
@@ -2380,14 +2380,14 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
2380
2380
  const rawConfig = await _vite.resolveConfig.call(void 0, {}, "serve");
2381
2381
  const pluginOptions = rawConfig.slidev || {};
2382
2382
  process.env.EDITOR = process.env.EDITOR || "code";
2383
- const server = await _vite.createServer.call(void 0, await _chunkXIB52LE6js.mergeViteConfigs.call(void 0, options, viteConfig, {
2383
+ const server = await _vite.createServer.call(void 0, await _chunk4MU7RGP4js.mergeViteConfigs.call(void 0, options, viteConfig, {
2384
2384
  optimizeDeps: {
2385
2385
  entries: [
2386
2386
  _path.join.call(void 0, options.clientRoot, "main.ts")
2387
2387
  ]
2388
2388
  },
2389
2389
  plugins: [
2390
- await _chunkXIB52LE6js.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
2390
+ await _chunk4MU7RGP4js.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
2391
2391
  ]
2392
2392
  }, "serve"));
2393
2393
  return server;
@@ -2398,7 +2398,7 @@ _chunkSQLX75IOjs.init_cjs_shims.call(void 0, );
2398
2398
  var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs);
2399
2399
 
2400
2400
  // package.json
2401
- var version = "0.34.2";
2401
+ var version = "0.34.3";
2402
2402
 
2403
2403
  // node/themes.ts
2404
2404
  _chunkSQLX75IOjs.init_cjs_shims.call(void 0, );
@@ -9513,25 +9513,29 @@ var _debug2 = require('debug'); var _debug3 = _interopRequireDefault(_debug2);
9513
9513
  _chunkSQLX75IOjs.init_cjs_shims.call(void 0, );
9514
9514
  var import_semver = _chunkSQLX75IOjs.__toESM.call(void 0, require_semver2());
9515
9515
 
9516
- function getPackageJson(root) {
9517
- const file = _chunkSQLX75IOjs.resolveImportPath.call(void 0, `${root}/package.json`, true);
9518
- if (file && _fsextra2.default.existsSync(file))
9519
- return _fsextra2.default.readJSON(file);
9520
- return {};
9516
+ async function getPackageJson(root) {
9517
+ try {
9518
+ const file = _chunkSQLX75IOjs.resolveImportPath.call(void 0, `${root}/package.json`, true);
9519
+ if (file && _fsextra2.default.existsSync(file))
9520
+ return await _fsextra2.default.readJSON(file);
9521
+ return {};
9522
+ } catch (e) {
9523
+ return {};
9524
+ }
9521
9525
  }
9522
9526
  async function getAddons(userRoot, config2) {
9523
9527
  const { slidev = {} } = await getPackageJson(userRoot);
9524
9528
  const configAddons = Array.isArray(config2.addons) ? config2.addons : [];
9525
9529
  const addons = configAddons.concat(Array.isArray(slidev == null ? void 0 : slidev.addons) ? slidev.addons : []);
9526
- return getRecursivePlugins(addons.map(resolvePluginName));
9530
+ return (await getRecursivePlugins(addons.map(resolvePluginName), 3)).filter(Boolean);
9527
9531
  }
9528
- async function getRecursivePlugins(addons) {
9532
+ async function getRecursivePlugins(addons, depth) {
9529
9533
  const addonsArray = await Promise.all(addons.map(async (addon) => {
9530
9534
  const { slidev = {}, engines = {} } = await getPackageJson(addon);
9531
9535
  checkEngine(addon, engines);
9532
9536
  let addons2 = Array.isArray(slidev == null ? void 0 : slidev.addons) ? slidev.addons : [];
9533
- if (addons2.length > 0)
9534
- addons2 = await getRecursivePlugins(addons2.map(resolvePluginName));
9537
+ if (addons2.length > 0 && depth)
9538
+ addons2 = await getRecursivePlugins(addons2.map(resolvePluginName), depth - 1);
9535
9539
  addons2.push(addon);
9536
9540
  return addons2;
9537
9541
  }));
@@ -225,7 +225,8 @@ async function loadDrawings(options) {
225
225
  const files = await fg("*.svg", {
226
226
  onlyFiles: true,
227
227
  cwd: dir,
228
- absolute: true
228
+ absolute: true,
229
+ suppressErrors: true
229
230
  });
230
231
  const obj = {};
231
232
  Promise.all(files.map(async (path) => {
@@ -772,7 +773,8 @@ defineProps<{ no: number | string }>()`);
772
773
  for (const root of roots2) {
773
774
  const layoutPaths = await fg2("layouts/**/*.{vue,ts}", {
774
775
  cwd: root,
775
- absolute: true
776
+ absolute: true,
777
+ suppressErrors: true
776
778
  });
777
779
  for (const layoutPath of layoutPaths) {
778
780
  const layout = basename2(layoutPath).replace(/\.\w+$/, "");
@@ -1022,6 +1024,7 @@ import * as base64 from "js-base64";
1022
1024
  import { slash as slash5 } from "@antfu/utils";
1023
1025
  import mila2 from "markdown-it-link-attributes";
1024
1026
  import mif from "markdown-it-footnote";
1027
+ import mitl from "@hedgedoc/markdown-it-task-lists";
1025
1028
  import * as Shiki from "shiki";
1026
1029
  import { encode as encode2 } from "plantuml-encoder";
1027
1030
 
@@ -1327,6 +1330,7 @@ async function createMarkdownPlugin({ data: { config }, roots, mode, entry }, {
1327
1330
  }
1328
1331
  });
1329
1332
  md2.use(mif);
1333
+ md2.use(mitl, { enabled: true, lineNumber: true, label: true });
1330
1334
  md2.use(math_plugin, KatexOptions);
1331
1335
  setups.forEach((i) => i(md2));
1332
1336
  (_a = mdOptions == null ? void 0 : mdOptions.markdownItSetup) == null ? void 0 : _a.call(mdOptions, md2);
package/dist/cli.js CHANGED
@@ -6,10 +6,10 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkEN47OEVJjs = require('./chunk-EN47OEVJ.js');
9
+ var _chunkDQTRW726js = require('./chunk-DQTRW726.js');
10
10
 
11
11
 
12
- var _chunkXIB52LE6js = require('./chunk-XIB52LE6.js');
12
+ var _chunk4MU7RGP4js = require('./chunk-4MU7RGP4.js');
13
13
 
14
14
 
15
15
 
@@ -18,7 +18,7 @@ var _chunkSQLX75IOjs = require('./chunk-SQLX75IO.js');
18
18
 
19
19
  // node/cli.ts
20
20
  _chunkSQLX75IOjs.init_cjs_shims.call(void 0, );
21
- var import_fast_deep_equal = _chunkSQLX75IOjs.__toESM.call(void 0, _chunkXIB52LE6js.require_fast_deep_equal.call(void 0, ));
21
+ var import_fast_deep_equal = _chunkSQLX75IOjs.__toESM.call(void 0, _chunk4MU7RGP4js.require_fast_deep_equal.call(void 0, ));
22
22
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
23
23
  var _net = require('net'); var _net2 = _interopRequireDefault(_net);
24
24
  var _os = require('os'); var _os2 = _interopRequireDefault(_os);
@@ -38,7 +38,7 @@ var CONFIG_RESTART_FIELDS = [
38
38
  "fonts",
39
39
  "css"
40
40
  ];
41
- var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkEN47OEVJjs.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
41
+ var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkDQTRW726js.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
42
42
  cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOptions(args).option("port", {
43
43
  alias: "p",
44
44
  type: "number",
@@ -81,9 +81,9 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
81
81
  async function initServer() {
82
82
  if (server)
83
83
  await server.close();
84
- const options = await _chunkEN47OEVJjs.resolveOptions.call(void 0, { entry, remote, theme }, "dev");
84
+ const options = await _chunkDQTRW726js.resolveOptions.call(void 0, { entry, remote, theme }, "dev");
85
85
  port = userPort || await findFreePort(3030);
86
- server = await _chunkEN47OEVJjs.createServer.call(void 0, options, {
86
+ server = await _chunkDQTRW726js.createServer.call(void 0, options, {
87
87
  server: {
88
88
  port,
89
89
  strictPort: true,
@@ -94,7 +94,7 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
94
94
  logLevel: log
95
95
  }, {
96
96
  onDataReload(newData, data) {
97
- if (!theme && _chunkEN47OEVJjs.resolveThemeName.call(void 0, newData.config.theme) !== _chunkEN47OEVJjs.resolveThemeName.call(void 0, data.config.theme)) {
97
+ if (!theme && _chunkDQTRW726js.resolveThemeName.call(void 0, newData.config.theme) !== _chunkDQTRW726js.resolveThemeName.call(void 0, data.config.theme)) {
98
98
  console.log(_kolorist.yellow.call(void 0, "\n restarting on theme change\n"));
99
99
  initServer();
100
100
  } else if (CONFIG_RESTART_FIELDS.some((i) => !(0, import_fast_deep_equal.default)(newData.config[i], data.config[i]))) {
@@ -170,8 +170,8 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
170
170
  type: "boolean",
171
171
  describe: "allow download as PDF"
172
172
  }).strict().help(), async ({ entry, theme, watch, base, download, out }) => {
173
- const { build } = await Promise.resolve().then(() => _chunkSQLX75IOjs.__toESM.call(void 0, _chunkSQLX75IOjs.__require.call(void 0, "./build-ZRCGLMWG.js")));
174
- const options = await _chunkEN47OEVJjs.resolveOptions.call(void 0, { entry, theme }, "build");
173
+ const { build } = await Promise.resolve().then(() => _chunkSQLX75IOjs.__toESM.call(void 0, _chunkSQLX75IOjs.__require.call(void 0, "./build-3A4647TA.js")));
174
+ const options = await _chunkDQTRW726js.resolveOptions.call(void 0, { entry, theme }, "build");
175
175
  if (download && !options.data.config.download)
176
176
  options.data.config.download = download;
177
177
  printInfo(options);
@@ -184,26 +184,26 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
184
184
  });
185
185
  });
186
186
  cli.command("format [entry]", "Format the markdown file", (args) => commonOptions(args).strict().help(), async ({ entry }) => {
187
- const data = await _chunkEN47OEVJjs.parser.load(entry);
188
- _chunkEN47OEVJjs.parser.prettify(data);
189
- await _chunkEN47OEVJjs.parser.save(data);
187
+ const data = await _chunkDQTRW726js.parser.load(entry);
188
+ _chunkDQTRW726js.parser.prettify(data);
189
+ await _chunkDQTRW726js.parser.save(data);
190
190
  });
191
191
  cli.command("theme [subcommand]", "Theme related operations", (command) => {
192
192
  return command.command("eject", "Eject current theme into local file system", (args) => commonOptions(args).option("dir", {
193
193
  type: "string",
194
194
  default: "theme"
195
195
  }), async ({ entry, dir, theme: themeInput }) => {
196
- const data = await _chunkEN47OEVJjs.parser.load(entry);
197
- const theme = _chunkEN47OEVJjs.resolveThemeName.call(void 0, themeInput || data.config.theme);
196
+ const data = await _chunkDQTRW726js.parser.load(entry);
197
+ const theme = _chunkDQTRW726js.resolveThemeName.call(void 0, themeInput || data.config.theme);
198
198
  if (theme === "none") {
199
199
  console.error('Can not eject theme "none"');
200
200
  process.exit(1);
201
201
  }
202
- if (_chunkEN47OEVJjs.isPath.call(void 0, theme)) {
202
+ if (_chunkDQTRW726js.isPath.call(void 0, theme)) {
203
203
  console.error("Theme is already ejected");
204
204
  process.exit(1);
205
205
  }
206
- const roots = _chunkEN47OEVJjs.getThemeRoots.call(void 0, theme, entry);
206
+ const roots = _chunkDQTRW726js.getThemeRoots.call(void 0, theme, entry);
207
207
  if (!roots.length) {
208
208
  console.error(`Does not found theme "${theme}"`);
209
209
  process.exit(1);
@@ -215,7 +215,7 @@ cli.command("theme [subcommand]", "Theme related operations", (command) => {
215
215
  const dirPath = `./${dir}`;
216
216
  data.slides[0].frontmatter.theme = dirPath;
217
217
  data.slides[0].raw = null;
218
- await _chunkEN47OEVJjs.parser.save(data);
218
+ await _chunkDQTRW726js.parser.save(data);
219
219
  console.log(`Theme "${theme}" ejected successfully to "${dirPath}"`);
220
220
  });
221
221
  }, () => {
@@ -259,15 +259,15 @@ cli.command("export [entry]", "Export slides to PDF", (args) => commonOptions(ar
259
259
  process.env.NODE_ENV = "production";
260
260
  const { exportSlides } = await Promise.resolve().then(() => _chunkSQLX75IOjs.__toESM.call(void 0, _chunkSQLX75IOjs.__require.call(void 0, "./export-TH7MNEXN.js")));
261
261
  const port = await findFreePort(12445);
262
- const options = await _chunkEN47OEVJjs.resolveOptions.call(void 0, { entry, theme }, "build");
262
+ const options = await _chunkDQTRW726js.resolveOptions.call(void 0, { entry, theme }, "build");
263
263
  output = output || options.data.config.exportFilename || `${_path2.default.basename(entry, ".md")}-export`;
264
- const server = await _chunkEN47OEVJjs.createServer.call(void 0, options, {
264
+ const server = await _chunkDQTRW726js.createServer.call(void 0, options, {
265
265
  server: { port },
266
266
  clearScreen: false
267
267
  });
268
268
  await server.listen(port);
269
269
  printInfo(options);
270
- _chunkEN47OEVJjs.parser.filterDisabled(options.data);
270
+ _chunkDQTRW726js.parser.filterDisabled(options.data);
271
271
  const width = options.data.config.canvasWidth;
272
272
  const height = Math.round(width / options.data.config.aspectRatio);
273
273
  output = await exportSlides({
@@ -305,7 +305,7 @@ function printInfo(options, port, remote) {
305
305
  console.log();
306
306
  console.log();
307
307
  console.log(` ${_kolorist.cyan.call(void 0, "\u25CF") + _kolorist.blue.call(void 0, "\u25A0") + _kolorist.yellow.call(void 0, "\u25B2")}`);
308
- console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkEN47OEVJjs.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
308
+ console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkDQTRW726js.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
309
309
  console.log();
310
310
  console.log(_kolorist.dim.call(void 0, " theme ") + (options.theme ? _kolorist.green.call(void 0, options.theme) : _kolorist.gray.call(void 0, "none")));
311
311
  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
@@ -6,10 +6,10 @@ import {
6
6
  resolveOptions,
7
7
  resolveThemeName,
8
8
  version
9
- } from "./chunk-4BYU5VF4.mjs";
9
+ } from "./chunk-C3EQABQP.mjs";
10
10
  import {
11
11
  require_fast_deep_equal
12
- } from "./chunk-4NHF5SPM.mjs";
12
+ } from "./chunk-VI5P2KM6.mjs";
13
13
  import {
14
14
  __dirname,
15
15
  __require,
@@ -171,7 +171,7 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
171
171
  type: "boolean",
172
172
  describe: "allow download as PDF"
173
173
  }).strict().help(), async ({ entry, theme, watch, base, download, out }) => {
174
- const { build } = await Promise.resolve().then(() => __toESM(__require("./build-F5QDKRVS.mjs")));
174
+ const { build } = await Promise.resolve().then(() => __toESM(__require("./build-A6ASQ6Y3.mjs")));
175
175
  const options = await resolveOptions({ entry, theme }, "build");
176
176
  if (download && !options.data.config.download)
177
177
  options.data.config.download = download;
package/dist/index.js CHANGED
@@ -9,11 +9,11 @@
9
9
 
10
10
 
11
11
 
12
- var _chunkEN47OEVJjs = require('./chunk-EN47OEVJ.js');
12
+ var _chunkDQTRW726js = require('./chunk-DQTRW726.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkXIB52LE6js = require('./chunk-XIB52LE6.js');
16
+ var _chunk4MU7RGP4js = require('./chunk-4MU7RGP4.js');
17
17
 
18
18
 
19
19
  var _chunkSQLX75IOjs = require('./chunk-SQLX75IO.js');
@@ -36,4 +36,4 @@ _chunkSQLX75IOjs.init_cjs_shims.call(void 0, );
36
36
 
37
37
 
38
38
 
39
- exports.ViteSlidevPlugin = _chunkXIB52LE6js.ViteSlidevPlugin; exports.createServer = _chunkEN47OEVJjs.createServer; exports.createWindiCSSPlugin = _chunkXIB52LE6js.createWindiCSSPlugin; exports.getAddonRoots = _chunkEN47OEVJjs.getAddonRoots; exports.getCLIRoot = _chunkEN47OEVJjs.getCLIRoot; exports.getClientRoot = _chunkEN47OEVJjs.getClientRoot; exports.getRoot = _chunkEN47OEVJjs.getRoot; exports.getThemeRoots = _chunkEN47OEVJjs.getThemeRoots; exports.getUserRoot = _chunkEN47OEVJjs.getUserRoot; exports.isPath = _chunkEN47OEVJjs.isPath; exports.parser = _chunkEN47OEVJjs.parser; exports.resolveOptions = _chunkEN47OEVJjs.resolveOptions;
39
+ exports.ViteSlidevPlugin = _chunk4MU7RGP4js.ViteSlidevPlugin; exports.createServer = _chunkDQTRW726js.createServer; exports.createWindiCSSPlugin = _chunk4MU7RGP4js.createWindiCSSPlugin; exports.getAddonRoots = _chunkDQTRW726js.getAddonRoots; exports.getCLIRoot = _chunkDQTRW726js.getCLIRoot; exports.getClientRoot = _chunkDQTRW726js.getClientRoot; exports.getRoot = _chunkDQTRW726js.getRoot; exports.getThemeRoots = _chunkDQTRW726js.getThemeRoots; exports.getUserRoot = _chunkDQTRW726js.getUserRoot; exports.isPath = _chunkDQTRW726js.isPath; exports.parser = _chunkDQTRW726js.parser; exports.resolveOptions = _chunkDQTRW726js.resolveOptions;
package/dist/index.mjs CHANGED
@@ -9,11 +9,11 @@ import {
9
9
  isPath,
10
10
  parser,
11
11
  resolveOptions
12
- } from "./chunk-4BYU5VF4.mjs";
12
+ } from "./chunk-C3EQABQP.mjs";
13
13
  import {
14
14
  ViteSlidevPlugin,
15
15
  createWindiCSSPlugin
16
- } from "./chunk-4NHF5SPM.mjs";
16
+ } from "./chunk-VI5P2KM6.mjs";
17
17
  import {
18
18
  init_esm_shims
19
19
  } from "./chunk-GVA336JI.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
- "version": "0.34.2",
3
+ "version": "0.34.3",
4
4
  "description": "Presentation slides for developers",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -43,11 +43,12 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@antfu/utils": "^0.5.2",
46
+ "@hedgedoc/markdown-it-task-lists": "^1.0.4",
46
47
  "@iconify-json/carbon": "^1.1.6",
47
48
  "@iconify-json/ph": "^1.1.2",
48
- "@slidev/client": "0.34.2",
49
- "@slidev/parser": "0.34.2",
50
- "@slidev/types": "0.34.2",
49
+ "@slidev/client": "0.34.3",
50
+ "@slidev/parser": "0.34.3",
51
+ "@slidev/types": "0.34.3",
51
52
  "@vitejs/plugin-vue": "^2.3.3",
52
53
  "@vue/compiler-sfc": "^3.2.37",
53
54
  "cli-progress": "^3.11.2",