@slidev/cli 0.22.6 → 0.23.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,15 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3QL4BHWJjs = require('./chunk-3QL4BHWJ.js');
3
+ var _chunkM25N7CYCjs = require('./chunk-M25N7CYC.js');
4
4
 
5
5
  // node/server.ts
6
6
  var _vite = require('vite');
7
7
  async function createServer(options, viteConfig = {}, serverOptions = {}) {
8
8
  const rawConfig = await _vite.resolveConfig.call(void 0, {}, "serve");
9
9
  const pluginOptions = rawConfig.slidev || {};
10
+ process.env.EDITOR = process.env.EDITOR || "code";
10
11
  const server = await _vite.createServer.call(void 0, _vite.mergeConfig.call(void 0, viteConfig, {
11
12
  plugins: [
12
- await _chunk3QL4BHWJjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
13
+ await _chunkM25N7CYCjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
13
14
  ]
14
15
  }));
15
16
  return server;
@@ -1,12 +1,13 @@
1
1
  import {
2
2
  ViteSlidevPlugin
3
- } from "./chunk-WW3PRZGC.mjs";
3
+ } from "./chunk-NHK2R4LN.mjs";
4
4
 
5
5
  // node/server.ts
6
6
  import { createServer as createViteServer, mergeConfig, resolveConfig } from "vite";
7
7
  async function createServer(options, viteConfig = {}, serverOptions = {}) {
8
8
  const rawConfig = await resolveConfig({}, "serve");
9
9
  const pluginOptions = rawConfig.slidev || {};
10
+ process.env.EDITOR = process.env.EDITOR || "code";
10
11
  const server = await createViteServer(mergeConfig(viteConfig, {
11
12
  plugins: [
12
13
  await ViteSlidevPlugin(options, pluginOptions, serverOptions)
package/dist/cli.js CHANGED
@@ -1,23 +1,23 @@
1
1
  "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkZRBGXFM7js = require('./chunk-ZRBGXFM7.js');
3
+ var _chunkUJKYYHMFjs = require('./chunk-UJKYYHMF.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkZCNASYZVjs = require('./chunk-ZCNASYZV.js');
10
+ var _chunkS6F4YP7Zjs = require('./chunk-S6F4YP7Z.js');
11
11
 
12
12
 
13
- var _chunk3QL4BHWJjs = require('./chunk-3QL4BHWJ.js');
13
+ var _chunkM25N7CYCjs = require('./chunk-M25N7CYC.js');
14
14
 
15
15
 
16
16
 
17
17
  var _chunkKRCSYS75js = require('./chunk-KRCSYS75.js');
18
18
 
19
19
  // node/cli.ts
20
- var import_fast_deep_equal = _chunkKRCSYS75js.__toModule.call(void 0, _chunk3QL4BHWJjs.require_fast_deep_equal.call(void 0, ));
20
+ var import_fast_deep_equal = _chunkKRCSYS75js.__toModule.call(void 0, _chunkM25N7CYCjs.require_fast_deep_equal.call(void 0, ));
21
21
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
22
22
  var _net = require('net'); var _net2 = _interopRequireDefault(_net);
23
23
  var _os = require('os'); var _os2 = _interopRequireDefault(_os);
@@ -40,7 +40,7 @@ var CONFIG_RESTART_FIELDS = [
40
40
  "routerMode",
41
41
  "fonts"
42
42
  ];
43
- var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkZCNASYZVjs.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
43
+ var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkS6F4YP7Zjs.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
44
44
  cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOptions(args).option("port", {
45
45
  alias: "p",
46
46
  type: "number",
@@ -84,9 +84,9 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
84
84
  async function initServer() {
85
85
  if (server)
86
86
  await server.close();
87
- const options = await _chunkZCNASYZVjs.resolveOptions.call(void 0, { entry, theme }, "dev");
87
+ const options = await _chunkS6F4YP7Zjs.resolveOptions.call(void 0, { entry, theme }, "dev");
88
88
  port = userPort || await findFreePort(3030);
89
- server = await _chunkZRBGXFM7js.createServer.call(void 0, options, {
89
+ server = await _chunkUJKYYHMFjs.createServer.call(void 0, options, {
90
90
  server: {
91
91
  port,
92
92
  strictPort: true,
@@ -97,7 +97,7 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
97
97
  logLevel: log
98
98
  }, {
99
99
  onDataReload(newData, data) {
100
- if (!theme && _chunkZCNASYZVjs.resolveThemeName.call(void 0, newData.config.theme) !== _chunkZCNASYZVjs.resolveThemeName.call(void 0, data.config.theme)) {
100
+ if (!theme && _chunkS6F4YP7Zjs.resolveThemeName.call(void 0, newData.config.theme) !== _chunkS6F4YP7Zjs.resolveThemeName.call(void 0, data.config.theme)) {
101
101
  console.log(_kolorist.yellow.call(void 0, "\n restarting on theme change\n"));
102
102
  initServer();
103
103
  } else if (CONFIG_RESTART_FIELDS.some((i) => !(0, import_fast_deep_equal.default)(newData.config[i], data.config[i]))) {
@@ -112,18 +112,21 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
112
112
  const SHORTCUTS = [
113
113
  {
114
114
  name: "r",
115
+ fullname: "restart",
115
116
  action() {
116
117
  initServer();
117
118
  }
118
119
  },
119
120
  {
120
121
  name: "o",
122
+ fullname: "open",
121
123
  action() {
122
124
  _open2.default.call(void 0, `http://localhost:${port}`);
123
125
  }
124
126
  },
125
127
  {
126
128
  name: "e",
129
+ fullname: "edit",
127
130
  action() {
128
131
  _child_process.exec.call(void 0, `code "${entry}"`);
129
132
  }
@@ -134,9 +137,14 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
134
137
  process.stdin.setEncoding("utf8");
135
138
  process.stdin.on("data", (data) => {
136
139
  const str = data.toString().trim().toLowerCase();
137
- const sh = SHORTCUTS.filter((item) => item.name === str)[0];
138
- if (sh)
139
- sh.action();
140
+ const [sh] = SHORTCUTS.filter((item) => item.name === str);
141
+ if (sh) {
142
+ try {
143
+ sh.action();
144
+ } catch (err) {
145
+ console.error(`Failed to execute shortcut ${sh.fullname}`, err);
146
+ }
147
+ }
140
148
  });
141
149
  }
142
150
  initServer();
@@ -159,8 +167,8 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
159
167
  type: "boolean",
160
168
  describe: "allow download as PDF"
161
169
  }).strict().help(), async ({ entry, theme, watch, base, download, out }) => {
162
- const { build } = await Promise.resolve().then(() => _chunkKRCSYS75js.__toModule.call(void 0, _chunkKRCSYS75js.__require.call(void 0, "./build-NE7OFJDC.js")));
163
- const options = await _chunkZCNASYZVjs.resolveOptions.call(void 0, { entry, theme }, "build");
170
+ const { build } = await Promise.resolve().then(() => _chunkKRCSYS75js.__toModule.call(void 0, _chunkKRCSYS75js.__require.call(void 0, "./build-QDRV2UJ5.js")));
171
+ const options = await _chunkS6F4YP7Zjs.resolveOptions.call(void 0, { entry, theme }, "build");
164
172
  if (download && !options.data.config.download)
165
173
  options.data.config.download = download;
166
174
  printInfo(options);
@@ -183,16 +191,16 @@ cli.command("theme [subcommand]", "Theme related operations", (command) => {
183
191
  default: "theme"
184
192
  }), async ({ entry, dir, theme: themeInput }) => {
185
193
  const data = await _fs.load.call(void 0, entry);
186
- const theme = _chunkZCNASYZVjs.resolveThemeName.call(void 0, themeInput || data.config.theme);
194
+ const theme = _chunkS6F4YP7Zjs.resolveThemeName.call(void 0, themeInput || data.config.theme);
187
195
  if (theme === "none") {
188
196
  console.error('Can not eject theme "none"');
189
197
  process.exit(1);
190
198
  }
191
- if (_chunkZCNASYZVjs.isPath.call(void 0, theme)) {
199
+ if (_chunkS6F4YP7Zjs.isPath.call(void 0, theme)) {
192
200
  console.error("Theme is already ejected");
193
201
  process.exit(1);
194
202
  }
195
- const roots = _chunkZCNASYZVjs.getThemeRoots.call(void 0, theme, entry);
203
+ const roots = _chunkS6F4YP7Zjs.getThemeRoots.call(void 0, theme, entry);
196
204
  if (!roots.length) {
197
205
  console.error(`Does not found theme "${theme}"`);
198
206
  process.exit(1);
@@ -247,10 +255,10 @@ cli.command("export [entry]", "Export slides to PDF", (args) => commonOptions(ar
247
255
  }) => {
248
256
  output = output || `${_path2.default.basename(entry, ".md")}-export`;
249
257
  process.env.NODE_ENV = "production";
250
- const { exportSlides } = await Promise.resolve().then(() => _chunkKRCSYS75js.__toModule.call(void 0, _chunkKRCSYS75js.__require.call(void 0, "./export-74CUV4GO.js")));
258
+ const { exportSlides } = await Promise.resolve().then(() => _chunkKRCSYS75js.__toModule.call(void 0, _chunkKRCSYS75js.__require.call(void 0, "./export-ZTTMEOKV.js")));
251
259
  const port = await findFreePort(12445);
252
- const options = await _chunkZCNASYZVjs.resolveOptions.call(void 0, { entry, theme }, "build");
253
- const server = await _chunkZRBGXFM7js.createServer.call(void 0, options, {
260
+ const options = await _chunkS6F4YP7Zjs.resolveOptions.call(void 0, { entry, theme }, "build");
261
+ const server = await _chunkUJKYYHMFjs.createServer.call(void 0, options, {
254
262
  server: { port },
255
263
  logLevel: "error",
256
264
  clearScreen: false
@@ -287,14 +295,14 @@ function commonOptions(args) {
287
295
  }).option("theme", {
288
296
  alias: "t",
289
297
  type: "string",
290
- describe: "overide theme"
298
+ describe: "override theme"
291
299
  });
292
300
  }
293
301
  function printInfo(options, port, remote) {
294
302
  console.log();
295
303
  console.log();
296
304
  console.log(` ${_kolorist.cyan.call(void 0, "\u25CF") + _kolorist.blue.call(void 0, "\u25A0") + _kolorist.yellow.call(void 0, "\u25B2")}`);
297
- console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkZCNASYZVjs.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
305
+ console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkS6F4YP7Zjs.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
298
306
  console.log();
299
307
  console.log(_kolorist.dim.call(void 0, " theme ") + (options.theme ? _kolorist.green.call(void 0, options.theme) : _kolorist.gray.call(void 0, "none")));
300
308
  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,16 +1,16 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-WM7KTGRL.mjs";
3
+ } from "./chunk-VWK3TRVU.mjs";
4
4
  import {
5
5
  getThemeRoots,
6
6
  isPath,
7
7
  resolveOptions,
8
8
  resolveThemeName,
9
9
  version
10
- } from "./chunk-DJLELPCD.mjs";
10
+ } from "./chunk-6LUF2SCB.mjs";
11
11
  import {
12
12
  require_fast_deep_equal
13
- } from "./chunk-WW3PRZGC.mjs";
13
+ } from "./chunk-NHK2R4LN.mjs";
14
14
  import {
15
15
  __require,
16
16
  __toModule
@@ -112,18 +112,21 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
112
112
  const SHORTCUTS = [
113
113
  {
114
114
  name: "r",
115
+ fullname: "restart",
115
116
  action() {
116
117
  initServer();
117
118
  }
118
119
  },
119
120
  {
120
121
  name: "o",
122
+ fullname: "open",
121
123
  action() {
122
124
  openBrowser(`http://localhost:${port}`);
123
125
  }
124
126
  },
125
127
  {
126
128
  name: "e",
129
+ fullname: "edit",
127
130
  action() {
128
131
  exec(`code "${entry}"`);
129
132
  }
@@ -134,9 +137,14 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
134
137
  process.stdin.setEncoding("utf8");
135
138
  process.stdin.on("data", (data) => {
136
139
  const str = data.toString().trim().toLowerCase();
137
- const sh = SHORTCUTS.filter((item) => item.name === str)[0];
138
- if (sh)
139
- sh.action();
140
+ const [sh] = SHORTCUTS.filter((item) => item.name === str);
141
+ if (sh) {
142
+ try {
143
+ sh.action();
144
+ } catch (err) {
145
+ console.error(`Failed to execute shortcut ${sh.fullname}`, err);
146
+ }
147
+ }
140
148
  });
141
149
  }
142
150
  initServer();
@@ -159,7 +167,7 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
159
167
  type: "boolean",
160
168
  describe: "allow download as PDF"
161
169
  }).strict().help(), async ({ entry, theme, watch, base, download, out }) => {
162
- const { build } = await Promise.resolve().then(() => __toModule(__require("./build-M5EATJMB.mjs")));
170
+ const { build } = await Promise.resolve().then(() => __toModule(__require("./build-IEU5WUDM.mjs")));
163
171
  const options = await resolveOptions({ entry, theme }, "build");
164
172
  if (download && !options.data.config.download)
165
173
  options.data.config.download = download;
@@ -247,7 +255,7 @@ cli.command("export [entry]", "Export slides to PDF", (args) => commonOptions(ar
247
255
  }) => {
248
256
  output = output || `${path.basename(entry, ".md")}-export`;
249
257
  process.env.NODE_ENV = "production";
250
- const { exportSlides } = await Promise.resolve().then(() => __toModule(__require("./export-JCHMAWVR.mjs")));
258
+ const { exportSlides } = await Promise.resolve().then(() => __toModule(__require("./export-SNR56WLB.mjs")));
251
259
  const port = await findFreePort(12445);
252
260
  const options = await resolveOptions({ entry, theme }, "build");
253
261
  const server = await createServer(options, {
@@ -287,7 +295,7 @@ function commonOptions(args) {
287
295
  }).option("theme", {
288
296
  alias: "t",
289
297
  type: "string",
290
- describe: "overide theme"
298
+ describe: "override theme"
291
299
  });
292
300
  }
293
301
  function printInfo(options, port, remote) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  packageExists
3
- } from "./chunk-DJLELPCD.mjs";
3
+ } from "./chunk-6LUF2SCB.mjs";
4
4
  import {
5
5
  __require,
6
6
  __toModule
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkZCNASYZVjs = require('./chunk-ZCNASYZV.js');
3
+ var _chunkS6F4YP7Zjs = require('./chunk-S6F4YP7Z.js');
4
4
 
5
5
 
6
6
 
@@ -60,7 +60,7 @@ async function exportSlides({
60
60
  height = 1080,
61
61
  withClicks = false
62
62
  }) {
63
- if (!_chunkZCNASYZVjs.packageExists.call(void 0, "playwright-chromium"))
63
+ if (!_chunkS6F4YP7Zjs.packageExists.call(void 0, "playwright-chromium"))
64
64
  throw new Error("The exporting for Slidev is powered by Playwright, please installed it via `npm i playwright-chromium`");
65
65
  const { chromium } = await Promise.resolve().then(() => _chunkKRCSYS75js.__toModule.call(void 0, _chunkKRCSYS75js.__require.call(void 0, "playwright-chromium")));
66
66
  const browser = await chromium.launch();
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import Vue from '@vitejs/plugin-vue';
2
- import ViteIcons from 'vite-plugin-icons';
3
- import ViteComponents from 'vite-plugin-components';
2
+ import Icons from 'unplugin-icons/vite';
3
+ import Components from 'unplugin-vue-components/vite';
4
4
  import Markdown from 'vite-plugin-md';
5
5
  import WindiCSS from 'vite-plugin-windicss';
6
6
  import RemoteAssets from 'vite-plugin-remote-assets';
@@ -43,9 +43,9 @@ interface ResolvedSlidevOptions {
43
43
  interface SlidevPluginOptions extends SlidevEntryOptions {
44
44
  vue?: ArgumentsType<typeof Vue>[0];
45
45
  markdown?: ArgumentsType<typeof Markdown>[0];
46
- components?: ArgumentsType<typeof ViteComponents>[0];
46
+ components?: ArgumentsType<typeof Components>[0];
47
47
  windicss?: ArgumentsType<typeof WindiCSS>[0];
48
- icons?: ArgumentsType<typeof ViteIcons>[0];
48
+ icons?: ArgumentsType<typeof Icons>[0];
49
49
  remoteAssets?: ArgumentsType<typeof RemoteAssets>[0];
50
50
  }
51
51
  interface SlidevServerOptions {
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
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 _chunkZRBGXFM7js = require('./chunk-ZRBGXFM7.js');
3
+ var _chunkUJKYYHMFjs = require('./chunk-UJKYYHMF.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkZCNASYZVjs = require('./chunk-ZCNASYZV.js');
10
+ var _chunkS6F4YP7Zjs = require('./chunk-S6F4YP7Z.js');
11
11
 
12
12
 
13
13
 
14
- var _chunk3QL4BHWJjs = require('./chunk-3QL4BHWJ.js');
14
+ var _chunkM25N7CYCjs = require('./chunk-M25N7CYC.js');
15
15
  require('./chunk-KRCSYS75.js');
16
16
 
17
17
  // node/index.ts
@@ -26,4 +26,4 @@ var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs
26
26
 
27
27
 
28
28
 
29
- exports.ViteSlidevPlugin = _chunk3QL4BHWJjs.ViteSlidevPlugin; exports.createServer = _chunkZRBGXFM7js.createServer; exports.createWindiCSSPlugin = _chunk3QL4BHWJjs.createWindiCSSPlugin; exports.getCLIRoot = _chunkZCNASYZVjs.getCLIRoot; exports.getClientRoot = _chunkZCNASYZVjs.getClientRoot; exports.getThemeRoots = _chunkZCNASYZVjs.getThemeRoots; exports.isPath = _chunkZCNASYZVjs.isPath; exports.parser = parser; exports.resolveOptions = _chunkZCNASYZVjs.resolveOptions;
29
+ exports.ViteSlidevPlugin = _chunkM25N7CYCjs.ViteSlidevPlugin; exports.createServer = _chunkUJKYYHMFjs.createServer; exports.createWindiCSSPlugin = _chunkM25N7CYCjs.createWindiCSSPlugin; exports.getCLIRoot = _chunkS6F4YP7Zjs.getCLIRoot; exports.getClientRoot = _chunkS6F4YP7Zjs.getClientRoot; exports.getThemeRoots = _chunkS6F4YP7Zjs.getThemeRoots; exports.isPath = _chunkS6F4YP7Zjs.isPath; exports.parser = parser; exports.resolveOptions = _chunkS6F4YP7Zjs.resolveOptions;
package/dist/index.mjs CHANGED
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-WM7KTGRL.mjs";
3
+ } from "./chunk-VWK3TRVU.mjs";
4
4
  import {
5
5
  getCLIRoot,
6
6
  getClientRoot,
7
7
  getThemeRoots,
8
8
  isPath,
9
9
  resolveOptions
10
- } from "./chunk-DJLELPCD.mjs";
10
+ } from "./chunk-6LUF2SCB.mjs";
11
11
  import {
12
12
  ViteSlidevPlugin,
13
13
  createWindiCSSPlugin
14
- } from "./chunk-WW3PRZGC.mjs";
14
+ } from "./chunk-NHK2R4LN.mjs";
15
15
  import "./chunk-G3DZBNYL.mjs";
16
16
 
17
17
  // node/index.ts
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
- "version": "0.22.6",
4
- "engines": {
5
- "node": ">=14.0.0"
6
- },
3
+ "version": "0.23.2",
7
4
  "description": "Presentation slides for developers",
5
+ "homepage": "https://sli.dev",
6
+ "bugs": "https://github.com/slidevjs/slidev/issues",
8
7
  "license": "MIT",
9
8
  "repository": {
10
9
  "type": "git",
@@ -31,8 +30,6 @@
31
30
  "bin": {
32
31
  "slidev": "./bin/slidev.js"
33
32
  },
34
- "homepage": "https://sli.dev",
35
- "bugs": "https://github.com/slidevjs/slidev/issues",
36
33
  "peerDependencies": {
37
34
  "playwright-chromium": "^1.10.0"
38
35
  },
@@ -42,30 +39,30 @@
42
39
  }
43
40
  },
44
41
  "dependencies": {
45
- "@antfu/utils": "^0.2.4",
42
+ "@antfu/utils": "^0.3.0",
46
43
  "@iconify/json": "^1.1.338",
47
- "@slidev/client": "0.22.6",
48
- "@slidev/parser": "0.22.6",
49
- "@slidev/types": "0.22.6",
50
- "@vitejs/plugin-vue": "^1.2.5",
51
- "@vue/compiler-sfc": "^3.1.5",
44
+ "@slidev/client": "0.23.2",
45
+ "@slidev/parser": "0.23.2",
46
+ "@slidev/types": "0.23.2",
47
+ "@vitejs/plugin-vue": "^1.6.2",
48
+ "@vue/compiler-sfc": "^3.2.11",
52
49
  "cli-progress": "^3.9.0",
53
- "codemirror": "^5.62.2",
50
+ "codemirror": "^5.62.3",
54
51
  "connect": "^3.7.0",
55
52
  "debug": "^4.3.2",
56
53
  "fast-glob": "^3.2.7",
57
54
  "fs-extra": "^10.0.0",
58
55
  "import-from": "^4.0.0",
59
56
  "is-installed-globally": "^0.4.0",
60
- "jiti": "^1.10.1",
61
- "js-base64": "^3.6.1",
62
- "katex": "^0.13.13",
57
+ "jiti": "^1.11.0",
58
+ "js-base64": "^3.7.0",
59
+ "katex": "^0.13.18",
63
60
  "kolorist": "^1.5.0",
64
- "markdown-it": "^12.1.0",
61
+ "markdown-it": "^12.2.0",
65
62
  "markdown-it-footnote": "^3.0.3",
66
63
  "markdown-it-link-attributes": "^3.0.0",
67
- "monaco-editor": "^0.26.1",
68
- "nanoid": "^3.1.23",
64
+ "monaco-editor": "^0.27.0",
65
+ "nanoid": "^3.1.25",
69
66
  "open": "^8.2.1",
70
67
  "pdf-lib": "^1.16.0",
71
68
  "prismjs": "^1.24.1",
@@ -73,21 +70,25 @@
73
70
  "resolve": "^1.20.0",
74
71
  "resolve-from": "^5.0.0",
75
72
  "resolve-global": "^1.0.0",
76
- "shiki": "^0.9.5",
77
- "vite": "^2.4.3",
78
- "vite-plugin-components": "^0.13.2",
79
- "vite-plugin-icons": "^0.6.5",
80
- "vite-plugin-md": "^0.8.0",
73
+ "shiki": "^0.9.10",
74
+ "unplugin-icons": "^0.8.1",
75
+ "unplugin-vue-components": "^0.15.0",
76
+ "vite": "^2.5.6",
77
+ "vite-plugin-md": "^0.11.0",
81
78
  "vite-plugin-remote-assets": "^0.2.2",
82
- "vite-plugin-windicss": "^1.2.5",
83
- "vue": "^3.1.5",
84
- "windicss": "^3.1.5",
85
- "yargs": "^17.0.1"
79
+ "vite-plugin-vue-server-ref": "^0.2.3",
80
+ "vite-plugin-windicss": "^1.4.2",
81
+ "vue": "^3.2.11",
82
+ "windicss": "^3.1.7",
83
+ "yargs": "^17.1.1"
86
84
  },
87
85
  "devDependencies": {
88
86
  "fast-deep-equal": "^3.1.3",
89
87
  "semver": "^7.3.5",
90
- "sirv": "^1.0.12"
88
+ "sirv": "^1.0.17"
89
+ },
90
+ "engines": {
91
+ "node": ">=14.0.0"
91
92
  },
92
93
  "scripts": {
93
94
  "build": "rimraf dist && tsup node/index.ts node/cli.ts --dts --format cjs,esm --external @slidev/client/package.json",