@slidev/cli 0.49.0-beta.5 → 0.49.0-beta.6

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,9 +2,9 @@ import {
2
2
  ViteSlidevPlugin,
3
3
  getIndexHtml,
4
4
  mergeViteConfigs
5
- } from "./chunk-NOHNQKED.mjs";
5
+ } from "./chunk-DF3ZEVPQ.mjs";
6
6
  import "./chunk-LOUKLO2C.mjs";
7
- import "./chunk-W3YEGN62.mjs";
7
+ import "./chunk-ALXAQLRA.mjs";
8
8
  import "./chunk-BXO7ZPPU.mjs";
9
9
 
10
10
  // node/commands/build.ts
@@ -63,7 +63,7 @@ async function build(options, viteConfig = {}, args) {
63
63
  await fs.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
64
64
  `, "utf-8");
65
65
  if ([true, "true", "auto"].includes(options.data.config.download)) {
66
- const { exportSlides, getExportOptions } = await import("./export-SAGFIALP.mjs");
66
+ const { exportSlides, getExportOptions } = await import("./export-D7UWWRHH.mjs");
67
67
  const port = 12445;
68
68
  const app = connect();
69
69
  const server = http.createServer(app);
@@ -164,7 +164,7 @@ async function getRoots(entry) {
164
164
  if (!entry)
165
165
  throw new Error("[slidev] Cannot find roots without entry");
166
166
  const userRoot = dirname(entry);
167
- isInstalledGlobally.value = !/^(\.\.\/)*node_modules\//i.test(slash(relative(userRoot, cliRoot))) || (await import("is-installed-globally")).default;
167
+ isInstalledGlobally.value = slash(relative(userRoot, process.argv[1])).includes("/.pnpm/") || (await import("is-installed-globally")).default;
168
168
  const clientRoot = await findPkgRoot("@slidev/client", cliRoot, true);
169
169
  const closestPkgRoot = dirname(await findClosestPkgJsonPath(userRoot) || userRoot);
170
170
  const userPkgJson = getUserPkgJson(closestPkgRoot);
@@ -6,7 +6,7 @@ import {
6
6
  resolveImportPath,
7
7
  resolveImportUrl,
8
8
  toAtFS
9
- } from "./chunk-W3YEGN62.mjs";
9
+ } from "./chunk-ALXAQLRA.mjs";
10
10
  import {
11
11
  __commonJS,
12
12
  __toESM
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ViteSlidevPlugin,
3
3
  mergeViteConfigs
4
- } from "./chunk-NOHNQKED.mjs";
4
+ } from "./chunk-DF3ZEVPQ.mjs";
5
5
  import {
6
6
  createResolver,
7
7
  getRoots,
8
8
  resolveEntry
9
- } from "./chunk-W3YEGN62.mjs";
9
+ } from "./chunk-ALXAQLRA.mjs";
10
10
 
11
11
  // node/commands/server.ts
12
12
  import { join } from "node:path";
@@ -48,7 +48,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
48
48
  import * as parser from "@slidev/parser/fs";
49
49
 
50
50
  // package.json
51
- var version = "0.49.0-beta.5";
51
+ var version = "0.49.0-beta.6";
52
52
 
53
53
  // node/integrations/themes.ts
54
54
  import { join as join2 } from "node:path";
package/dist/cli.mjs CHANGED
@@ -6,8 +6,8 @@ import {
6
6
  resolveOptions,
7
7
  resolveTheme,
8
8
  version
9
- } from "./chunk-DUS7IVGJ.mjs";
10
- import "./chunk-NOHNQKED.mjs";
9
+ } from "./chunk-R7SOIPTZ.mjs";
10
+ import "./chunk-DF3ZEVPQ.mjs";
11
11
  import {
12
12
  loadSetups
13
13
  } from "./chunk-LOUKLO2C.mjs";
@@ -15,7 +15,7 @@ import {
15
15
  getRoots,
16
16
  isInstalledGlobally,
17
17
  resolveEntry
18
- } from "./chunk-W3YEGN62.mjs";
18
+ } from "./chunk-ALXAQLRA.mjs";
19
19
  import "./chunk-BXO7ZPPU.mjs";
20
20
 
21
21
  // node/cli.ts
@@ -326,7 +326,7 @@ cli.command(
326
326
  }).strict().help(),
327
327
  async (args) => {
328
328
  const { entry, theme, watch, base, download, out, inspect } = args;
329
- const { build } = await import("./build-Q2ZQYXZS.mjs");
329
+ const { build } = await import("./build-4R4CW3SG.mjs");
330
330
  for (const entryFile of entry) {
331
331
  const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
332
332
  if (download && !options.data.config.download)
@@ -407,7 +407,7 @@ cli.command(
407
407
  (args) => exportOptions(commonOptions(args)).strict().help(),
408
408
  async (args) => {
409
409
  const { entry, theme } = args;
410
- const { exportSlides, getExportOptions } = await import("./export-SAGFIALP.mjs");
410
+ const { exportSlides, getExportOptions } = await import("./export-D7UWWRHH.mjs");
411
411
  const port = await getPort(12445);
412
412
  for (const entryFile of entry) {
413
413
  const options = await resolveOptions({ entry: entryFile, theme }, "export");
@@ -456,7 +456,7 @@ cli.command(
456
456
  timeout,
457
457
  wait
458
458
  }) => {
459
- const { exportNotes } = await import("./export-SAGFIALP.mjs");
459
+ const { exportNotes } = await import("./export-D7UWWRHH.mjs");
460
460
  const port = await getPort(12445);
461
461
  for (const entryFile of entry) {
462
462
  const options = await resolveOptions({ entry: entryFile }, "export");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getRoots
3
- } from "./chunk-W3YEGN62.mjs";
3
+ } from "./chunk-ALXAQLRA.mjs";
4
4
  import "./chunk-BXO7ZPPU.mjs";
5
5
 
6
6
  // node/commands/export.ts
package/dist/index.mjs CHANGED
@@ -2,12 +2,12 @@ import {
2
2
  createServer,
3
3
  parser,
4
4
  resolveOptions
5
- } from "./chunk-DUS7IVGJ.mjs";
5
+ } from "./chunk-R7SOIPTZ.mjs";
6
6
  import {
7
7
  ViteSlidevPlugin
8
- } from "./chunk-NOHNQKED.mjs";
8
+ } from "./chunk-DF3ZEVPQ.mjs";
9
9
  import "./chunk-LOUKLO2C.mjs";
10
- import "./chunk-W3YEGN62.mjs";
10
+ import "./chunk-ALXAQLRA.mjs";
11
11
  import "./chunk-BXO7ZPPU.mjs";
12
12
  export {
13
13
  ViteSlidevPlugin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
- "version": "0.49.0-beta.5",
3
+ "version": "0.49.0-beta.6",
4
4
  "description": "Presentation slides for developers",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -108,9 +108,9 @@
108
108
  "vitefu": "^0.2.5",
109
109
  "vue": "^3.4.26",
110
110
  "yargs": "^17.7.2",
111
- "@slidev/client": "0.49.0-beta.5",
112
- "@slidev/types": "0.49.0-beta.5",
113
- "@slidev/parser": "0.49.0-beta.5"
111
+ "@slidev/client": "0.49.0-beta.6",
112
+ "@slidev/types": "0.49.0-beta.6",
113
+ "@slidev/parser": "0.49.0-beta.6"
114
114
  },
115
115
  "devDependencies": {
116
116
  "@hedgedoc/markdown-it-plugins": "^2.1.4",