@slidev/cli 0.31.2 → 0.32.1

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/index.mjs CHANGED
@@ -1,22 +1,22 @@
1
1
  import {
2
- createServer
3
- } from "./chunk-MRYU4L7C.mjs";
4
- import {
5
- fs_exports,
2
+ createServer,
3
+ getAddonRoots,
6
4
  getCLIRoot,
7
5
  getClientRoot,
6
+ getRoot,
8
7
  getThemeRoots,
9
8
  getUserRoot,
10
9
  isPath,
10
+ parser,
11
11
  resolveOptions
12
- } from "./chunk-U4YYUHKV.mjs";
12
+ } from "./chunk-36AQIIEM.mjs";
13
13
  import {
14
14
  ViteSlidevPlugin,
15
15
  createWindiCSSPlugin
16
- } from "./chunk-55JD2XFU.mjs";
16
+ } from "./chunk-2OKC6HYP.mjs";
17
17
  import {
18
18
  init_esm_shims
19
- } from "./chunk-D6ZT4BYV.mjs";
19
+ } from "./chunk-NOFZO6W4.mjs";
20
20
 
21
21
  // node/index.ts
22
22
  init_esm_shims();
@@ -27,11 +27,13 @@ export {
27
27
  ViteSlidevPlugin,
28
28
  createServer,
29
29
  createWindiCSSPlugin,
30
+ getAddonRoots,
30
31
  getCLIRoot,
31
32
  getClientRoot,
33
+ getRoot,
32
34
  getThemeRoots,
33
35
  getUserRoot,
34
36
  isPath,
35
- fs_exports as parser,
37
+ parser,
36
38
  resolveOptions
37
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
- "version": "0.31.2",
3
+ "version": "0.32.1",
4
4
  "description": "Presentation slides for developers",
5
5
  "homepage": "https://sli.dev",
6
6
  "bugs": "https://github.com/slidevjs/slidev/issues",
@@ -39,15 +39,15 @@
39
39
  }
40
40
  },
41
41
  "dependencies": {
42
- "@antfu/utils": "^0.5.1",
43
- "@iconify-json/carbon": "^1.1.4",
42
+ "@antfu/utils": "^0.5.2",
43
+ "@iconify-json/carbon": "^1.1.5",
44
44
  "@iconify-json/ph": "^1.1.1",
45
- "@slidev/client": "0.31.2",
46
- "@slidev/parser": "0.31.2",
47
- "@slidev/types": "0.31.2",
48
- "@vitejs/plugin-vue": "^2.3.2",
49
- "@vue/compiler-sfc": "^3.2.33",
50
- "cli-progress": "^3.11.0",
45
+ "@slidev/client": "0.32.1",
46
+ "@slidev/parser": "0.32.1",
47
+ "@slidev/types": "0.32.1",
48
+ "@vitejs/plugin-vue": "^2.3.3",
49
+ "@vue/compiler-sfc": "^3.2.34",
50
+ "cli-progress": "^3.11.1",
51
51
  "codemirror": "^5.65.3",
52
52
  "connect": "^3.7.0",
53
53
  "debug": "^4.3.4",
@@ -74,15 +74,15 @@
74
74
  "resolve-global": "^1.0.0",
75
75
  "shiki": "^0.10.1",
76
76
  "unplugin-icons": "^0.14.3",
77
- "unplugin-vue-components": "^0.19.3",
78
- "vite": "^2.9.8",
79
- "vite-plugin-md": "^0.13.0",
77
+ "unplugin-vue-components": "^0.19.5",
78
+ "vite": "^2.9.9",
79
+ "vite-plugin-md": "^0.13.1",
80
80
  "vite-plugin-remote-assets": "^0.2.2",
81
81
  "vite-plugin-vue-server-ref": "^0.2.4",
82
82
  "vite-plugin-windicss": "^1.8.4",
83
- "vue": "^3.2.33",
84
- "windicss": "^3.5.1",
85
- "yargs": "^17.4.1"
83
+ "vue": "^3.2.34",
84
+ "windicss": "^3.5.4",
85
+ "yargs": "^17.5.1"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@types/plantuml-encoder": "^1.4.0",
@@ -1,31 +0,0 @@
1
- import {
2
- ViteSlidevPlugin
3
- } from "./chunk-55JD2XFU.mjs";
4
- import {
5
- init_esm_shims
6
- } from "./chunk-D6ZT4BYV.mjs";
7
-
8
- // node/server.ts
9
- init_esm_shims();
10
- import { join } from "path";
11
- import { createServer as createViteServer, mergeConfig, resolveConfig } from "vite";
12
- async function createServer(options, viteConfig = {}, serverOptions = {}) {
13
- const rawConfig = await resolveConfig({}, "serve");
14
- const pluginOptions = rawConfig.slidev || {};
15
- process.env.EDITOR = process.env.EDITOR || "code";
16
- const server = await createViteServer(mergeConfig(viteConfig, {
17
- optimizeDeps: {
18
- entries: [
19
- join(options.clientRoot, "main.ts")
20
- ]
21
- },
22
- plugins: [
23
- await ViteSlidevPlugin(options, pluginOptions, serverOptions)
24
- ]
25
- }));
26
- return server;
27
- }
28
-
29
- export {
30
- createServer
31
- };
@@ -1,31 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkN6ENRMDMjs = require('./chunk-N6ENRMDM.js');
4
-
5
-
6
- var _chunkOVW2G2MHjs = require('./chunk-OVW2G2MH.js');
7
-
8
- // node/server.ts
9
- _chunkOVW2G2MHjs.init_cjs_shims.call(void 0, );
10
- var _path = require('path');
11
- var _vite = require('vite');
12
- async function createServer(options, viteConfig = {}, serverOptions = {}) {
13
- const rawConfig = await _vite.resolveConfig.call(void 0, {}, "serve");
14
- const pluginOptions = rawConfig.slidev || {};
15
- process.env.EDITOR = process.env.EDITOR || "code";
16
- const server = await _vite.createServer.call(void 0, _vite.mergeConfig.call(void 0, viteConfig, {
17
- optimizeDeps: {
18
- entries: [
19
- _path.join.call(void 0, options.clientRoot, "main.ts")
20
- ]
21
- },
22
- plugins: [
23
- await _chunkN6ENRMDMjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
24
- ]
25
- }));
26
- return server;
27
- }
28
-
29
-
30
-
31
- exports.createServer = createServer;