@slidev/cli 0.27.13 → 0.27.17

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.
@@ -3,7 +3,7 @@ import {
3
3
  __require,
4
4
  __toModule,
5
5
  resolveImportPath
6
- } from "./chunk-62N46WVW.mjs";
6
+ } from "./chunk-QQD2JVXL.mjs";
7
7
 
8
8
  // ../../node_modules/.pnpm/@antfu+ni@0.10.0/node_modules/@antfu/ni/dist/chunk-2CETRAVM.js
9
9
  var require_chunk_2CETRAVM = __commonJS({
@@ -10094,7 +10094,7 @@ var require_semver2 = __commonJS({
10094
10094
  });
10095
10095
 
10096
10096
  // package.json
10097
- var version = "0.27.13";
10097
+ var version = "0.27.17";
10098
10098
 
10099
10099
  // node/themes.ts
10100
10100
  var import_ni = __toModule(require_dist());
@@ -10135,12 +10135,16 @@ function getThemeRoots(name, entry) {
10135
10135
  ];
10136
10136
  }
10137
10137
  }
10138
+ function getUserRoot(options) {
10139
+ const { entry: rawEntry = "slides.md", userRoot = process.cwd() } = options;
10140
+ const fullEntry = resolve(userRoot, rawEntry);
10141
+ return { entry: fullEntry, userRoot: dirname(fullEntry) };
10142
+ }
10138
10143
  async function resolveOptions(options, mode, promptForInstallation = true) {
10139
10144
  const {
10140
- entry: rawEntry = "slides.md",
10141
- userRoot = process.cwd()
10142
- } = options;
10143
- const entry = resolve(userRoot, rawEntry);
10145
+ entry,
10146
+ userRoot
10147
+ } = getUserRoot(options);
10144
10148
  const data = await load(entry);
10145
10149
  const theme = resolveThemeName(options.theme || data.config.theme);
10146
10150
  if (promptForInstallation) {
@@ -10255,5 +10259,6 @@ export {
10255
10259
  getCLIRoot,
10256
10260
  isPath,
10257
10261
  getThemeRoots,
10262
+ getUserRoot,
10258
10263
  resolveOptions
10259
10264
  };
@@ -45,10 +45,11 @@ var __toModule = (module) => {
45
45
  };
46
46
 
47
47
  // node/utils.ts
48
+ import { join } from "path";
48
49
  import { ensurePrefix, slash } from "@antfu/utils";
49
50
  import isInstalledGlobally from "is-installed-globally";
50
51
  import { sync as resolve } from "resolve";
51
- import resolveGlobal from "resolve-global";
52
+ import globalDirs from "global-dirs";
52
53
  function toAtFS(path) {
53
54
  return `/@fs${ensurePrefix("/", slash(path))}`;
54
55
  }
@@ -61,7 +62,11 @@ function resolveImportPath(importName, ensure = false) {
61
62
  }
62
63
  if (isInstalledGlobally) {
63
64
  try {
64
- return resolveGlobal(importName);
65
+ return __require.resolve(join(globalDirs.yarn.packages, importName));
66
+ } catch {
67
+ }
68
+ try {
69
+ return __require.resolve(join(globalDirs.npm.packages, importName));
65
70
  } catch {
66
71
  }
67
72
  }
@@ -69,6 +74,21 @@ function resolveImportPath(importName, ensure = false) {
69
74
  throw new Error(`Failed to resolve package "${importName}"`);
70
75
  return void 0;
71
76
  }
77
+ function resolveGlobalImportPath(importName) {
78
+ try {
79
+ return resolve(importName, { preserveSymlinks: false, basedir: __dirname });
80
+ } catch {
81
+ }
82
+ try {
83
+ return __require.resolve(join(globalDirs.yarn.packages, importName));
84
+ } catch {
85
+ }
86
+ try {
87
+ return __require.resolve(join(globalDirs.npm.packages, importName));
88
+ } catch {
89
+ }
90
+ throw new Error(`Failed to resolve global package "${importName}"`);
91
+ }
72
92
  function stringifyMarkdownTokens(tokens) {
73
93
  return tokens.map((token) => {
74
94
  var _a;
@@ -89,6 +109,7 @@ export {
89
109
  __toModule,
90
110
  toAtFS,
91
111
  resolveImportPath,
112
+ resolveGlobalImportPath,
92
113
  stringifyMarkdownTokens,
93
114
  generateGoogleFontsUrl
94
115
  };
package/dist/cli.js CHANGED
@@ -1,25 +1,25 @@
1
1
  "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkY4U4HNBFjs = require('./chunk-Y4U4HNBF.js');
3
+ var _chunk3QMXOBKWjs = require('./chunk-3QMXOBKW.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkYUEXXPFUjs = require('./chunk-YUEXXPFU.js');
10
+ var _chunkLJGOLBO3js = require('./chunk-LJGOLBO3.js');
11
11
 
12
12
 
13
- var _chunkMJ3BO472js = require('./chunk-MJ3BO472.js');
13
+ var _chunkDVHCB7TLjs = require('./chunk-DVHCB7TL.js');
14
14
 
15
15
 
16
16
 
17
17
 
18
- var _chunk6GSA3UIYjs = require('./chunk-6GSA3UIY.js');
18
+ var _chunk7EYE5BOQjs = require('./chunk-7EYE5BOQ.js');
19
19
 
20
20
  // node/cli.ts
21
- _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
22
- var import_fast_deep_equal = _chunk6GSA3UIYjs.__toModule.call(void 0, _chunkMJ3BO472js.require_fast_deep_equal.call(void 0, ));
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, ));
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);
@@ -45,7 +45,7 @@ var CONFIG_RESTART_FIELDS = [
45
45
  "routerMode",
46
46
  "fonts"
47
47
  ];
48
- var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkYUEXXPFUjs.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
48
+ var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkLJGOLBO3js.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
49
49
  cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOptions(args).option("port", {
50
50
  alias: "p",
51
51
  type: "number",
@@ -89,9 +89,9 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
89
89
  async function initServer() {
90
90
  if (server)
91
91
  await server.close();
92
- const options = await _chunkYUEXXPFUjs.resolveOptions.call(void 0, { entry, theme }, "dev");
92
+ const options = await _chunkLJGOLBO3js.resolveOptions.call(void 0, { entry, theme }, "dev");
93
93
  port = userPort || await findFreePort(3030);
94
- server = await _chunkY4U4HNBFjs.createServer.call(void 0, options, {
94
+ server = await _chunk3QMXOBKWjs.createServer.call(void 0, options, {
95
95
  server: {
96
96
  port,
97
97
  strictPort: true,
@@ -102,7 +102,7 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
102
102
  logLevel: log
103
103
  }, {
104
104
  onDataReload(newData, data) {
105
- if (!theme && _chunkYUEXXPFUjs.resolveThemeName.call(void 0, newData.config.theme) !== _chunkYUEXXPFUjs.resolveThemeName.call(void 0, data.config.theme)) {
105
+ if (!theme && _chunkLJGOLBO3js.resolveThemeName.call(void 0, newData.config.theme) !== _chunkLJGOLBO3js.resolveThemeName.call(void 0, data.config.theme)) {
106
106
  console.log(_kolorist.yellow.call(void 0, "\n restarting on theme change\n"));
107
107
  initServer();
108
108
  } else if (CONFIG_RESTART_FIELDS.some((i) => !(0, import_fast_deep_equal.default)(newData.config[i], data.config[i]))) {
@@ -178,8 +178,8 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
178
178
  type: "boolean",
179
179
  describe: "allow download as PDF"
180
180
  }).strict().help(), async ({ entry, theme, watch, base, download, out }) => {
181
- const { build } = await Promise.resolve().then(() => _chunk6GSA3UIYjs.__toModule.call(void 0, _chunk6GSA3UIYjs.__require.call(void 0, "./build-63UO2WKL.js")));
182
- const options = await _chunkYUEXXPFUjs.resolveOptions.call(void 0, { entry, theme }, "build");
181
+ const { build } = await Promise.resolve().then(() => _chunk7EYE5BOQjs.__toModule.call(void 0, _chunk7EYE5BOQjs.__require.call(void 0, "./build-DYELZSUV.js")));
182
+ const options = await _chunkLJGOLBO3js.resolveOptions.call(void 0, { entry, theme }, "build");
183
183
  if (download && !options.data.config.download)
184
184
  options.data.config.download = download;
185
185
  printInfo(options);
@@ -202,16 +202,16 @@ cli.command("theme [subcommand]", "Theme related operations", (command) => {
202
202
  default: "theme"
203
203
  }), async ({ entry, dir, theme: themeInput }) => {
204
204
  const data = await _fs.load.call(void 0, entry);
205
- const theme = _chunkYUEXXPFUjs.resolveThemeName.call(void 0, themeInput || data.config.theme);
205
+ const theme = _chunkLJGOLBO3js.resolveThemeName.call(void 0, themeInput || data.config.theme);
206
206
  if (theme === "none") {
207
207
  console.error('Can not eject theme "none"');
208
208
  process.exit(1);
209
209
  }
210
- if (_chunkYUEXXPFUjs.isPath.call(void 0, theme)) {
210
+ if (_chunkLJGOLBO3js.isPath.call(void 0, theme)) {
211
211
  console.error("Theme is already ejected");
212
212
  process.exit(1);
213
213
  }
214
- const roots = _chunkYUEXXPFUjs.getThemeRoots.call(void 0, theme, entry);
214
+ const roots = _chunkLJGOLBO3js.getThemeRoots.call(void 0, theme, entry);
215
215
  if (!roots.length) {
216
216
  console.error(`Does not found theme "${theme}"`);
217
217
  process.exit(1);
@@ -266,10 +266,10 @@ cli.command("export [entry]", "Export slides to PDF", (args) => commonOptions(ar
266
266
  }) => {
267
267
  output = output || `${_path2.default.basename(entry, ".md")}-export`;
268
268
  process.env.NODE_ENV = "production";
269
- const { exportSlides } = await Promise.resolve().then(() => _chunk6GSA3UIYjs.__toModule.call(void 0, _chunk6GSA3UIYjs.__require.call(void 0, "./export-FBGRGWZB.js")));
269
+ const { exportSlides } = await Promise.resolve().then(() => _chunk7EYE5BOQjs.__toModule.call(void 0, _chunk7EYE5BOQjs.__require.call(void 0, "./export-OUL6OBWA.js")));
270
270
  const port = await findFreePort(12445);
271
- const options = await _chunkYUEXXPFUjs.resolveOptions.call(void 0, { entry, theme }, "build");
272
- const server = await _chunkY4U4HNBFjs.createServer.call(void 0, options, {
271
+ const options = await _chunkLJGOLBO3js.resolveOptions.call(void 0, { entry, theme }, "build");
272
+ const server = await _chunk3QMXOBKWjs.createServer.call(void 0, options, {
273
273
  server: { port },
274
274
  clearScreen: false
275
275
  });
@@ -312,7 +312,7 @@ function printInfo(options, port, remote) {
312
312
  console.log();
313
313
  console.log();
314
314
  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${_chunkYUEXXPFUjs.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
315
+ console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkLJGOLBO3js.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
316
316
  console.log();
317
317
  console.log(_kolorist.dim.call(void 0, " theme ") + (options.theme ? _kolorist.green.call(void 0, options.theme) : _kolorist.gray.call(void 0, "none")));
318
318
  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,20 +1,20 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-5CE4DP4R.mjs";
3
+ } from "./chunk-6HK3HED2.mjs";
4
4
  import {
5
5
  getThemeRoots,
6
6
  isPath,
7
7
  resolveOptions,
8
8
  resolveThemeName,
9
9
  version
10
- } from "./chunk-UHBOZECB.mjs";
10
+ } from "./chunk-NIUZ32MT.mjs";
11
11
  import {
12
12
  require_fast_deep_equal
13
- } from "./chunk-C2FOYGKS.mjs";
13
+ } from "./chunk-L7QFSRQN.mjs";
14
14
  import {
15
15
  __require,
16
16
  __toModule
17
- } from "./chunk-62N46WVW.mjs";
17
+ } from "./chunk-QQD2JVXL.mjs";
18
18
 
19
19
  // node/cli.ts
20
20
  var import_fast_deep_equal = __toModule(require_fast_deep_equal());
@@ -176,7 +176,7 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
176
176
  type: "boolean",
177
177
  describe: "allow download as PDF"
178
178
  }).strict().help(), async ({ entry, theme, watch, base, download, out }) => {
179
- const { build } = await Promise.resolve().then(() => __toModule(__require("./build-EAZGCU4K.mjs")));
179
+ const { build } = await Promise.resolve().then(() => __toModule(__require("./build-3PYDYXWL.mjs")));
180
180
  const options = await resolveOptions({ entry, theme }, "build");
181
181
  if (download && !options.data.config.download)
182
182
  options.data.config.download = download;
@@ -264,7 +264,7 @@ cli.command("export [entry]", "Export slides to PDF", (args) => commonOptions(ar
264
264
  }) => {
265
265
  output = output || `${path.basename(entry, ".md")}-export`;
266
266
  process.env.NODE_ENV = "production";
267
- const { exportSlides } = await Promise.resolve().then(() => __toModule(__require("./export-KVVXZJNX.mjs")));
267
+ const { exportSlides } = await Promise.resolve().then(() => __toModule(__require("./export-P2HOWL7Q.mjs")));
268
268
  const port = await findFreePort(12445);
269
269
  const options = await resolveOptions({ entry, theme }, "build");
270
270
  const server = await createServer(options, {
@@ -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 _chunkYUEXXPFUjs = require('./chunk-YUEXXPFU.js');
3
+ var _chunkLJGOLBO3js = require('./chunk-LJGOLBO3.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunk6GSA3UIYjs = require('./chunk-6GSA3UIY.js');
8
+ var _chunk7EYE5BOQjs = require('./chunk-7EYE5BOQ.js');
9
9
 
10
10
  // node/export.ts
11
- _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
11
+ _chunk7EYE5BOQjs.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 (!_chunkYUEXXPFUjs.packageExists.call(void 0, "playwright-chromium"))
65
+ if (!_chunkLJGOLBO3js.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(() => _chunk6GSA3UIYjs.__toModule.call(void 0, _chunk6GSA3UIYjs.__require.call(void 0, "playwright-chromium")));
67
+ const { chromium } = await Promise.resolve().then(() => _chunk7EYE5BOQjs.__toModule.call(void 0, _chunk7EYE5BOQjs.__require.call(void 0, "playwright-chromium")));
68
68
  const browser = await chromium.launch();
69
69
  const context = await browser.newContext({
70
70
  viewport: {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  packageExists
3
- } from "./chunk-UHBOZECB.mjs";
3
+ } from "./chunk-NIUZ32MT.mjs";
4
4
  import {
5
5
  __require,
6
6
  __toModule
7
- } from "./chunk-62N46WVW.mjs";
7
+ } from "./chunk-QQD2JVXL.mjs";
8
8
 
9
9
  // node/export.ts
10
10
  import path from "path";
package/dist/index.d.ts CHANGED
@@ -55,6 +55,10 @@ declare function getClientRoot(): string;
55
55
  declare function getCLIRoot(): string;
56
56
  declare function isPath(name: string): boolean;
57
57
  declare function getThemeRoots(name: string, entry: string): string[];
58
+ declare function getUserRoot(options: SlidevEntryOptions): {
59
+ entry: string;
60
+ userRoot: string;
61
+ };
58
62
  declare function resolveOptions(options: SlidevEntryOptions, mode: ResolvedSlidevOptions['mode'], promptForInstallation?: boolean): Promise<ResolvedSlidevOptions>;
59
63
 
60
64
  declare module 'vite' {
@@ -74,4 +78,4 @@ declare function ViteSlidevPlugin(options: ResolvedSlidevOptions, pluginOptions:
74
78
 
75
79
  declare function createWindiCSSPlugin({ themeRoots, clientRoot, userRoot, roots, data }: ResolvedSlidevOptions, { windicss: windiOptions }: SlidevPluginOptions): Promise<vite.Plugin[]>;
76
80
 
77
- export { ResolvedSlidevOptions, SlidevEntryOptions, SlidevPluginOptions, SlidevServerOptions, ViteSlidevPlugin, createServer, createWindiCSSPlugin, getCLIRoot, getClientRoot, getThemeRoots, isPath, resolveOptions };
81
+ export { ResolvedSlidevOptions, SlidevEntryOptions, SlidevPluginOptions, SlidevServerOptions, ViteSlidevPlugin, createServer, createWindiCSSPlugin, getCLIRoot, getClientRoot, getThemeRoots, getUserRoot, isPath, resolveOptions };
package/dist/index.js CHANGED
@@ -1,26 +1,27 @@
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 _chunkY4U4HNBFjs = require('./chunk-Y4U4HNBF.js');
3
+ var _chunk3QMXOBKWjs = require('./chunk-3QMXOBKW.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkYUEXXPFUjs = require('./chunk-YUEXXPFU.js');
11
10
 
11
+ var _chunkLJGOLBO3js = require('./chunk-LJGOLBO3.js');
12
12
 
13
13
 
14
- var _chunkMJ3BO472js = require('./chunk-MJ3BO472.js');
15
14
 
15
+ var _chunkDVHCB7TLjs = require('./chunk-DVHCB7TL.js');
16
16
 
17
- var _chunk6GSA3UIYjs = require('./chunk-6GSA3UIY.js');
17
+
18
+ var _chunk7EYE5BOQjs = require('./chunk-7EYE5BOQ.js');
18
19
 
19
20
  // node/index.ts
20
- _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
21
+ _chunk7EYE5BOQjs.init_cjs_shims.call(void 0, );
21
22
 
22
23
  // node/declare.ts
23
- _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
24
+ _chunk7EYE5BOQjs.init_cjs_shims.call(void 0, );
24
25
 
25
26
  // node/index.ts
26
27
  var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs);
@@ -34,4 +35,5 @@ var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs
34
35
 
35
36
 
36
37
 
37
- exports.ViteSlidevPlugin = _chunkMJ3BO472js.ViteSlidevPlugin; exports.createServer = _chunkY4U4HNBFjs.createServer; exports.createWindiCSSPlugin = _chunkMJ3BO472js.createWindiCSSPlugin; exports.getCLIRoot = _chunkYUEXXPFUjs.getCLIRoot; exports.getClientRoot = _chunkYUEXXPFUjs.getClientRoot; exports.getThemeRoots = _chunkYUEXXPFUjs.getThemeRoots; exports.isPath = _chunkYUEXXPFUjs.isPath; exports.parser = parser; exports.resolveOptions = _chunkYUEXXPFUjs.resolveOptions;
38
+
39
+ exports.ViteSlidevPlugin = _chunkDVHCB7TLjs.ViteSlidevPlugin; exports.createServer = _chunk3QMXOBKWjs.createServer; exports.createWindiCSSPlugin = _chunkDVHCB7TLjs.createWindiCSSPlugin; exports.getCLIRoot = _chunkLJGOLBO3js.getCLIRoot; exports.getClientRoot = _chunkLJGOLBO3js.getClientRoot; exports.getThemeRoots = _chunkLJGOLBO3js.getThemeRoots; exports.getUserRoot = _chunkLJGOLBO3js.getUserRoot; exports.isPath = _chunkLJGOLBO3js.isPath; exports.parser = parser; exports.resolveOptions = _chunkLJGOLBO3js.resolveOptions;
package/dist/index.mjs CHANGED
@@ -1,18 +1,19 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-5CE4DP4R.mjs";
3
+ } from "./chunk-6HK3HED2.mjs";
4
4
  import {
5
5
  getCLIRoot,
6
6
  getClientRoot,
7
7
  getThemeRoots,
8
+ getUserRoot,
8
9
  isPath,
9
10
  resolveOptions
10
- } from "./chunk-UHBOZECB.mjs";
11
+ } from "./chunk-NIUZ32MT.mjs";
11
12
  import {
12
13
  ViteSlidevPlugin,
13
14
  createWindiCSSPlugin
14
- } from "./chunk-C2FOYGKS.mjs";
15
- import "./chunk-62N46WVW.mjs";
15
+ } from "./chunk-L7QFSRQN.mjs";
16
+ import "./chunk-QQD2JVXL.mjs";
16
17
 
17
18
  // node/index.ts
18
19
  import * as parser from "@slidev/parser/fs";
@@ -23,6 +24,7 @@ export {
23
24
  getCLIRoot,
24
25
  getClientRoot,
25
26
  getThemeRoots,
27
+ getUserRoot,
26
28
  isPath,
27
29
  parser,
28
30
  resolveOptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
- "version": "0.27.13",
3
+ "version": "0.27.17",
4
4
  "description": "Presentation slides for developers",
5
5
  "homepage": "https://sli.dev",
6
6
  "bugs": "https://github.com/slidevjs/slidev/issues",
@@ -42,9 +42,9 @@
42
42
  "@antfu/utils": "^0.3.0",
43
43
  "@iconify-json/carbon": "^1.0.7",
44
44
  "@iconify-json/ph": "^1.0.1",
45
- "@slidev/client": "0.27.13",
46
- "@slidev/parser": "0.27.13",
47
- "@slidev/types": "0.27.13",
45
+ "@slidev/client": "0.27.17",
46
+ "@slidev/parser": "0.27.17",
47
+ "@slidev/types": "0.27.17",
48
48
  "@vitejs/plugin-vue": "^1.9.3",
49
49
  "@vue/compiler-sfc": "^3.2.20",
50
50
  "cli-progress": "^3.9.1",
@@ -53,6 +53,7 @@
53
53
  "debug": "^4.3.2",
54
54
  "fast-glob": "^3.2.7",
55
55
  "fs-extra": "^10.0.0",
56
+ "global-dirs": "^3.0.0",
56
57
  "import-from": "^4.0.0",
57
58
  "is-installed-globally": "^0.4.0",
58
59
  "jiti": "^1.12.9",