@slidev/cli 0.27.18 → 0.27.20

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/cli.js CHANGED
@@ -1,43 +1,36 @@
1
- "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1
+ "use strict"; 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
- var _chunk3QMXOBKWjs = require('./chunk-3QMXOBKW.js');
3
+ var _chunkVN5XPBZOjs = require('./chunk-VN5XPBZO.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkI4X2EWTIjs = require('./chunk-I4X2EWTI.js');
10
+ var _chunkXEDZVJCHjs = require('./chunk-XEDZVJCH.js');
11
11
 
12
12
 
13
- var _chunkDVHCB7TLjs = require('./chunk-DVHCB7TL.js');
13
+ var _chunk3ND6GSCFjs = require('./chunk-3ND6GSCF.js');
14
14
 
15
15
 
16
16
 
17
17
 
18
- var _chunk7EYE5BOQjs = require('./chunk-7EYE5BOQ.js');
18
+ var _chunkRUL3XRPSjs = require('./chunk-RUL3XRPS.js');
19
19
 
20
20
  // node/cli.ts
21
- _chunk7EYE5BOQjs.init_cjs_shims.call(void 0, );
22
- var import_fast_deep_equal = _chunk7EYE5BOQjs.__toModule.call(void 0, _chunkDVHCB7TLjs.require_fast_deep_equal.call(void 0, ));
21
+ _chunkRUL3XRPSjs.init_cjs_shims.call(void 0, );
22
+ var import_fast_deep_equal = _chunkRUL3XRPSjs.__toModule.call(void 0, _chunk3ND6GSCFjs.require_fast_deep_equal.call(void 0, ));
23
23
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
24
24
  var _net = require('net'); var _net2 = _interopRequireDefault(_net);
25
25
  var _os = require('os'); var _os2 = _interopRequireDefault(_os);
26
26
  var _child_process = require('child_process');
27
-
28
-
29
- var _readline = require('readline');
27
+ var _readline = require('readline'); var readline = _interopRequireWildcard(_readline);
30
28
  var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
31
29
  var _open = require('open'); var _open2 = _interopRequireDefault(_open);
32
30
  var _yargs = require('yargs'); var _yargs2 = _interopRequireDefault(_yargs);
33
31
  var _prompts = require('prompts'); var _prompts2 = _interopRequireDefault(_prompts);
34
32
  var _kolorist = require('kolorist');
35
-
36
-
37
-
38
-
39
-
40
- var _fs = require('@slidev/parser/fs');
33
+ var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs);
41
34
  var _isinstalledglobally = require('is-installed-globally'); var _isinstalledglobally2 = _interopRequireDefault(_isinstalledglobally);
42
35
  var CONFIG_RESTART_FIELDS = [
43
36
  "highlighter",
@@ -45,7 +38,7 @@ var CONFIG_RESTART_FIELDS = [
45
38
  "routerMode",
46
39
  "fonts"
47
40
  ];
48
- var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkI4X2EWTIjs.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
41
+ var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkXEDZVJCHjs.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
49
42
  cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOptions(args).option("port", {
50
43
  alias: "p",
51
44
  type: "number",
@@ -89,9 +82,9 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
89
82
  async function initServer() {
90
83
  if (server)
91
84
  await server.close();
92
- const options = await _chunkI4X2EWTIjs.resolveOptions.call(void 0, { entry, theme }, "dev");
85
+ const options = await _chunkXEDZVJCHjs.resolveOptions.call(void 0, { entry, theme }, "dev");
93
86
  port = userPort || await findFreePort(3030);
94
- server = await _chunk3QMXOBKWjs.createServer.call(void 0, options, {
87
+ server = await _chunkVN5XPBZOjs.createServer.call(void 0, options, {
95
88
  server: {
96
89
  port,
97
90
  strictPort: true,
@@ -102,7 +95,7 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
102
95
  logLevel: log
103
96
  }, {
104
97
  onDataReload(newData, data) {
105
- if (!theme && _chunkI4X2EWTIjs.resolveThemeName.call(void 0, newData.config.theme) !== _chunkI4X2EWTIjs.resolveThemeName.call(void 0, data.config.theme)) {
98
+ if (!theme && _chunkXEDZVJCHjs.resolveThemeName.call(void 0, newData.config.theme) !== _chunkXEDZVJCHjs.resolveThemeName.call(void 0, data.config.theme)) {
106
99
  console.log(_kolorist.yellow.call(void 0, "\n restarting on theme change\n"));
107
100
  initServer();
108
101
  } else if (CONFIG_RESTART_FIELDS.some((i) => !(0, import_fast_deep_equal.default)(newData.config[i], data.config[i]))) {
@@ -140,7 +133,7 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
140
133
  function bindShortcut() {
141
134
  process.stdin.resume();
142
135
  process.stdin.setEncoding("utf8");
143
- _readline.emitKeypressEvents.call(void 0, process.stdin);
136
+ readline.emitKeypressEvents(process.stdin);
144
137
  if (process.stdin.isTTY)
145
138
  process.stdin.setRawMode(true);
146
139
  process.stdin.on("keypress", (str, key) => {
@@ -178,8 +171,8 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
178
171
  type: "boolean",
179
172
  describe: "allow download as PDF"
180
173
  }).strict().help(), async ({ entry, theme, watch, base, download, out }) => {
181
- const { build } = await Promise.resolve().then(() => _chunk7EYE5BOQjs.__toModule.call(void 0, _chunk7EYE5BOQjs.__require.call(void 0, "./build-IDWUSCWC.js")));
182
- const options = await _chunkI4X2EWTIjs.resolveOptions.call(void 0, { entry, theme }, "build");
174
+ const { build } = await Promise.resolve().then(() => _chunkRUL3XRPSjs.__toModule.call(void 0, _chunkRUL3XRPSjs.__require.call(void 0, "./build-LK5RLV7L.js")));
175
+ const options = await _chunkXEDZVJCHjs.resolveOptions.call(void 0, { entry, theme }, "build");
183
176
  if (download && !options.data.config.download)
184
177
  options.data.config.download = download;
185
178
  printInfo(options);
@@ -192,26 +185,26 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
192
185
  });
193
186
  });
194
187
  cli.command("format [entry]", "Format the markdown file", (args) => commonOptions(args).strict().help(), async ({ entry }) => {
195
- const data = await _fs.load.call(void 0, entry);
196
- _fs.prettify.call(void 0, data);
197
- await _fs.save.call(void 0, data);
188
+ const data = await parser.load(entry);
189
+ parser.prettify(data);
190
+ await parser.save(data);
198
191
  });
199
192
  cli.command("theme [subcommand]", "Theme related operations", (command) => {
200
193
  return command.command("eject", "Eject current theme into local file system", (args) => commonOptions(args).option("dir", {
201
194
  type: "string",
202
195
  default: "theme"
203
196
  }), async ({ entry, dir, theme: themeInput }) => {
204
- const data = await _fs.load.call(void 0, entry);
205
- const theme = _chunkI4X2EWTIjs.resolveThemeName.call(void 0, themeInput || data.config.theme);
197
+ const data = await parser.load(entry);
198
+ const theme = _chunkXEDZVJCHjs.resolveThemeName.call(void 0, themeInput || data.config.theme);
206
199
  if (theme === "none") {
207
200
  console.error('Can not eject theme "none"');
208
201
  process.exit(1);
209
202
  }
210
- if (_chunkI4X2EWTIjs.isPath.call(void 0, theme)) {
203
+ if (_chunkXEDZVJCHjs.isPath.call(void 0, theme)) {
211
204
  console.error("Theme is already ejected");
212
205
  process.exit(1);
213
206
  }
214
- const roots = _chunkI4X2EWTIjs.getThemeRoots.call(void 0, theme, entry);
207
+ const roots = _chunkXEDZVJCHjs.getThemeRoots.call(void 0, theme, entry);
215
208
  if (!roots.length) {
216
209
  console.error(`Does not found theme "${theme}"`);
217
210
  process.exit(1);
@@ -223,7 +216,7 @@ cli.command("theme [subcommand]", "Theme related operations", (command) => {
223
216
  const dirPath = `./${dir}`;
224
217
  data.slides[0].frontmatter.theme = dirPath;
225
218
  data.slides[0].raw = null;
226
- await _fs.save.call(void 0, data);
219
+ await parser.save(data);
227
220
  console.log(`Theme "${theme}" ejected successfully to "${dirPath}"`);
228
221
  });
229
222
  }, () => {
@@ -266,16 +259,16 @@ cli.command("export [entry]", "Export slides to PDF", (args) => commonOptions(ar
266
259
  }) => {
267
260
  output = output || `${_path2.default.basename(entry, ".md")}-export`;
268
261
  process.env.NODE_ENV = "production";
269
- const { exportSlides } = await Promise.resolve().then(() => _chunk7EYE5BOQjs.__toModule.call(void 0, _chunk7EYE5BOQjs.__require.call(void 0, "./export-YPXOSS5M.js")));
262
+ const { exportSlides } = await Promise.resolve().then(() => _chunkRUL3XRPSjs.__toModule.call(void 0, _chunkRUL3XRPSjs.__require.call(void 0, "./export-FUMCNU5W.js")));
270
263
  const port = await findFreePort(12445);
271
- const options = await _chunkI4X2EWTIjs.resolveOptions.call(void 0, { entry, theme }, "build");
272
- const server = await _chunk3QMXOBKWjs.createServer.call(void 0, options, {
264
+ const options = await _chunkXEDZVJCHjs.resolveOptions.call(void 0, { entry, theme }, "build");
265
+ const server = await _chunkVN5XPBZOjs.createServer.call(void 0, options, {
273
266
  server: { port },
274
267
  clearScreen: false
275
268
  });
276
269
  await server.listen(port);
277
270
  printInfo(options);
278
- _fs.filterDisabled.call(void 0, options.data);
271
+ parser.filterDisabled(options.data);
279
272
  const width = 1920;
280
273
  const height = Math.round(width / options.data.config.aspectRatio);
281
274
  output = await exportSlides({
@@ -312,7 +305,7 @@ function printInfo(options, port, remote) {
312
305
  console.log();
313
306
  console.log();
314
307
  console.log(` ${_kolorist.cyan.call(void 0, "\u25CF") + _kolorist.blue.call(void 0, "\u25A0") + _kolorist.yellow.call(void 0, "\u25B2")}`);
315
- console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkI4X2EWTIjs.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
308
+ console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkXEDZVJCHjs.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
316
309
  console.log();
317
310
  console.log(_kolorist.dim.call(void 0, " theme ") + (options.theme ? _kolorist.green.call(void 0, options.theme) : _kolorist.gray.call(void 0, "none")));
318
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
@@ -1,41 +1,37 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-6HK3HED2.mjs";
3
+ } from "./chunk-2TTM3NLX.mjs";
4
4
  import {
5
5
  getThemeRoots,
6
6
  isPath,
7
7
  resolveOptions,
8
8
  resolveThemeName,
9
9
  version
10
- } from "./chunk-4A5D2CTX.mjs";
10
+ } from "./chunk-JGWGLMRC.mjs";
11
11
  import {
12
12
  require_fast_deep_equal
13
- } from "./chunk-L7QFSRQN.mjs";
13
+ } from "./chunk-FN2B33RM.mjs";
14
14
  import {
15
+ __dirname,
15
16
  __require,
16
- __toModule
17
- } from "./chunk-QQD2JVXL.mjs";
17
+ __toModule,
18
+ init_esm_shims
19
+ } from "./chunk-3LH2GTGU.mjs";
18
20
 
19
21
  // node/cli.ts
22
+ init_esm_shims();
20
23
  var import_fast_deep_equal = __toModule(require_fast_deep_equal());
21
24
  import path from "path";
22
25
  import net from "net";
23
26
  import os from "os";
24
27
  import { exec } from "child_process";
25
- import {
26
- emitKeypressEvents
27
- } from "readline";
28
+ import * as readline from "readline";
28
29
  import fs from "fs-extra";
29
30
  import openBrowser from "open";
30
31
  import yargs from "yargs";
31
32
  import prompts from "prompts";
32
33
  import { blue, bold, cyan, dim, gray, green, underline, yellow } from "kolorist";
33
- import {
34
- filterDisabled,
35
- load,
36
- prettify,
37
- save
38
- } from "@slidev/parser/fs";
34
+ import * as parser from "@slidev/parser/fs";
39
35
  import isInstalledGlobally from "is-installed-globally";
40
36
  var CONFIG_RESTART_FIELDS = [
41
37
  "highlighter",
@@ -138,7 +134,7 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
138
134
  function bindShortcut() {
139
135
  process.stdin.resume();
140
136
  process.stdin.setEncoding("utf8");
141
- emitKeypressEvents(process.stdin);
137
+ readline.emitKeypressEvents(process.stdin);
142
138
  if (process.stdin.isTTY)
143
139
  process.stdin.setRawMode(true);
144
140
  process.stdin.on("keypress", (str, key) => {
@@ -176,7 +172,7 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
176
172
  type: "boolean",
177
173
  describe: "allow download as PDF"
178
174
  }).strict().help(), async ({ entry, theme, watch, base, download, out }) => {
179
- const { build } = await Promise.resolve().then(() => __toModule(__require("./build-G4KCH5XF.mjs")));
175
+ const { build } = await Promise.resolve().then(() => __toModule(__require("./build-OT76Q4KA.mjs")));
180
176
  const options = await resolveOptions({ entry, theme }, "build");
181
177
  if (download && !options.data.config.download)
182
178
  options.data.config.download = download;
@@ -190,16 +186,16 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
190
186
  });
191
187
  });
192
188
  cli.command("format [entry]", "Format the markdown file", (args) => commonOptions(args).strict().help(), async ({ entry }) => {
193
- const data = await load(entry);
194
- prettify(data);
195
- await save(data);
189
+ const data = await parser.load(entry);
190
+ parser.prettify(data);
191
+ await parser.save(data);
196
192
  });
197
193
  cli.command("theme [subcommand]", "Theme related operations", (command) => {
198
194
  return command.command("eject", "Eject current theme into local file system", (args) => commonOptions(args).option("dir", {
199
195
  type: "string",
200
196
  default: "theme"
201
197
  }), async ({ entry, dir, theme: themeInput }) => {
202
- const data = await load(entry);
198
+ const data = await parser.load(entry);
203
199
  const theme = resolveThemeName(themeInput || data.config.theme);
204
200
  if (theme === "none") {
205
201
  console.error('Can not eject theme "none"');
@@ -221,7 +217,7 @@ cli.command("theme [subcommand]", "Theme related operations", (command) => {
221
217
  const dirPath = `./${dir}`;
222
218
  data.slides[0].frontmatter.theme = dirPath;
223
219
  data.slides[0].raw = null;
224
- await save(data);
220
+ await parser.save(data);
225
221
  console.log(`Theme "${theme}" ejected successfully to "${dirPath}"`);
226
222
  });
227
223
  }, () => {
@@ -264,7 +260,7 @@ cli.command("export [entry]", "Export slides to PDF", (args) => commonOptions(ar
264
260
  }) => {
265
261
  output = output || `${path.basename(entry, ".md")}-export`;
266
262
  process.env.NODE_ENV = "production";
267
- const { exportSlides } = await Promise.resolve().then(() => __toModule(__require("./export-4IC3K3DC.mjs")));
263
+ const { exportSlides } = await Promise.resolve().then(() => __toModule(__require("./export-IU4RLVW7.mjs")));
268
264
  const port = await findFreePort(12445);
269
265
  const options = await resolveOptions({ entry, theme }, "build");
270
266
  const server = await createServer(options, {
@@ -273,7 +269,7 @@ cli.command("export [entry]", "Export slides to PDF", (args) => commonOptions(ar
273
269
  });
274
270
  await server.listen(port);
275
271
  printInfo(options);
276
- filterDisabled(options.data);
272
+ parser.filterDisabled(options.data);
277
273
  const width = 1920;
278
274
  const height = Math.round(width / options.data.config.aspectRatio);
279
275
  output = await exportSlides({
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkI4X2EWTIjs = require('./chunk-I4X2EWTI.js');
3
+ var _chunkXEDZVJCHjs = require('./chunk-XEDZVJCH.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunk7EYE5BOQjs = require('./chunk-7EYE5BOQ.js');
8
+ var _chunkRUL3XRPSjs = require('./chunk-RUL3XRPS.js');
9
9
 
10
10
  // node/export.ts
11
- _chunk7EYE5BOQjs.init_cjs_shims.call(void 0, );
11
+ _chunkRUL3XRPSjs.init_cjs_shims.call(void 0, );
12
12
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
13
13
  var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
14
14
  var _pdflib = require('pdf-lib');
@@ -62,9 +62,9 @@ async function exportSlides({
62
62
  height = 1080,
63
63
  withClicks = false
64
64
  }) {
65
- if (!_chunkI4X2EWTIjs.packageExists.call(void 0, "playwright-chromium"))
65
+ if (!_chunkXEDZVJCHjs.packageExists.call(void 0, "playwright-chromium"))
66
66
  throw new Error("The exporting for Slidev is powered by Playwright, please installed it via `npm i playwright-chromium`");
67
- const { chromium } = await Promise.resolve().then(() => _chunk7EYE5BOQjs.__toModule.call(void 0, _chunk7EYE5BOQjs.__require.call(void 0, "playwright-chromium")));
67
+ const { chromium } = await Promise.resolve().then(() => _chunkRUL3XRPSjs.__toModule.call(void 0, _chunkRUL3XRPSjs.__require.call(void 0, "playwright-chromium")));
68
68
  const browser = await chromium.launch();
69
69
  const context = await browser.newContext({
70
70
  viewport: {
@@ -1,12 +1,14 @@
1
1
  import {
2
2
  packageExists
3
- } from "./chunk-4A5D2CTX.mjs";
3
+ } from "./chunk-JGWGLMRC.mjs";
4
4
  import {
5
5
  __require,
6
- __toModule
7
- } from "./chunk-QQD2JVXL.mjs";
6
+ __toModule,
7
+ init_esm_shims
8
+ } from "./chunk-3LH2GTGU.mjs";
8
9
 
9
10
  // node/export.ts
11
+ init_esm_shims();
10
12
  import path from "path";
11
13
  import fs from "fs-extra";
12
14
  import { PDFDocument } from "pdf-lib";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
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; } }
2
2
 
3
- var _chunk3QMXOBKWjs = require('./chunk-3QMXOBKW.js');
3
+ var _chunkVN5XPBZOjs = require('./chunk-VN5XPBZO.js');
4
4
 
5
5
 
6
6
 
@@ -8,20 +8,20 @@ var _chunk3QMXOBKWjs = require('./chunk-3QMXOBKW.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkI4X2EWTIjs = require('./chunk-I4X2EWTI.js');
11
+ var _chunkXEDZVJCHjs = require('./chunk-XEDZVJCH.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkDVHCB7TLjs = require('./chunk-DVHCB7TL.js');
15
+ var _chunk3ND6GSCFjs = require('./chunk-3ND6GSCF.js');
16
16
 
17
17
 
18
- var _chunk7EYE5BOQjs = require('./chunk-7EYE5BOQ.js');
18
+ var _chunkRUL3XRPSjs = require('./chunk-RUL3XRPS.js');
19
19
 
20
20
  // node/index.ts
21
- _chunk7EYE5BOQjs.init_cjs_shims.call(void 0, );
21
+ _chunkRUL3XRPSjs.init_cjs_shims.call(void 0, );
22
22
 
23
23
  // node/declare.ts
24
- _chunk7EYE5BOQjs.init_cjs_shims.call(void 0, );
24
+ _chunkRUL3XRPSjs.init_cjs_shims.call(void 0, );
25
25
 
26
26
  // node/index.ts
27
27
  var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs);
@@ -36,4 +36,4 @@ var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs
36
36
 
37
37
 
38
38
 
39
- exports.ViteSlidevPlugin = _chunkDVHCB7TLjs.ViteSlidevPlugin; exports.createServer = _chunk3QMXOBKWjs.createServer; exports.createWindiCSSPlugin = _chunkDVHCB7TLjs.createWindiCSSPlugin; exports.getCLIRoot = _chunkI4X2EWTIjs.getCLIRoot; exports.getClientRoot = _chunkI4X2EWTIjs.getClientRoot; exports.getThemeRoots = _chunkI4X2EWTIjs.getThemeRoots; exports.getUserRoot = _chunkI4X2EWTIjs.getUserRoot; exports.isPath = _chunkI4X2EWTIjs.isPath; exports.parser = parser; exports.resolveOptions = _chunkI4X2EWTIjs.resolveOptions;
39
+ exports.ViteSlidevPlugin = _chunk3ND6GSCFjs.ViteSlidevPlugin; exports.createServer = _chunkVN5XPBZOjs.createServer; exports.createWindiCSSPlugin = _chunk3ND6GSCFjs.createWindiCSSPlugin; exports.getCLIRoot = _chunkXEDZVJCHjs.getCLIRoot; exports.getClientRoot = _chunkXEDZVJCHjs.getClientRoot; exports.getThemeRoots = _chunkXEDZVJCHjs.getThemeRoots; exports.getUserRoot = _chunkXEDZVJCHjs.getUserRoot; exports.isPath = _chunkXEDZVJCHjs.isPath; exports.parser = parser; exports.resolveOptions = _chunkXEDZVJCHjs.resolveOptions;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-6HK3HED2.mjs";
3
+ } from "./chunk-2TTM3NLX.mjs";
4
4
  import {
5
5
  getCLIRoot,
6
6
  getClientRoot,
@@ -8,12 +8,20 @@ import {
8
8
  getUserRoot,
9
9
  isPath,
10
10
  resolveOptions
11
- } from "./chunk-4A5D2CTX.mjs";
11
+ } from "./chunk-JGWGLMRC.mjs";
12
12
  import {
13
13
  ViteSlidevPlugin,
14
14
  createWindiCSSPlugin
15
- } from "./chunk-L7QFSRQN.mjs";
16
- import "./chunk-QQD2JVXL.mjs";
15
+ } from "./chunk-FN2B33RM.mjs";
16
+ import {
17
+ init_esm_shims
18
+ } from "./chunk-3LH2GTGU.mjs";
19
+
20
+ // node/index.ts
21
+ init_esm_shims();
22
+
23
+ // node/declare.ts
24
+ init_esm_shims();
17
25
 
18
26
  // node/index.ts
19
27
  import * as parser from "@slidev/parser/fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
- "version": "0.27.18",
3
+ "version": "0.27.20",
4
4
  "description": "Presentation slides for developers",
5
5
  "homepage": "https://sli.dev",
6
6
  "bugs": "https://github.com/slidevjs/slidev/issues",
@@ -40,17 +40,17 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@antfu/utils": "^0.3.0",
43
- "@iconify-json/carbon": "^1.0.7",
44
- "@iconify-json/ph": "^1.0.1",
45
- "@slidev/client": "0.27.18",
46
- "@slidev/parser": "0.27.18",
47
- "@slidev/types": "0.27.18",
48
- "@vitejs/plugin-vue": "^1.9.3",
49
- "@vue/compiler-sfc": "^3.2.20",
43
+ "@iconify-json/carbon": "^1.0.12",
44
+ "@iconify-json/ph": "^1.0.2",
45
+ "@slidev/client": "0.27.20",
46
+ "@slidev/parser": "0.27.20",
47
+ "@slidev/types": "0.27.20",
48
+ "@vitejs/plugin-vue": "^2.0.0",
49
+ "@vue/compiler-sfc": "^3.2.26",
50
50
  "cli-progress": "^3.9.1",
51
- "codemirror": "^5.63.3",
51
+ "codemirror": "^5.64.0",
52
52
  "connect": "^3.7.0",
53
- "debug": "^4.3.2",
53
+ "debug": "^4.3.3",
54
54
  "fast-glob": "^3.2.7",
55
55
  "fs-extra": "^10.0.0",
56
56
  "global-dirs": "^3.0.0",
@@ -58,38 +58,38 @@
58
58
  "is-installed-globally": "^0.4.0",
59
59
  "jiti": "^1.12.9",
60
60
  "js-base64": "^3.7.2",
61
- "katex": "^0.13.18",
61
+ "katex": "^0.15.1",
62
62
  "kolorist": "^1.5.0",
63
- "markdown-it": "^12.2.0",
63
+ "markdown-it": "^12.3.0",
64
64
  "markdown-it-footnote": "^3.0.3",
65
65
  "markdown-it-link-attributes": "^3.0.0",
66
- "monaco-editor": "^0.29.1",
66
+ "monaco-editor": "^0.31.0",
67
67
  "nanoid": "^3.1.30",
68
- "open": "^8.3.0",
69
- "pdf-lib": "^1.17.0",
68
+ "open": "^8.4.0",
69
+ "pdf-lib": "^1.17.1",
70
70
  "plantuml-encoder": "^1.4.0",
71
71
  "prismjs": "^1.25.0",
72
72
  "prompts": "^2.4.2",
73
73
  "resolve": "^1.20.0",
74
74
  "resolve-from": "^5.0.0",
75
75
  "resolve-global": "^1.0.0",
76
- "shiki": "^0.9.12",
77
- "unplugin-icons": "^0.12.16",
78
- "unplugin-vue-components": "^0.16.0",
79
- "vite": "^2.6.10",
80
- "vite-plugin-md": "^0.11.2",
76
+ "shiki": "^0.9.15",
77
+ "unplugin-icons": "^0.12.23",
78
+ "unplugin-vue-components": "^0.17.9",
79
+ "vite": "^2.7.2",
80
+ "vite-plugin-md": "^0.11.6",
81
81
  "vite-plugin-remote-assets": "^0.2.2",
82
82
  "vite-plugin-vue-server-ref": "^0.2.4",
83
- "vite-plugin-windicss": "^1.4.12",
84
- "vue": "^3.2.20",
85
- "windicss": "^3.1.9",
86
- "yargs": "^17.2.1"
83
+ "vite-plugin-windicss": "^1.5.4",
84
+ "vue": "^3.2.26",
85
+ "windicss": "^3.3.0",
86
+ "yargs": "^17.3.0"
87
87
  },
88
88
  "devDependencies": {
89
89
  "@types/plantuml-encoder": "^1.4.0",
90
90
  "fast-deep-equal": "^3.1.3",
91
91
  "semver": "^7.3.5",
92
- "sirv": "^1.0.18"
92
+ "sirv": "^1.0.19"
93
93
  },
94
94
  "engines": {
95
95
  "node": ">=14.0.0"