@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.
- package/dist/{build-EAZGCU4K.mjs → build-3PYDYXWL.mjs} +5 -4
- package/dist/{build-63UO2WKL.js → build-DYELZSUV.js} +27 -26
- package/dist/{chunk-Y4U4HNBF.js → chunk-3QMXOBKW.js} +4 -4
- package/dist/{chunk-5CE4DP4R.mjs → chunk-6HK3HED2.mjs} +1 -1
- package/dist/{chunk-6GSA3UIY.js → chunk-7EYE5BOQ.js} +24 -3
- package/dist/{chunk-MJ3BO472.js → chunk-DVHCB7TL.js} +56 -55
- package/dist/{chunk-C2FOYGKS.mjs → chunk-L7QFSRQN.mjs} +4 -3
- package/dist/{chunk-YUEXXPFU.js → chunk-LJGOLBO3.js} +123 -118
- package/dist/{chunk-UHBOZECB.mjs → chunk-NIUZ32MT.mjs} +11 -6
- package/dist/{chunk-62N46WVW.mjs → chunk-QQD2JVXL.mjs} +23 -2
- package/dist/cli.js +19 -19
- package/dist/cli.mjs +6 -6
- package/dist/{export-FBGRGWZB.js → export-OUL6OBWA.js} +5 -5
- package/dist/{export-KVVXZJNX.mjs → export-P2HOWL7Q.mjs} +2 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.js +9 -7
- package/dist/index.mjs +6 -4
- package/package.json +5 -4
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__require,
|
|
4
4
|
__toModule,
|
|
5
5
|
resolveImportPath
|
|
6
|
-
} from "./chunk-
|
|
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.
|
|
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
|
|
10141
|
-
userRoot
|
|
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
|
|
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
|
|
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
|
|
3
|
+
var _chunk3QMXOBKWjs = require('./chunk-3QMXOBKW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkLJGOLBO3js = require('./chunk-LJGOLBO3.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkDVHCB7TLjs = require('./chunk-DVHCB7TL.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk7EYE5BOQjs = require('./chunk-7EYE5BOQ.js');
|
|
19
19
|
|
|
20
20
|
// node/cli.ts
|
|
21
|
-
|
|
22
|
-
var import_fast_deep_equal =
|
|
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(
|
|
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
|
|
92
|
+
const options = await _chunkLJGOLBO3js.resolveOptions.call(void 0, { entry, theme }, "dev");
|
|
93
93
|
port = userPort || await findFreePort(3030);
|
|
94
|
-
server = await
|
|
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 &&
|
|
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(() =>
|
|
182
|
-
const options = await
|
|
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 =
|
|
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 (
|
|
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 =
|
|
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(() =>
|
|
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
|
|
272
|
-
const server = await
|
|
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${
|
|
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-
|
|
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-
|
|
10
|
+
} from "./chunk-NIUZ32MT.mjs";
|
|
11
11
|
import {
|
|
12
12
|
require_fast_deep_equal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-L7QFSRQN.mjs";
|
|
14
14
|
import {
|
|
15
15
|
__require,
|
|
16
16
|
__toModule
|
|
17
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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
|
|
3
|
+
var _chunkLJGOLBO3js = require('./chunk-LJGOLBO3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk7EYE5BOQjs = require('./chunk-7EYE5BOQ.js');
|
|
9
9
|
|
|
10
10
|
// node/export.ts
|
|
11
|
-
|
|
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 (!
|
|
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(() =>
|
|
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: {
|
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
|
|
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
|
-
|
|
17
|
+
|
|
18
|
+
var _chunk7EYE5BOQjs = require('./chunk-7EYE5BOQ.js');
|
|
18
19
|
|
|
19
20
|
// node/index.ts
|
|
20
|
-
|
|
21
|
+
_chunk7EYE5BOQjs.init_cjs_shims.call(void 0, );
|
|
21
22
|
|
|
22
23
|
// node/declare.ts
|
|
23
|
-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
11
|
+
} from "./chunk-NIUZ32MT.mjs";
|
|
11
12
|
import {
|
|
12
13
|
ViteSlidevPlugin,
|
|
13
14
|
createWindiCSSPlugin
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
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.
|
|
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.
|
|
46
|
-
"@slidev/parser": "0.27.
|
|
47
|
-
"@slidev/types": "0.27.
|
|
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",
|