@slidev/cli 0.42.5 → 0.42.7

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/bin/slidev.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict'
3
3
 
4
+ const process = require('node:process')
4
5
  const path = require('node:path')
5
6
  const resolveFrom = require('resolve-from')
6
7
 
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkGPOP6RE3js = require('./chunk-GPOP6RE3.js');
5
+ var _chunkELRZS7XIjs = require('./chunk-ELRZS7XI.js');
6
6
  require('./chunk-KKGXM3XL.js');
7
- require('./chunk-6ZL4B4HQ.js');
8
- require('./chunk-MJQETB73.js');
7
+ require('./chunk-34SGGZ4P.js');
8
+ require('./chunk-QDKRARRU.js');
9
9
 
10
10
  // node/build.ts
11
11
  var _path = require('path');
@@ -651,16 +651,16 @@ async function build(options, viteConfig = {}, args) {
651
651
  let originalIndexHTML;
652
652
  if (_fsextra2.default.existsSync(indexPath))
653
653
  originalIndexHTML = await _fsextra2.default.readFile(indexPath, "utf-8");
654
- await _fsextra2.default.writeFile(indexPath, await _chunkGPOP6RE3js.getIndexHtml.call(void 0, options), "utf-8");
654
+ await _fsextra2.default.writeFile(indexPath, await _chunkELRZS7XIjs.getIndexHtml.call(void 0, options), "utf-8");
655
655
  let config = void 0;
656
656
  try {
657
- const inlineConfig = await _chunkGPOP6RE3js.mergeViteConfigs.call(void 0,
657
+ const inlineConfig = await _chunkELRZS7XIjs.mergeViteConfigs.call(void 0,
658
658
  options,
659
659
  viteConfig,
660
660
  {
661
661
  root: options.userRoot,
662
662
  plugins: [
663
- await _chunkGPOP6RE3js.ViteSlidevPlugin.call(void 0, options, pluginOptions),
663
+ await _chunkELRZS7XIjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
664
664
  {
665
665
  name: "resolve-config",
666
666
  configResolved(_config) {
@@ -681,7 +681,7 @@ async function build(options, viteConfig = {}, args) {
681
681
  } else {
682
682
  console.log(_kolorist.blue.call(void 0, " building for Monaco...\n"));
683
683
  await _vite.build.call(void 0,
684
- await _chunkGPOP6RE3js.mergeViteConfigs.call(void 0,
684
+ await _chunkELRZS7XIjs.mergeViteConfigs.call(void 0,
685
685
  options,
686
686
  inlineConfig,
687
687
  {
@@ -722,7 +722,7 @@ async function build(options, viteConfig = {}, args) {
722
722
  await _fsextra2.default.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
723
723
  `, "utf-8");
724
724
  if ([true, "true", "auto"].includes(options.data.config.download)) {
725
- const { exportSlides, getExportOptions } = await Promise.resolve().then(() => require("./export-PN4EOI4Z.js"));
725
+ const { exportSlides, getExportOptions } = await Promise.resolve().then(() => require("./export-BGMCS4F2.js"));
726
726
  const port = 12445;
727
727
  const app = _connect2.default.call(void 0, );
728
728
  const server = _http2.default.createServer(app);
@@ -2,10 +2,10 @@ import {
2
2
  ViteSlidevPlugin,
3
3
  getIndexHtml,
4
4
  mergeViteConfigs
5
- } from "./chunk-Q3TKTGHS.mjs";
5
+ } from "./chunk-LN5DOTNJ.mjs";
6
6
  import "./chunk-6XVZLT3I.mjs";
7
- import "./chunk-CIUEQ4TI.mjs";
8
- import "./chunk-L5QH2WZE.mjs";
7
+ import "./chunk-MZBIET7Y.mjs";
8
+ import "./chunk-KB3DQ2OE.mjs";
9
9
 
10
10
  // node/build.ts
11
11
  import { join as join3, resolve as resolve3 } from "path";
@@ -722,7 +722,7 @@ async function build(options, viteConfig = {}, args) {
722
722
  await fs2.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
723
723
  `, "utf-8");
724
724
  if ([true, "true", "auto"].includes(options.data.config.download)) {
725
- const { exportSlides, getExportOptions } = await import("./export-KRS4L4HC.mjs");
725
+ const { exportSlides, getExportOptions } = await import("./export-6G7WYT32.mjs");
726
726
  const port = 12445;
727
727
  const app = connect();
728
728
  const server = http.createServer(app);
@@ -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 _chunkMJQETB73js = require('./chunk-MJQETB73.js');
3
+ var _chunkQDKRARRUjs = require('./chunk-QDKRARRU.js');
4
4
 
5
5
  // node/utils.ts
6
6
  var _path = require('path');
@@ -20,11 +20,11 @@ function resolveImportPath(importName, ensure = false) {
20
20
  }
21
21
  if (_isinstalledglobally2.default) {
22
22
  try {
23
- return _chunkMJQETB73js.__require.resolve(_path.join.call(void 0, _globaldirs2.default.yarn.packages, importName));
23
+ return _chunkQDKRARRUjs.__require.resolve(_path.join.call(void 0, _globaldirs2.default.yarn.packages, importName));
24
24
  } catch (e2) {
25
25
  }
26
26
  try {
27
- return _chunkMJQETB73js.__require.resolve(_path.join.call(void 0, _globaldirs2.default.npm.packages, importName));
27
+ return _chunkQDKRARRUjs.__require.resolve(_path.join.call(void 0, _globaldirs2.default.npm.packages, importName));
28
28
  } catch (e3) {
29
29
  }
30
30
  }
@@ -38,11 +38,11 @@ function resolveGlobalImportPath(importName) {
38
38
  } catch (e4) {
39
39
  }
40
40
  try {
41
- return _chunkMJQETB73js.__require.resolve(_path.join.call(void 0, _globaldirs2.default.yarn.packages, importName));
41
+ return _chunkQDKRARRUjs.__require.resolve(_path.join.call(void 0, _globaldirs2.default.yarn.packages, importName));
42
42
  } catch (e5) {
43
43
  }
44
44
  try {
45
- return _chunkMJQETB73js.__require.resolve(_path.join.call(void 0, _globaldirs2.default.npm.packages, importName));
45
+ return _chunkQDKRARRUjs.__require.resolve(_path.join.call(void 0, _globaldirs2.default.npm.packages, importName));
46
46
  } catch (e6) {
47
47
  }
48
48
  throw new Error(`Failed to resolve global package "${importName}"`);