create-rspress 1.0.0 → 1.0.2
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.js +17 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1047,7 +1048,7 @@ var require_toggle = __commonJS({
|
|
|
1047
1048
|
var require_datepart = __commonJS({
|
|
1048
1049
|
"../../node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/dist/dateparts/datepart.js"(exports, module2) {
|
|
1049
1050
|
"use strict";
|
|
1050
|
-
var DatePart = class {
|
|
1051
|
+
var DatePart = class _DatePart {
|
|
1051
1052
|
constructor({
|
|
1052
1053
|
token,
|
|
1053
1054
|
date,
|
|
@@ -1065,14 +1066,14 @@ var require_datepart = __commonJS({
|
|
|
1065
1066
|
}
|
|
1066
1067
|
next() {
|
|
1067
1068
|
const currentIdx = this.parts.indexOf(this);
|
|
1068
|
-
return this.parts.find((part, idx) => idx > currentIdx && part instanceof
|
|
1069
|
+
return this.parts.find((part, idx) => idx > currentIdx && part instanceof _DatePart);
|
|
1069
1070
|
}
|
|
1070
1071
|
setTo(val) {
|
|
1071
1072
|
}
|
|
1072
1073
|
prev() {
|
|
1073
1074
|
let parts = [].concat(this.parts).reverse();
|
|
1074
1075
|
const currentIdx = parts.indexOf(this);
|
|
1075
|
-
return parts.find((part, idx) => idx > currentIdx && part instanceof
|
|
1076
|
+
return parts.find((part, idx) => idx > currentIdx && part instanceof _DatePart);
|
|
1076
1077
|
}
|
|
1077
1078
|
toString() {
|
|
1078
1079
|
return String(this.date);
|
|
@@ -3131,6 +3132,7 @@ var require_prompt2 = __commonJS({
|
|
|
3131
3132
|
// ../../node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/lib/elements/text.js
|
|
3132
3133
|
var require_text2 = __commonJS({
|
|
3133
3134
|
"../../node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/lib/elements/text.js"(exports, module2) {
|
|
3135
|
+
"use strict";
|
|
3134
3136
|
var color = require_kleur();
|
|
3135
3137
|
var Prompt = require_prompt2();
|
|
3136
3138
|
var { erase, cursor } = require_src();
|
|
@@ -3465,6 +3467,7 @@ var require_select2 = __commonJS({
|
|
|
3465
3467
|
// ../../node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/lib/elements/toggle.js
|
|
3466
3468
|
var require_toggle2 = __commonJS({
|
|
3467
3469
|
"../../node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/lib/elements/toggle.js"(exports, module2) {
|
|
3470
|
+
"use strict";
|
|
3468
3471
|
var color = require_kleur();
|
|
3469
3472
|
var Prompt = require_prompt2();
|
|
3470
3473
|
var { style, clear } = require_util2();
|
|
@@ -3572,7 +3575,7 @@ var require_toggle2 = __commonJS({
|
|
|
3572
3575
|
var require_datepart2 = __commonJS({
|
|
3573
3576
|
"../../node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/lib/dateparts/datepart.js"(exports, module2) {
|
|
3574
3577
|
"use strict";
|
|
3575
|
-
var DatePart = class {
|
|
3578
|
+
var DatePart = class _DatePart {
|
|
3576
3579
|
constructor({ token, date, parts, locales }) {
|
|
3577
3580
|
this.token = token;
|
|
3578
3581
|
this.date = date || /* @__PURE__ */ new Date();
|
|
@@ -3585,14 +3588,14 @@ var require_datepart2 = __commonJS({
|
|
|
3585
3588
|
}
|
|
3586
3589
|
next() {
|
|
3587
3590
|
const currentIdx = this.parts.indexOf(this);
|
|
3588
|
-
return this.parts.find((part, idx) => idx > currentIdx && part instanceof
|
|
3591
|
+
return this.parts.find((part, idx) => idx > currentIdx && part instanceof _DatePart);
|
|
3589
3592
|
}
|
|
3590
3593
|
setTo(val) {
|
|
3591
3594
|
}
|
|
3592
3595
|
prev() {
|
|
3593
3596
|
let parts = [].concat(this.parts).reverse();
|
|
3594
3597
|
const currentIdx = parts.indexOf(this);
|
|
3595
|
-
return parts.find((part, idx) => idx > currentIdx && part instanceof
|
|
3598
|
+
return parts.find((part, idx) => idx > currentIdx && part instanceof _DatePart);
|
|
3596
3599
|
}
|
|
3597
3600
|
toString() {
|
|
3598
3601
|
return String(this.date);
|
|
@@ -4030,6 +4033,7 @@ ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`,
|
|
|
4030
4033
|
// ../../node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/lib/elements/number.js
|
|
4031
4034
|
var require_number2 = __commonJS({
|
|
4032
4035
|
"../../node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/lib/elements/number.js"(exports, module2) {
|
|
4036
|
+
"use strict";
|
|
4033
4037
|
var color = require_kleur();
|
|
4034
4038
|
var Prompt = require_prompt2();
|
|
4035
4039
|
var { cursor, erase } = require_src();
|
|
@@ -4837,6 +4841,7 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter so
|
|
|
4837
4841
|
// ../../node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/lib/elements/confirm.js
|
|
4838
4842
|
var require_confirm2 = __commonJS({
|
|
4839
4843
|
"../../node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/lib/elements/confirm.js"(exports, module2) {
|
|
4844
|
+
"use strict";
|
|
4840
4845
|
var color = require_kleur();
|
|
4841
4846
|
var Prompt = require_prompt2();
|
|
4842
4847
|
var { style, clear } = require_util2();
|
|
@@ -5073,6 +5078,7 @@ var require_lib = __commonJS({
|
|
|
5073
5078
|
// ../../node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/index.js
|
|
5074
5079
|
var require_prompts3 = __commonJS({
|
|
5075
5080
|
"../../node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/index.js"(exports, module2) {
|
|
5081
|
+
"use strict";
|
|
5076
5082
|
function isNodeLT(tar) {
|
|
5077
5083
|
tar = (Array.isArray(tar) ? tar : tar.split(".")).map(Number);
|
|
5078
5084
|
let i = 0, src = process.versions.node.split(".").map(Number);
|
|
@@ -5122,6 +5128,7 @@ var require_universalify = __commonJS({
|
|
|
5122
5128
|
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
5123
5129
|
var require_polyfills = __commonJS({
|
|
5124
5130
|
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
|
5131
|
+
"use strict";
|
|
5125
5132
|
var constants = require("constants");
|
|
5126
5133
|
var origCwd = process.cwd;
|
|
5127
5134
|
var cwd = null;
|
|
@@ -5438,6 +5445,7 @@ var require_polyfills = __commonJS({
|
|
|
5438
5445
|
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
5439
5446
|
var require_legacy_streams = __commonJS({
|
|
5440
5447
|
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
|
5448
|
+
"use strict";
|
|
5441
5449
|
var Stream = require("stream").Stream;
|
|
5442
5450
|
module2.exports = legacy;
|
|
5443
5451
|
function legacy(fs3) {
|
|
@@ -5560,6 +5568,7 @@ var require_clone = __commonJS({
|
|
|
5560
5568
|
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
|
|
5561
5569
|
var require_graceful_fs = __commonJS({
|
|
5562
5570
|
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
|
5571
|
+
"use strict";
|
|
5563
5572
|
var fs3 = require("fs");
|
|
5564
5573
|
var polyfills = require_polyfills();
|
|
5565
5574
|
var legacy = require_legacy_streams();
|
|
@@ -7108,6 +7117,7 @@ var require_ensure = __commonJS({
|
|
|
7108
7117
|
// ../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
|
|
7109
7118
|
var require_utils2 = __commonJS({
|
|
7110
7119
|
"../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
|
7120
|
+
"use strict";
|
|
7111
7121
|
function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
|
|
7112
7122
|
const EOF = finalEOL ? EOL : "";
|
|
7113
7123
|
const str = JSON.stringify(obj, replacer, spaces);
|
|
@@ -7125,6 +7135,7 @@ var require_utils2 = __commonJS({
|
|
|
7125
7135
|
// ../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js
|
|
7126
7136
|
var require_jsonfile = __commonJS({
|
|
7127
7137
|
"../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js"(exports, module2) {
|
|
7138
|
+
"use strict";
|
|
7128
7139
|
var _fs;
|
|
7129
7140
|
try {
|
|
7130
7141
|
_fs = require_graceful_fs();
|