create-vue 3.10.4 → 3.11.1

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.
Files changed (79) hide show
  1. package/LICENSE +0 -57
  2. package/README.md +2 -2
  3. package/outfile.cjs +616 -1281
  4. package/package.json +13 -13
  5. package/template/base/.vscode/settings.json +8 -0
  6. package/template/base/node_modules/.bin/tsc +17 -0
  7. package/template/base/node_modules/.bin/tsserver +17 -0
  8. package/template/base/node_modules/.bin/vite +2 -2
  9. package/template/base/package.json +3 -3
  10. package/template/base/vite.config.js.ejs +1 -1
  11. package/template/code/default/src/components/HelloWorld.vue +1 -1
  12. package/template/code/default/src/components/TheWelcome.vue +1 -1
  13. package/template/code/router/src/components/HelloWorld.vue +1 -1
  14. package/template/code/router/src/components/TheWelcome.vue +1 -1
  15. package/template/code/typescript-default/src/components/HelloWorld.vue +1 -1
  16. package/template/code/typescript-default/src/components/TheWelcome.vue +1 -1
  17. package/template/code/typescript-router/src/components/HelloWorld.vue +1 -1
  18. package/template/code/typescript-router/src/components/TheWelcome.vue +1 -1
  19. package/template/config/cypress/node_modules/.bin/cypress +2 -2
  20. package/template/config/cypress/node_modules/.bin/server-test +2 -2
  21. package/template/config/cypress/node_modules/.bin/start-server-and-test +2 -2
  22. package/template/config/cypress/node_modules/.bin/start-test +2 -2
  23. package/template/config/cypress/package.json +2 -2
  24. package/template/config/cypress-ct/node_modules/.bin/cypress +2 -2
  25. package/template/config/cypress-ct/node_modules/.bin/tsc +17 -0
  26. package/template/config/cypress-ct/node_modules/.bin/tsserver +17 -0
  27. package/template/config/cypress-ct/package.json +2 -2
  28. package/template/config/devtools/node_modules/.bin/rollup +17 -0
  29. package/template/config/devtools/node_modules/.bin/tsc +17 -0
  30. package/template/config/devtools/node_modules/.bin/tsserver +17 -0
  31. package/template/config/devtools/node_modules/.bin/vite +4 -4
  32. package/template/config/devtools/package.json +1 -1
  33. package/template/config/jsx/node_modules/.bin/browserslist +4 -4
  34. package/template/config/jsx/node_modules/.bin/tsc +17 -0
  35. package/template/config/jsx/node_modules/.bin/tsserver +17 -0
  36. package/template/config/jsx/node_modules/.bin/vite +2 -2
  37. package/template/config/jsx/package.json +3 -3
  38. package/template/config/nightwatch/node_modules/.bin/chromedriver +2 -2
  39. package/template/config/nightwatch/node_modules/.bin/geckodriver +2 -2
  40. package/template/config/nightwatch/node_modules/.bin/nightwatch +2 -2
  41. package/template/config/nightwatch/node_modules/.bin/ts-node +2 -2
  42. package/template/config/nightwatch/node_modules/.bin/ts-node-cwd +2 -2
  43. package/template/config/nightwatch/node_modules/.bin/ts-node-esm +2 -2
  44. package/template/config/nightwatch/node_modules/.bin/ts-node-script +2 -2
  45. package/template/config/nightwatch/node_modules/.bin/ts-node-transpile-only +2 -2
  46. package/template/config/nightwatch/node_modules/.bin/ts-script +2 -2
  47. package/template/config/nightwatch/node_modules/.bin/tsc +4 -4
  48. package/template/config/nightwatch/node_modules/.bin/tsserver +4 -4
  49. package/template/config/nightwatch/node_modules/.bin/vite +4 -4
  50. package/template/config/nightwatch/package.json +6 -5
  51. package/template/config/nightwatch-ct/node_modules/.bin/tsc +17 -0
  52. package/template/config/nightwatch-ct/node_modules/.bin/tsserver +17 -0
  53. package/template/config/nightwatch-ct/package.json +1 -1
  54. package/template/config/pinia/node_modules/.bin/tsc +17 -0
  55. package/template/config/pinia/node_modules/.bin/tsserver +17 -0
  56. package/template/config/pinia/package.json +2 -2
  57. package/template/config/playwright/node_modules/.bin/playwright +2 -2
  58. package/template/config/playwright/package.json +1 -1
  59. package/template/config/playwright/playwright.config.js +3 -3
  60. package/template/config/router/node_modules/.bin/tsc +17 -0
  61. package/template/config/router/node_modules/.bin/tsserver +17 -0
  62. package/template/config/router/package.json +2 -2
  63. package/template/config/typescript/node_modules/.bin/npm-run-all +2 -2
  64. package/template/config/typescript/node_modules/.bin/npm-run-all2 +2 -2
  65. package/template/config/typescript/node_modules/.bin/run-p +2 -2
  66. package/template/config/typescript/node_modules/.bin/run-s +2 -2
  67. package/template/config/typescript/node_modules/.bin/tsc +2 -2
  68. package/template/config/typescript/node_modules/.bin/tsserver +2 -2
  69. package/template/config/typescript/node_modules/.bin/vue-tsc +2 -2
  70. package/template/config/typescript/package.json +4 -4
  71. package/template/config/vitest/.vscode/extensions.json +3 -0
  72. package/template/config/vitest/node_modules/.bin/tsc +17 -0
  73. package/template/config/vitest/node_modules/.bin/tsserver +17 -0
  74. package/template/config/vitest/node_modules/.bin/vitest +2 -2
  75. package/template/config/vitest/package.json +3 -3
  76. package/template/eslint/package.json +3 -2
  77. package/template/tsconfig/cypress/cypress/{e2e/tsconfig.json → tsconfig.json} +2 -1
  78. package/template/config/devtools/node_modules/.bin/browserslist +0 -17
  79. package/template/config/nightwatch/node_modules/.bin/browserslist +0 -17
package/outfile.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- /*! create-vue v3.10.4 | MIT */
2
+ /*! create-vue v3.11.1 | MIT */
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -9,10 +9,6 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __commonJS = (cb, mod) => function __require() {
10
10
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
11
  };
12
- var __export = (target, all) => {
13
- for (var name in all)
14
- __defProp(target, name, { get: all[name], enumerable: true });
15
- };
16
12
  var __copyProps = (to, from, except, desc) => {
17
13
  if (from && typeof from === "object" || typeof from === "function") {
18
14
  for (let key of __getOwnPropNames(from))
@@ -32,40 +28,40 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
32
28
 
33
29
  // node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/index.js
34
30
  var require_kleur = __commonJS({
35
- "node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/index.js"(exports, module2) {
31
+ "node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/index.js"(exports2, module2) {
36
32
  "use strict";
37
- var { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env;
38
- var $ = {
39
- enabled: !NODE_DISABLE_COLORS && TERM !== "dumb" && FORCE_COLOR !== "0",
33
+ var { FORCE_COLOR: FORCE_COLOR2, NODE_DISABLE_COLORS: NODE_DISABLE_COLORS2, TERM: TERM2 } = process.env;
34
+ var $2 = {
35
+ enabled: !NODE_DISABLE_COLORS2 && TERM2 !== "dumb" && FORCE_COLOR2 !== "0",
40
36
  // modifiers
41
- reset: init2(0, 0),
42
- bold: init2(1, 22),
43
- dim: init2(2, 22),
44
- italic: init2(3, 23),
45
- underline: init2(4, 24),
46
- inverse: init2(7, 27),
47
- hidden: init2(8, 28),
48
- strikethrough: init2(9, 29),
37
+ reset: init3(0, 0),
38
+ bold: init3(1, 22),
39
+ dim: init3(2, 22),
40
+ italic: init3(3, 23),
41
+ underline: init3(4, 24),
42
+ inverse: init3(7, 27),
43
+ hidden: init3(8, 28),
44
+ strikethrough: init3(9, 29),
49
45
  // colors
50
- black: init2(30, 39),
51
- red: init2(31, 39),
52
- green: init2(32, 39),
53
- yellow: init2(33, 39),
54
- blue: init2(34, 39),
55
- magenta: init2(35, 39),
56
- cyan: init2(36, 39),
57
- white: init2(37, 39),
58
- gray: init2(90, 39),
59
- grey: init2(90, 39),
46
+ black: init3(30, 39),
47
+ red: init3(31, 39),
48
+ green: init3(32, 39),
49
+ yellow: init3(33, 39),
50
+ blue: init3(34, 39),
51
+ magenta: init3(35, 39),
52
+ cyan: init3(36, 39),
53
+ white: init3(37, 39),
54
+ gray: init3(90, 39),
55
+ grey: init3(90, 39),
60
56
  // background colors
61
- bgBlack: init2(40, 49),
62
- bgRed: init2(41, 49),
63
- bgGreen: init2(42, 49),
64
- bgYellow: init2(43, 49),
65
- bgBlue: init2(44, 49),
66
- bgMagenta: init2(45, 49),
67
- bgCyan: init2(46, 49),
68
- bgWhite: init2(47, 49)
57
+ bgBlack: init3(40, 49),
58
+ bgRed: init3(41, 49),
59
+ bgGreen: init3(42, 49),
60
+ bgYellow: init3(43, 49),
61
+ bgBlue: init3(44, 49),
62
+ bgMagenta: init3(45, 49),
63
+ bgCyan: init3(46, 49),
64
+ bgWhite: init3(47, 49)
69
65
  };
70
66
  function run(arr, str) {
71
67
  let i = 0, tmp, beg = "", end = "";
@@ -81,35 +77,35 @@ var require_kleur = __commonJS({
81
77
  }
82
78
  function chain(has, keys) {
83
79
  let ctx = { has, keys };
84
- ctx.reset = $.reset.bind(ctx);
85
- ctx.bold = $.bold.bind(ctx);
86
- ctx.dim = $.dim.bind(ctx);
87
- ctx.italic = $.italic.bind(ctx);
88
- ctx.underline = $.underline.bind(ctx);
89
- ctx.inverse = $.inverse.bind(ctx);
90
- ctx.hidden = $.hidden.bind(ctx);
91
- ctx.strikethrough = $.strikethrough.bind(ctx);
92
- ctx.black = $.black.bind(ctx);
93
- ctx.red = $.red.bind(ctx);
94
- ctx.green = $.green.bind(ctx);
95
- ctx.yellow = $.yellow.bind(ctx);
96
- ctx.blue = $.blue.bind(ctx);
97
- ctx.magenta = $.magenta.bind(ctx);
98
- ctx.cyan = $.cyan.bind(ctx);
99
- ctx.white = $.white.bind(ctx);
100
- ctx.gray = $.gray.bind(ctx);
101
- ctx.grey = $.grey.bind(ctx);
102
- ctx.bgBlack = $.bgBlack.bind(ctx);
103
- ctx.bgRed = $.bgRed.bind(ctx);
104
- ctx.bgGreen = $.bgGreen.bind(ctx);
105
- ctx.bgYellow = $.bgYellow.bind(ctx);
106
- ctx.bgBlue = $.bgBlue.bind(ctx);
107
- ctx.bgMagenta = $.bgMagenta.bind(ctx);
108
- ctx.bgCyan = $.bgCyan.bind(ctx);
109
- ctx.bgWhite = $.bgWhite.bind(ctx);
80
+ ctx.reset = $2.reset.bind(ctx);
81
+ ctx.bold = $2.bold.bind(ctx);
82
+ ctx.dim = $2.dim.bind(ctx);
83
+ ctx.italic = $2.italic.bind(ctx);
84
+ ctx.underline = $2.underline.bind(ctx);
85
+ ctx.inverse = $2.inverse.bind(ctx);
86
+ ctx.hidden = $2.hidden.bind(ctx);
87
+ ctx.strikethrough = $2.strikethrough.bind(ctx);
88
+ ctx.black = $2.black.bind(ctx);
89
+ ctx.red = $2.red.bind(ctx);
90
+ ctx.green = $2.green.bind(ctx);
91
+ ctx.yellow = $2.yellow.bind(ctx);
92
+ ctx.blue = $2.blue.bind(ctx);
93
+ ctx.magenta = $2.magenta.bind(ctx);
94
+ ctx.cyan = $2.cyan.bind(ctx);
95
+ ctx.white = $2.white.bind(ctx);
96
+ ctx.gray = $2.gray.bind(ctx);
97
+ ctx.grey = $2.grey.bind(ctx);
98
+ ctx.bgBlack = $2.bgBlack.bind(ctx);
99
+ ctx.bgRed = $2.bgRed.bind(ctx);
100
+ ctx.bgGreen = $2.bgGreen.bind(ctx);
101
+ ctx.bgYellow = $2.bgYellow.bind(ctx);
102
+ ctx.bgBlue = $2.bgBlue.bind(ctx);
103
+ ctx.bgMagenta = $2.bgMagenta.bind(ctx);
104
+ ctx.bgCyan = $2.bgCyan.bind(ctx);
105
+ ctx.bgWhite = $2.bgWhite.bind(ctx);
110
106
  return ctx;
111
107
  }
112
- function init2(open, close) {
108
+ function init3(open, close) {
113
109
  let blk = {
114
110
  open: `\x1B[${open}m`,
115
111
  close: `\x1B[${close}m`,
@@ -118,70 +114,47 @@ var require_kleur = __commonJS({
118
114
  return function(txt) {
119
115
  if (this !== void 0 && this.has !== void 0) {
120
116
  this.has.includes(open) || (this.has.push(open), this.keys.push(blk));
121
- return txt === void 0 ? this : $.enabled ? run(this.keys, txt + "") : txt + "";
117
+ return txt === void 0 ? this : $2.enabled ? run(this.keys, txt + "") : txt + "";
122
118
  }
123
- return txt === void 0 ? chain([open], [blk]) : $.enabled ? run([blk], txt + "") : txt + "";
119
+ return txt === void 0 ? chain([open], [blk]) : $2.enabled ? run([blk], txt + "") : txt + "";
124
120
  };
125
121
  }
126
- module2.exports = $;
122
+ module2.exports = $2;
127
123
  }
128
124
  });
129
125
 
130
126
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/action.js
131
127
  var require_action = __commonJS({
132
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/action.js"(exports, module2) {
128
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/action.js"(exports2, module2) {
133
129
  "use strict";
134
130
  module2.exports = (key, isSelect) => {
135
- if (key.meta && key.name !== "escape")
136
- return;
131
+ if (key.meta && key.name !== "escape") return;
137
132
  if (key.ctrl) {
138
- if (key.name === "a")
139
- return "first";
140
- if (key.name === "c")
141
- return "abort";
142
- if (key.name === "d")
143
- return "abort";
144
- if (key.name === "e")
145
- return "last";
146
- if (key.name === "g")
147
- return "reset";
133
+ if (key.name === "a") return "first";
134
+ if (key.name === "c") return "abort";
135
+ if (key.name === "d") return "abort";
136
+ if (key.name === "e") return "last";
137
+ if (key.name === "g") return "reset";
148
138
  }
149
139
  if (isSelect) {
150
- if (key.name === "j")
151
- return "down";
152
- if (key.name === "k")
153
- return "up";
154
- }
155
- if (key.name === "return")
156
- return "submit";
157
- if (key.name === "enter")
158
- return "submit";
159
- if (key.name === "backspace")
160
- return "delete";
161
- if (key.name === "delete")
162
- return "deleteForward";
163
- if (key.name === "abort")
164
- return "abort";
165
- if (key.name === "escape")
166
- return "exit";
167
- if (key.name === "tab")
168
- return "next";
169
- if (key.name === "pagedown")
170
- return "nextPage";
171
- if (key.name === "pageup")
172
- return "prevPage";
173
- if (key.name === "home")
174
- return "home";
175
- if (key.name === "end")
176
- return "end";
177
- if (key.name === "up")
178
- return "up";
179
- if (key.name === "down")
180
- return "down";
181
- if (key.name === "right")
182
- return "right";
183
- if (key.name === "left")
184
- return "left";
140
+ if (key.name === "j") return "down";
141
+ if (key.name === "k") return "up";
142
+ }
143
+ if (key.name === "return") return "submit";
144
+ if (key.name === "enter") return "submit";
145
+ if (key.name === "backspace") return "delete";
146
+ if (key.name === "delete") return "deleteForward";
147
+ if (key.name === "abort") return "abort";
148
+ if (key.name === "escape") return "exit";
149
+ if (key.name === "tab") return "next";
150
+ if (key.name === "pagedown") return "nextPage";
151
+ if (key.name === "pageup") return "prevPage";
152
+ if (key.name === "home") return "home";
153
+ if (key.name === "end") return "end";
154
+ if (key.name === "up") return "up";
155
+ if (key.name === "down") return "down";
156
+ if (key.name === "right") return "right";
157
+ if (key.name === "left") return "left";
185
158
  return false;
186
159
  };
187
160
  }
@@ -189,7 +162,7 @@ var require_action = __commonJS({
189
162
 
190
163
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/strip.js
191
164
  var require_strip = __commonJS({
192
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/strip.js"(exports, module2) {
165
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/strip.js"(exports2, module2) {
193
166
  "use strict";
194
167
  module2.exports = (str) => {
195
168
  const pattern = [
@@ -204,27 +177,22 @@ var require_strip = __commonJS({
204
177
 
205
178
  // node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
206
179
  var require_src = __commonJS({
207
- "node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module2) {
180
+ "node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports2, module2) {
208
181
  "use strict";
209
182
  var ESC = "\x1B";
210
183
  var CSI = `${ESC}[`;
211
184
  var beep = "\x07";
212
185
  var cursor = {
213
186
  to(x, y) {
214
- if (!y)
215
- return `${CSI}${x + 1}G`;
187
+ if (!y) return `${CSI}${x + 1}G`;
216
188
  return `${CSI}${y + 1};${x + 1}H`;
217
189
  },
218
190
  move(x, y) {
219
191
  let ret = "";
220
- if (x < 0)
221
- ret += `${CSI}${-x}D`;
222
- else if (x > 0)
223
- ret += `${CSI}${x}C`;
224
- if (y < 0)
225
- ret += `${CSI}${-y}A`;
226
- else if (y > 0)
227
- ret += `${CSI}${y}B`;
192
+ if (x < 0) ret += `${CSI}${-x}D`;
193
+ else if (x > 0) ret += `${CSI}${x}C`;
194
+ if (y < 0) ret += `${CSI}${-y}A`;
195
+ else if (y > 0) ret += `${CSI}${y}B`;
228
196
  return ret;
229
197
  },
230
198
  up: (count = 1) => `${CSI}${count}A`,
@@ -265,14 +233,13 @@ var require_src = __commonJS({
265
233
 
266
234
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/clear.js
267
235
  var require_clear = __commonJS({
268
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/clear.js"(exports, module2) {
236
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/clear.js"(exports2, module2) {
269
237
  "use strict";
270
238
  var strip = require_strip();
271
239
  var { erase, cursor } = require_src();
272
240
  var width = (str) => [...strip(str)].length;
273
241
  module2.exports = function(prompt, perLine) {
274
- if (!perLine)
275
- return erase.line + cursor.to(0);
242
+ if (!perLine) return erase.line + cursor.to(0);
276
243
  let rows = 0;
277
244
  const lines = prompt.split(/\r?\n/);
278
245
  for (let line of lines) {
@@ -285,7 +252,7 @@ var require_clear = __commonJS({
285
252
 
286
253
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/figures.js
287
254
  var require_figures = __commonJS({
288
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/figures.js"(exports, module2) {
255
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/figures.js"(exports2, module2) {
289
256
  "use strict";
290
257
  var main = {
291
258
  arrowUp: "\u2191",
@@ -322,7 +289,7 @@ var require_figures = __commonJS({
322
289
 
323
290
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js
324
291
  var require_style = __commonJS({
325
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js"(exports, module2) {
292
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js"(exports2, module2) {
326
293
  "use strict";
327
294
  var c = require_kleur();
328
295
  var figures = require_figures();
@@ -355,13 +322,12 @@ var require_style = __commonJS({
355
322
 
356
323
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/lines.js
357
324
  var require_lines = __commonJS({
358
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/lines.js"(exports, module2) {
325
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/lines.js"(exports2, module2) {
359
326
  "use strict";
360
327
  var strip = require_strip();
361
328
  module2.exports = function(msg, perLine) {
362
329
  let lines = String(strip(msg) || "").split(/\r?\n/);
363
- if (!perLine)
364
- return lines.length;
330
+ if (!perLine) return lines.length;
365
331
  return lines.map((l) => Math.ceil(l.length / perLine)).reduce((a, b) => a + b);
366
332
  };
367
333
  }
@@ -369,7 +335,7 @@ var require_lines = __commonJS({
369
335
 
370
336
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/wrap.js
371
337
  var require_wrap = __commonJS({
372
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/wrap.js"(exports, module2) {
338
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/wrap.js"(exports2, module2) {
373
339
  "use strict";
374
340
  module2.exports = (msg, opts = {}) => {
375
341
  const tab = Number.isSafeInteger(parseInt(opts.margin)) ? new Array(parseInt(opts.margin)).fill(" ").join("") : opts.margin || "";
@@ -377,8 +343,7 @@ var require_wrap = __commonJS({
377
343
  return (msg || "").split(/\r?\n/g).map((line) => line.split(/\s+/g).reduce((arr, w) => {
378
344
  if (w.length + tab.length >= width || arr[arr.length - 1].length + w.length + 1 < width)
379
345
  arr[arr.length - 1] += ` ${w}`;
380
- else
381
- arr.push(`${tab}${w}`);
346
+ else arr.push(`${tab}${w}`);
382
347
  return arr;
383
348
  }, [tab]).join("\n")).join("\n");
384
349
  };
@@ -387,13 +352,12 @@ var require_wrap = __commonJS({
387
352
 
388
353
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/entriesToDisplay.js
389
354
  var require_entriesToDisplay = __commonJS({
390
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/entriesToDisplay.js"(exports, module2) {
355
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/entriesToDisplay.js"(exports2, module2) {
391
356
  "use strict";
392
357
  module2.exports = (cursor, total, maxVisible) => {
393
358
  maxVisible = maxVisible || total;
394
359
  let startIndex = Math.min(total - maxVisible, cursor - Math.floor(maxVisible / 2));
395
- if (startIndex < 0)
396
- startIndex = 0;
360
+ if (startIndex < 0) startIndex = 0;
397
361
  let endIndex = Math.min(startIndex + maxVisible, total);
398
362
  return { startIndex, endIndex };
399
363
  };
@@ -402,7 +366,7 @@ var require_entriesToDisplay = __commonJS({
402
366
 
403
367
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/index.js
404
368
  var require_util = __commonJS({
405
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/index.js"(exports, module2) {
369
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/index.js"(exports2, module2) {
406
370
  "use strict";
407
371
  module2.exports = {
408
372
  action: require_action(),
@@ -419,7 +383,7 @@ var require_util = __commonJS({
419
383
 
420
384
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/prompt.js
421
385
  var require_prompt = __commonJS({
422
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/prompt.js"(exports, module2) {
386
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/prompt.js"(exports2, module2) {
423
387
  "use strict";
424
388
  var readline = require("readline");
425
389
  var { action } = require_util();
@@ -435,8 +399,7 @@ var require_prompt = __commonJS({
435
399
  this.onRender = (opts.onRender || (() => void 0)).bind(this);
436
400
  const rl = readline.createInterface({ input: this.in, escapeCodeTimeout: 50 });
437
401
  readline.emitKeypressEvents(this.in, rl);
438
- if (this.in.isTTY)
439
- this.in.setRawMode(true);
402
+ if (this.in.isTTY) this.in.setRawMode(true);
440
403
  const isSelect = ["SelectPrompt", "MultiselectPrompt"].indexOf(this.constructor.name) > -1;
441
404
  const keypress = (str, key) => {
442
405
  let a = action(key, isSelect);
@@ -451,8 +414,7 @@ var require_prompt = __commonJS({
451
414
  this.close = () => {
452
415
  this.out.write(cursor.show);
453
416
  this.in.removeListener("keypress", keypress);
454
- if (this.in.isTTY)
455
- this.in.setRawMode(false);
417
+ if (this.in.isTTY) this.in.setRawMode(false);
456
418
  rl.close();
457
419
  this.emit(this.aborted ? "abort" : this.exited ? "exit" : "submit", this.value);
458
420
  this.closed = true;
@@ -471,8 +433,7 @@ var require_prompt = __commonJS({
471
433
  }
472
434
  render() {
473
435
  this.onRender(color);
474
- if (this.firstRender)
475
- this.firstRender = false;
436
+ if (this.firstRender) this.firstRender = false;
476
437
  }
477
438
  };
478
439
  module2.exports = Prompt;
@@ -481,7 +442,7 @@ var require_prompt = __commonJS({
481
442
 
482
443
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/text.js
483
444
  var require_text = __commonJS({
484
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/text.js"(exports, module2) {
445
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/text.js"(exports2, module2) {
485
446
  var color = require_kleur();
486
447
  var Prompt = require_prompt();
487
448
  var { erase, cursor } = require_src();
@@ -562,16 +523,14 @@ var require_text = __commonJS({
562
523
  this.close();
563
524
  }
564
525
  next() {
565
- if (!this.placeholder)
566
- return this.bell();
526
+ if (!this.placeholder) return this.bell();
567
527
  this.value = this.initial;
568
528
  this.cursor = this.rendered.length;
569
529
  this.fire();
570
530
  this.render();
571
531
  }
572
532
  moveCursor(n) {
573
- if (this.placeholder)
574
- return;
533
+ if (this.placeholder) return;
575
534
  this.cursor = this.cursor + n;
576
535
  this.cursorOffset += n;
577
536
  }
@@ -584,8 +543,7 @@ var require_text = __commonJS({
584
543
  this.render();
585
544
  }
586
545
  delete() {
587
- if (this.isCursorAtStart())
588
- return this.bell();
546
+ if (this.isCursorAtStart()) return this.bell();
589
547
  let s1 = this.value.slice(0, this.cursor - 1);
590
548
  let s2 = this.value.slice(this.cursor);
591
549
  this.value = `${s1}${s2}`;
@@ -599,8 +557,7 @@ var require_text = __commonJS({
599
557
  this.render();
600
558
  }
601
559
  deleteForward() {
602
- if (this.cursor * this.scale >= this.rendered.length || this.placeholder)
603
- return this.bell();
560
+ if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
604
561
  let s1 = this.value.slice(0, this.cursor);
605
562
  let s2 = this.value.slice(this.cursor + 1);
606
563
  this.value = `${s1}${s2}`;
@@ -621,14 +578,12 @@ var require_text = __commonJS({
621
578
  this.render();
622
579
  }
623
580
  left() {
624
- if (this.cursor <= 0 || this.placeholder)
625
- return this.bell();
581
+ if (this.cursor <= 0 || this.placeholder) return this.bell();
626
582
  this.moveCursor(-1);
627
583
  this.render();
628
584
  }
629
585
  right() {
630
- if (this.cursor * this.scale >= this.rendered.length || this.placeholder)
631
- return this.bell();
586
+ if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
632
587
  this.moveCursor(1);
633
588
  this.render();
634
589
  }
@@ -639,8 +594,7 @@ var require_text = __commonJS({
639
594
  return this.cursor === this.rendered.length || this.placeholder && this.cursor === this.rendered.length + 1;
640
595
  }
641
596
  render() {
642
- if (this.closed)
643
- return;
597
+ if (this.closed) return;
644
598
  if (!this.firstRender) {
645
599
  if (this.outputError)
646
600
  this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
@@ -668,7 +622,7 @@ ${i ? " " : figures.pointerSmall} ${color.red().italic(l)}`, ``);
668
622
 
669
623
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/select.js
670
624
  var require_select = __commonJS({
671
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/select.js"(exports, module2) {
625
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/select.js"(exports2, module2) {
672
626
  "use strict";
673
627
  var color = require_kleur();
674
628
  var Prompt = require_prompt();
@@ -757,19 +711,15 @@ var require_select = __commonJS({
757
711
  this.render();
758
712
  }
759
713
  _(c, key) {
760
- if (c === " ")
761
- return this.submit();
714
+ if (c === " ") return this.submit();
762
715
  }
763
716
  get selection() {
764
717
  return this.choices[this.cursor];
765
718
  }
766
719
  render() {
767
- if (this.closed)
768
- return;
769
- if (this.firstRender)
770
- this.out.write(cursor.hide);
771
- else
772
- this.out.write(clear(this.outputText, this.out.columns));
720
+ if (this.closed) return;
721
+ if (this.firstRender) this.out.write(cursor.hide);
722
+ else this.out.write(clear(this.outputText, this.out.columns));
773
723
  super.render();
774
724
  let { startIndex, endIndex } = entriesToDisplay(this.cursor, this.choices.length, this.optionsPerPage);
775
725
  this.outputText = [
@@ -815,7 +765,7 @@ var require_select = __commonJS({
815
765
 
816
766
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/toggle.js
817
767
  var require_toggle = __commonJS({
818
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/toggle.js"(exports, module2) {
768
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/toggle.js"(exports2, module2) {
819
769
  var color = require_kleur();
820
770
  var Prompt = require_prompt();
821
771
  var { style, clear } = require_util();
@@ -854,14 +804,12 @@ var require_toggle = __commonJS({
854
804
  this.close();
855
805
  }
856
806
  deactivate() {
857
- if (this.value === false)
858
- return this.bell();
807
+ if (this.value === false) return this.bell();
859
808
  this.value = false;
860
809
  this.render();
861
810
  }
862
811
  activate() {
863
- if (this.value === true)
864
- return this.bell();
812
+ if (this.value === true) return this.bell();
865
813
  this.value = true;
866
814
  this.render();
867
815
  }
@@ -892,17 +840,13 @@ var require_toggle = __commonJS({
892
840
  this.value = true;
893
841
  } else if (c === "0") {
894
842
  this.value = false;
895
- } else
896
- return this.bell();
843
+ } else return this.bell();
897
844
  this.render();
898
845
  }
899
846
  render() {
900
- if (this.closed)
901
- return;
902
- if (this.firstRender)
903
- this.out.write(cursor.hide);
904
- else
905
- this.out.write(clear(this.outputText, this.out.columns));
847
+ if (this.closed) return;
848
+ if (this.firstRender) this.out.write(cursor.hide);
849
+ else this.out.write(clear(this.outputText, this.out.columns));
906
850
  super.render();
907
851
  this.outputText = [
908
852
  style.symbol(this.done, this.aborted),
@@ -921,7 +865,7 @@ var require_toggle = __commonJS({
921
865
 
922
866
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/datepart.js
923
867
  var require_datepart = __commonJS({
924
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/datepart.js"(exports, module2) {
868
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/datepart.js"(exports2, module2) {
925
869
  "use strict";
926
870
  var DatePart = class _DatePart {
927
871
  constructor({ token, date, parts, locales }) {
@@ -955,7 +899,7 @@ var require_datepart = __commonJS({
955
899
 
956
900
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/meridiem.js
957
901
  var require_meridiem = __commonJS({
958
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/meridiem.js"(exports, module2) {
902
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/meridiem.js"(exports2, module2) {
959
903
  "use strict";
960
904
  var DatePart = require_datepart();
961
905
  var Meridiem = class extends DatePart {
@@ -979,7 +923,7 @@ var require_meridiem = __commonJS({
979
923
 
980
924
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/day.js
981
925
  var require_day = __commonJS({
982
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/day.js"(exports, module2) {
926
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/day.js"(exports2, module2) {
983
927
  "use strict";
984
928
  var DatePart = require_datepart();
985
929
  var pos = (n) => {
@@ -1011,7 +955,7 @@ var require_day = __commonJS({
1011
955
 
1012
956
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/hours.js
1013
957
  var require_hours = __commonJS({
1014
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/hours.js"(exports, module2) {
958
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/hours.js"(exports2, module2) {
1015
959
  "use strict";
1016
960
  var DatePart = require_datepart();
1017
961
  var Hours = class extends DatePart {
@@ -1040,7 +984,7 @@ var require_hours = __commonJS({
1040
984
 
1041
985
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/milliseconds.js
1042
986
  var require_milliseconds = __commonJS({
1043
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/milliseconds.js"(exports, module2) {
987
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/milliseconds.js"(exports2, module2) {
1044
988
  "use strict";
1045
989
  var DatePart = require_datepart();
1046
990
  var Milliseconds = class extends DatePart {
@@ -1066,7 +1010,7 @@ var require_milliseconds = __commonJS({
1066
1010
 
1067
1011
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/minutes.js
1068
1012
  var require_minutes = __commonJS({
1069
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/minutes.js"(exports, module2) {
1013
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/minutes.js"(exports2, module2) {
1070
1014
  "use strict";
1071
1015
  var DatePart = require_datepart();
1072
1016
  var Minutes = class extends DatePart {
@@ -1093,7 +1037,7 @@ var require_minutes = __commonJS({
1093
1037
 
1094
1038
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/month.js
1095
1039
  var require_month = __commonJS({
1096
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/month.js"(exports, module2) {
1040
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/month.js"(exports2, module2) {
1097
1041
  "use strict";
1098
1042
  var DatePart = require_datepart();
1099
1043
  var Month = class extends DatePart {
@@ -1122,7 +1066,7 @@ var require_month = __commonJS({
1122
1066
 
1123
1067
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/seconds.js
1124
1068
  var require_seconds = __commonJS({
1125
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/seconds.js"(exports, module2) {
1069
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/seconds.js"(exports2, module2) {
1126
1070
  "use strict";
1127
1071
  var DatePart = require_datepart();
1128
1072
  var Seconds = class extends DatePart {
@@ -1149,7 +1093,7 @@ var require_seconds = __commonJS({
1149
1093
 
1150
1094
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/year.js
1151
1095
  var require_year = __commonJS({
1152
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/year.js"(exports, module2) {
1096
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/year.js"(exports2, module2) {
1153
1097
  "use strict";
1154
1098
  var DatePart = require_datepart();
1155
1099
  var Year = class extends DatePart {
@@ -1176,7 +1120,7 @@ var require_year = __commonJS({
1176
1120
 
1177
1121
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/index.js
1178
1122
  var require_dateparts = __commonJS({
1179
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/index.js"(exports, module2) {
1123
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/index.js"(exports2, module2) {
1180
1124
  "use strict";
1181
1125
  module2.exports = {
1182
1126
  DatePart: require_datepart(),
@@ -1194,7 +1138,7 @@ var require_dateparts = __commonJS({
1194
1138
 
1195
1139
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.js
1196
1140
  var require_date = __commonJS({
1197
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.js"(exports, module2) {
1141
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.js"(exports2, module2) {
1198
1142
  "use strict";
1199
1143
  var color = require_kleur();
1200
1144
  var Prompt = require_prompt();
@@ -1248,8 +1192,7 @@ var require_date = __commonJS({
1248
1192
  return this._date;
1249
1193
  }
1250
1194
  set date(date) {
1251
- if (date)
1252
- this._date.setTime(date.getTime());
1195
+ if (date) this._date.setTime(date.getTime());
1253
1196
  }
1254
1197
  set mask(mask) {
1255
1198
  let result;
@@ -1262,8 +1205,7 @@ var require_date = __commonJS({
1262
1205
  let parts = this.parts.reduce((arr, i) => {
1263
1206
  if (typeof i === "string" && typeof arr[arr.length - 1] === "string")
1264
1207
  arr[arr.length - 1] += i;
1265
- else
1266
- arr.push(i);
1208
+ else arr.push(i);
1267
1209
  return arr;
1268
1210
  }, []);
1269
1211
  this.parts.splice(0);
@@ -1326,15 +1268,13 @@ var require_date = __commonJS({
1326
1268
  }
1327
1269
  left() {
1328
1270
  let prev = this.parts[this.cursor].prev();
1329
- if (prev == null)
1330
- return this.bell();
1271
+ if (prev == null) return this.bell();
1331
1272
  this.moveCursor(this.parts.indexOf(prev));
1332
1273
  this.render();
1333
1274
  }
1334
1275
  right() {
1335
1276
  let next = this.parts[this.cursor].next();
1336
- if (next == null)
1337
- return this.bell();
1277
+ if (next == null) return this.bell();
1338
1278
  this.moveCursor(this.parts.indexOf(next));
1339
1279
  this.render();
1340
1280
  }
@@ -1351,12 +1291,9 @@ var require_date = __commonJS({
1351
1291
  }
1352
1292
  }
1353
1293
  render() {
1354
- if (this.closed)
1355
- return;
1356
- if (this.firstRender)
1357
- this.out.write(cursor.hide);
1358
- else
1359
- this.out.write(clear(this.outputText, this.out.columns));
1294
+ if (this.closed) return;
1295
+ if (this.firstRender) this.out.write(cursor.hide);
1296
+ else this.out.write(clear(this.outputText, this.out.columns));
1360
1297
  super.render();
1361
1298
  this.outputText = [
1362
1299
  style.symbol(this.done, this.aborted),
@@ -1380,7 +1317,7 @@ ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`,
1380
1317
 
1381
1318
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/number.js
1382
1319
  var require_number = __commonJS({
1383
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/number.js"(exports, module2) {
1320
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/number.js"(exports2, module2) {
1384
1321
  var color = require_kleur();
1385
1322
  var Prompt = require_prompt();
1386
1323
  var { cursor, erase } = require_src();
@@ -1483,8 +1420,7 @@ var require_number = __commonJS({
1483
1420
  if (this.value === "") {
1484
1421
  this.value = this.min - this.inc;
1485
1422
  }
1486
- if (this.value >= this.max)
1487
- return this.bell();
1423
+ if (this.value >= this.max) return this.bell();
1488
1424
  this.value += this.inc;
1489
1425
  this.color = `cyan`;
1490
1426
  this.fire();
@@ -1495,8 +1431,7 @@ var require_number = __commonJS({
1495
1431
  if (this.value === "") {
1496
1432
  this.value = this.min + this.inc;
1497
1433
  }
1498
- if (this.value <= this.min)
1499
- return this.bell();
1434
+ if (this.value <= this.min) return this.bell();
1500
1435
  this.value -= this.inc;
1501
1436
  this.color = `cyan`;
1502
1437
  this.fire();
@@ -1504,8 +1439,7 @@ var require_number = __commonJS({
1504
1439
  }
1505
1440
  delete() {
1506
1441
  let val = this.value.toString();
1507
- if (val.length === 0)
1508
- return this.bell();
1442
+ if (val.length === 0) return this.bell();
1509
1443
  this.value = this.parse(val = val.slice(0, -1)) || ``;
1510
1444
  if (this.value !== "" && this.value < this.min) {
1511
1445
  this.value = this.min;
@@ -1520,27 +1454,21 @@ var require_number = __commonJS({
1520
1454
  this.render();
1521
1455
  }
1522
1456
  _(c, key) {
1523
- if (!this.valid(c))
1524
- return this.bell();
1457
+ if (!this.valid(c)) return this.bell();
1525
1458
  const now = Date.now();
1526
- if (now - this.lastHit > 1e3)
1527
- this.typed = ``;
1459
+ if (now - this.lastHit > 1e3) this.typed = ``;
1528
1460
  this.typed += c;
1529
1461
  this.lastHit = now;
1530
1462
  this.color = `cyan`;
1531
- if (c === `.`)
1532
- return this.fire();
1463
+ if (c === `.`) return this.fire();
1533
1464
  this.value = Math.min(this.parse(this.typed), this.max);
1534
- if (this.value > this.max)
1535
- this.value = this.max;
1536
- if (this.value < this.min)
1537
- this.value = this.min;
1465
+ if (this.value > this.max) this.value = this.max;
1466
+ if (this.value < this.min) this.value = this.min;
1538
1467
  this.fire();
1539
1468
  this.render();
1540
1469
  }
1541
1470
  render() {
1542
- if (this.closed)
1543
- return;
1471
+ if (this.closed) return;
1544
1472
  if (!this.firstRender) {
1545
1473
  if (this.outputError)
1546
1474
  this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
@@ -1568,7 +1496,7 @@ ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);
1568
1496
 
1569
1497
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/multiselect.js
1570
1498
  var require_multiselect = __commonJS({
1571
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/multiselect.js"(exports, module2) {
1499
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/multiselect.js"(exports2, module2) {
1572
1500
  "use strict";
1573
1501
  var color = require_kleur();
1574
1502
  var { cursor } = require_src();
@@ -1669,8 +1597,7 @@ var require_multiselect = __commonJS({
1669
1597
  this.render();
1670
1598
  }
1671
1599
  right() {
1672
- if (this.value.filter((e) => e.selected).length >= this.maxChoices)
1673
- return this.bell();
1600
+ if (this.value.filter((e) => e.selected).length >= this.maxChoices) return this.bell();
1674
1601
  this.value[this.cursor].selected = true;
1675
1602
  this.render();
1676
1603
  }
@@ -1734,28 +1661,28 @@ Instructions:
1734
1661
  return prefix + title + color.gray(desc || "");
1735
1662
  }
1736
1663
  // shared with autocompleteMultiselect
1737
- paginateOptions(options2) {
1738
- if (options2.length === 0) {
1664
+ paginateOptions(options) {
1665
+ if (options.length === 0) {
1739
1666
  return color.red("No matches for this query.");
1740
1667
  }
1741
- let { startIndex, endIndex } = entriesToDisplay(this.cursor, options2.length, this.optionsPerPage);
1668
+ let { startIndex, endIndex } = entriesToDisplay(this.cursor, options.length, this.optionsPerPage);
1742
1669
  let prefix, styledOptions = [];
1743
1670
  for (let i = startIndex; i < endIndex; i++) {
1744
1671
  if (i === startIndex && startIndex > 0) {
1745
1672
  prefix = figures.arrowUp;
1746
- } else if (i === endIndex - 1 && endIndex < options2.length) {
1673
+ } else if (i === endIndex - 1 && endIndex < options.length) {
1747
1674
  prefix = figures.arrowDown;
1748
1675
  } else {
1749
1676
  prefix = " ";
1750
1677
  }
1751
- styledOptions.push(this.renderOption(this.cursor, options2[i], i, prefix));
1678
+ styledOptions.push(this.renderOption(this.cursor, options[i], i, prefix));
1752
1679
  }
1753
1680
  return "\n" + styledOptions.join("\n");
1754
1681
  }
1755
1682
  // shared with autocomleteMultiselect
1756
- renderOptions(options2) {
1683
+ renderOptions(options) {
1757
1684
  if (!this.done) {
1758
- return this.paginateOptions(options2);
1685
+ return this.paginateOptions(options);
1759
1686
  }
1760
1687
  return "";
1761
1688
  }
@@ -1770,10 +1697,8 @@ Instructions:
1770
1697
  return output.join(" ");
1771
1698
  }
1772
1699
  render() {
1773
- if (this.closed)
1774
- return;
1775
- if (this.firstRender)
1776
- this.out.write(cursor.hide);
1700
+ if (this.closed) return;
1701
+ if (this.firstRender) this.out.write(cursor.hide);
1777
1702
  super.render();
1778
1703
  let prompt = [
1779
1704
  style.symbol(this.done, this.aborted),
@@ -1796,7 +1721,7 @@ Instructions:
1796
1721
 
1797
1722
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocomplete.js
1798
1723
  var require_autocomplete = __commonJS({
1799
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocomplete.js"(exports, module2) {
1724
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocomplete.js"(exports2, module2) {
1800
1725
  "use strict";
1801
1726
  var color = require_kleur();
1802
1727
  var Prompt = require_prompt();
@@ -1846,15 +1771,13 @@ var require_autocomplete = __commonJS({
1846
1771
  this.select = i;
1847
1772
  if (this.suggestions.length > 0)
1848
1773
  this.value = getVal(this.suggestions, i);
1849
- else
1850
- this.value = this.fallback.value;
1774
+ else this.value = this.fallback.value;
1851
1775
  this.fire();
1852
1776
  }
1853
1777
  async complete(cb) {
1854
1778
  const p = this.completing = this.suggest(this.input, this.choices);
1855
1779
  const suggestions = await p;
1856
- if (this.completing !== p)
1857
- return;
1780
+ if (this.completing !== p) return;
1858
1781
  this.suggestions = suggestions.map((s, i, arr) => ({ title: getTitle(arr, i), value: getVal(arr, i), description: s.description }));
1859
1782
  this.completing = false;
1860
1783
  const l = Math.max(suggestions.length - 1, 0);
@@ -1906,8 +1829,7 @@ var require_autocomplete = __commonJS({
1906
1829
  this.render();
1907
1830
  }
1908
1831
  delete() {
1909
- if (this.cursor === 0)
1910
- return this.bell();
1832
+ if (this.cursor === 0) return this.bell();
1911
1833
  let s1 = this.input.slice(0, this.cursor - 1);
1912
1834
  let s2 = this.input.slice(this.cursor);
1913
1835
  this.input = `${s1}${s2}`;
@@ -1916,8 +1838,7 @@ var require_autocomplete = __commonJS({
1916
1838
  this.render();
1917
1839
  }
1918
1840
  deleteForward() {
1919
- if (this.cursor * this.scale >= this.rendered.length)
1920
- return this.bell();
1841
+ if (this.cursor * this.scale >= this.rendered.length) return this.bell();
1921
1842
  let s1 = this.input.slice(0, this.cursor);
1922
1843
  let s2 = this.input.slice(this.cursor + 1);
1923
1844
  this.input = `${s1}${s2}`;
@@ -1951,8 +1872,7 @@ var require_autocomplete = __commonJS({
1951
1872
  next() {
1952
1873
  if (this.select === this.suggestions.length - 1) {
1953
1874
  this.moveSelect(0);
1954
- } else
1955
- this.moveSelect(this.select + 1);
1875
+ } else this.moveSelect(this.select + 1);
1956
1876
  this.render();
1957
1877
  }
1958
1878
  nextPage() {
@@ -1964,14 +1884,12 @@ var require_autocomplete = __commonJS({
1964
1884
  this.render();
1965
1885
  }
1966
1886
  left() {
1967
- if (this.cursor <= 0)
1968
- return this.bell();
1887
+ if (this.cursor <= 0) return this.bell();
1969
1888
  this.cursor = this.cursor - 1;
1970
1889
  this.render();
1971
1890
  }
1972
1891
  right() {
1973
- if (this.cursor * this.scale >= this.rendered.length)
1974
- return this.bell();
1892
+ if (this.cursor * this.scale >= this.rendered.length) return this.bell();
1975
1893
  this.cursor = this.cursor + 1;
1976
1894
  this.render();
1977
1895
  }
@@ -1989,12 +1907,9 @@ var require_autocomplete = __commonJS({
1989
1907
  return prefix + " " + title + color.gray(desc || "");
1990
1908
  }
1991
1909
  render() {
1992
- if (this.closed)
1993
- return;
1994
- if (this.firstRender)
1995
- this.out.write(cursor.hide);
1996
- else
1997
- this.out.write(clear(this.outputText, this.out.columns));
1910
+ if (this.closed) return;
1911
+ if (this.firstRender) this.out.write(cursor.hide);
1912
+ else this.out.write(clear(this.outputText, this.out.columns));
1998
1913
  super.render();
1999
1914
  let { startIndex, endIndex } = entriesToDisplay(this.select, this.choices.length, this.limit);
2000
1915
  this.outputText = [
@@ -2022,7 +1937,7 @@ var require_autocomplete = __commonJS({
2022
1937
 
2023
1938
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocompleteMultiselect.js
2024
1939
  var require_autocompleteMultiselect = __commonJS({
2025
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocompleteMultiselect.js"(exports, module2) {
1940
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocompleteMultiselect.js"(exports2, module2) {
2026
1941
  "use strict";
2027
1942
  var color = require_kleur();
2028
1943
  var { cursor } = require_src();
@@ -2066,8 +1981,7 @@ var require_autocompleteMultiselect = __commonJS({
2066
1981
  this.render();
2067
1982
  }
2068
1983
  right() {
2069
- if (this.value.filter((e) => e.selected).length >= this.maxChoices)
2070
- return this.bell();
1984
+ if (this.value.filter((e) => e.selected).length >= this.maxChoices) return this.bell();
2071
1985
  this.filteredOptions[this.cursor].selected = true;
2072
1986
  this.render();
2073
1987
  }
@@ -2144,10 +2058,8 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter so
2144
2058
  }
2145
2059
  renderOption(cursor2, v, i) {
2146
2060
  let title;
2147
- if (v.disabled)
2148
- title = cursor2 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);
2149
- else
2150
- title = cursor2 === i ? color.cyan().underline(v.title) : v.title;
2061
+ if (v.disabled) title = cursor2 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);
2062
+ else title = cursor2 === i ? color.cyan().underline(v.title) : v.title;
2151
2063
  return (v.selected ? color.green(figures.radioOn) : figures.radioOff) + " " + title;
2152
2064
  }
2153
2065
  renderDoneOrInstructions() {
@@ -2161,10 +2073,8 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter so
2161
2073
  return output.join(" ");
2162
2074
  }
2163
2075
  render() {
2164
- if (this.closed)
2165
- return;
2166
- if (this.firstRender)
2167
- this.out.write(cursor.hide);
2076
+ if (this.closed) return;
2077
+ if (this.firstRender) this.out.write(cursor.hide);
2168
2078
  super.render();
2169
2079
  let prompt = [
2170
2080
  style.symbol(this.done, this.aborted),
@@ -2187,7 +2097,7 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter so
2187
2097
 
2188
2098
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/confirm.js
2189
2099
  var require_confirm = __commonJS({
2190
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/confirm.js"(exports, module2) {
2100
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/confirm.js"(exports2, module2) {
2191
2101
  var color = require_kleur();
2192
2102
  var Prompt = require_prompt();
2193
2103
  var { style, clear } = require_util();
@@ -2240,12 +2150,9 @@ var require_confirm = __commonJS({
2240
2150
  return this.bell();
2241
2151
  }
2242
2152
  render() {
2243
- if (this.closed)
2244
- return;
2245
- if (this.firstRender)
2246
- this.out.write(cursor.hide);
2247
- else
2248
- this.out.write(clear(this.outputText, this.out.columns));
2153
+ if (this.closed) return;
2154
+ if (this.firstRender) this.out.write(cursor.hide);
2155
+ else this.out.write(clear(this.outputText, this.out.columns));
2249
2156
  super.render();
2250
2157
  this.outputText = [
2251
2158
  style.symbol(this.done, this.aborted),
@@ -2262,7 +2169,7 @@ var require_confirm = __commonJS({
2262
2169
 
2263
2170
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/index.js
2264
2171
  var require_elements = __commonJS({
2265
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/index.js"(exports, module2) {
2172
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/index.js"(exports2, module2) {
2266
2173
  "use strict";
2267
2174
  module2.exports = {
2268
2175
  TextPrompt: require_text(),
@@ -2280,9 +2187,9 @@ var require_elements = __commonJS({
2280
2187
 
2281
2188
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.js
2282
2189
  var require_prompts = __commonJS({
2283
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.js"(exports) {
2190
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.js"(exports2) {
2284
2191
  "use strict";
2285
- var $ = exports;
2192
+ var $2 = exports2;
2286
2193
  var el = require_elements();
2287
2194
  var noop = (v) => v;
2288
2195
  function toPrompt(type, args, opts = {}) {
@@ -2297,27 +2204,27 @@ var require_prompts = __commonJS({
2297
2204
  p.on("abort", (x) => rej(onAbort(x)));
2298
2205
  });
2299
2206
  }
2300
- $.text = (args) => toPrompt("TextPrompt", args);
2301
- $.password = (args) => {
2207
+ $2.text = (args) => toPrompt("TextPrompt", args);
2208
+ $2.password = (args) => {
2302
2209
  args.style = "password";
2303
- return $.text(args);
2210
+ return $2.text(args);
2304
2211
  };
2305
- $.invisible = (args) => {
2212
+ $2.invisible = (args) => {
2306
2213
  args.style = "invisible";
2307
- return $.text(args);
2214
+ return $2.text(args);
2308
2215
  };
2309
- $.number = (args) => toPrompt("NumberPrompt", args);
2310
- $.date = (args) => toPrompt("DatePrompt", args);
2311
- $.confirm = (args) => toPrompt("ConfirmPrompt", args);
2312
- $.list = (args) => {
2216
+ $2.number = (args) => toPrompt("NumberPrompt", args);
2217
+ $2.date = (args) => toPrompt("DatePrompt", args);
2218
+ $2.confirm = (args) => toPrompt("ConfirmPrompt", args);
2219
+ $2.list = (args) => {
2313
2220
  const sep = args.separator || ",";
2314
2221
  return toPrompt("TextPrompt", args, {
2315
2222
  onSubmit: (str) => str.split(sep).map((s) => s.trim())
2316
2223
  });
2317
2224
  };
2318
- $.toggle = (args) => toPrompt("TogglePrompt", args);
2319
- $.select = (args) => toPrompt("SelectPrompt", args);
2320
- $.multiselect = (args) => {
2225
+ $2.toggle = (args) => toPrompt("TogglePrompt", args);
2226
+ $2.select = (args) => toPrompt("SelectPrompt", args);
2227
+ $2.multiselect = (args) => {
2321
2228
  args.choices = [].concat(args.choices || []);
2322
2229
  const toSelected = (items) => items.filter((item) => item.selected).map((item) => item.value);
2323
2230
  return toPrompt("MultiselectPrompt", args, {
@@ -2325,7 +2232,7 @@ var require_prompts = __commonJS({
2325
2232
  onSubmit: toSelected
2326
2233
  });
2327
2234
  };
2328
- $.autocompleteMultiselect = (args) => {
2235
+ $2.autocompleteMultiselect = (args) => {
2329
2236
  args.choices = [].concat(args.choices || []);
2330
2237
  const toSelected = (items) => items.filter((item) => item.selected).map((item) => item.value);
2331
2238
  return toPrompt("AutocompleteMultiselectPrompt", args, {
@@ -2336,7 +2243,7 @@ var require_prompts = __commonJS({
2336
2243
  var byTitle = (input, choices) => Promise.resolve(
2337
2244
  choices.filter((item) => item.title.slice(0, input.length).toLowerCase() === input.toLowerCase())
2338
2245
  );
2339
- $.autocomplete = (args) => {
2246
+ $2.autocomplete = (args) => {
2340
2247
  args.suggest = args.suggest || byTitle;
2341
2248
  args.choices = [].concat(args.choices || []);
2342
2249
  return toPrompt("AutocompletePrompt", args);
@@ -2346,7 +2253,7 @@ var require_prompts = __commonJS({
2346
2253
 
2347
2254
  // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/index.js
2348
2255
  var require_lib = __commonJS({
2349
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/index.js"(exports, module2) {
2256
+ "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/index.js"(exports2, module2) {
2350
2257
  "use strict";
2351
2258
  var prompts2 = require_prompts();
2352
2259
  var passOn = ["suggest", "format", "onState", "validate", "onRender", "type"];
@@ -2369,11 +2276,9 @@ var require_lib = __commonJS({
2369
2276
  type = await type(answer, { ...answers }, question);
2370
2277
  question["type"] = type;
2371
2278
  }
2372
- if (!type)
2373
- continue;
2279
+ if (!type) continue;
2374
2280
  for (let key in question) {
2375
- if (passOn.includes(key))
2376
- continue;
2281
+ if (passOn.includes(key)) continue;
2377
2282
  let value = question[key];
2378
2283
  question[key] = typeof value === "function" ? await value(answer, { ...answers }, lastPrompt) : value;
2379
2284
  }
@@ -2399,8 +2304,7 @@ var require_lib = __commonJS({
2399
2304
  } catch (err) {
2400
2305
  quit = !await onCancel(question, answers);
2401
2306
  }
2402
- if (quit)
2403
- return answers;
2307
+ if (quit) return answers;
2404
2308
  }
2405
2309
  return answers;
2406
2310
  }
@@ -2423,14 +2327,14 @@ var require_lib = __commonJS({
2423
2327
 
2424
2328
  // node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/utils.js
2425
2329
  var require_utils = __commonJS({
2426
- "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/utils.js"(exports) {
2330
+ "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/utils.js"(exports2) {
2427
2331
  "use strict";
2428
2332
  var regExpChars = /[|\\{}()[\]^$+*?.]/g;
2429
2333
  var hasOwnProperty = Object.prototype.hasOwnProperty;
2430
2334
  var hasOwn = function(obj, key) {
2431
2335
  return hasOwnProperty.apply(obj, [key]);
2432
2336
  };
2433
- exports.escapeRegExpChars = function(string) {
2337
+ exports2.escapeRegExpChars = function(string) {
2434
2338
  if (!string) {
2435
2339
  return "";
2436
2340
  }
@@ -2459,7 +2363,7 @@ function encode_char(c) {
2459
2363
  return _ENCODE_HTML_RULES[c] || c;
2460
2364
  };
2461
2365
  `;
2462
- exports.escapeXML = function(markup) {
2366
+ exports2.escapeXML = function(markup) {
2463
2367
  return markup == void 0 ? "" : String(markup).replace(_MATCH_HTML, encode_char);
2464
2368
  };
2465
2369
  function escapeXMLToString() {
@@ -2467,14 +2371,14 @@ function encode_char(c) {
2467
2371
  }
2468
2372
  try {
2469
2373
  if (typeof Object.defineProperty === "function") {
2470
- Object.defineProperty(exports.escapeXML, "toString", { value: escapeXMLToString });
2374
+ Object.defineProperty(exports2.escapeXML, "toString", { value: escapeXMLToString });
2471
2375
  } else {
2472
- exports.escapeXML.toString = escapeXMLToString;
2376
+ exports2.escapeXML.toString = escapeXMLToString;
2473
2377
  }
2474
2378
  } catch (err) {
2475
2379
  console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)");
2476
2380
  }
2477
- exports.shallowCopy = function(to, from) {
2381
+ exports2.shallowCopy = function(to, from) {
2478
2382
  from = from || {};
2479
2383
  if (to !== null && to !== void 0) {
2480
2384
  for (var p in from) {
@@ -2489,7 +2393,7 @@ function encode_char(c) {
2489
2393
  }
2490
2394
  return to;
2491
2395
  };
2492
- exports.shallowCopyFromList = function(to, from, list) {
2396
+ exports2.shallowCopyFromList = function(to, from, list) {
2493
2397
  list = list || [];
2494
2398
  from = from || {};
2495
2399
  if (to !== null && to !== void 0) {
@@ -2508,7 +2412,7 @@ function encode_char(c) {
2508
2412
  }
2509
2413
  return to;
2510
2414
  };
2511
- exports.cache = {
2415
+ exports2.cache = {
2512
2416
  _data: {},
2513
2417
  set: function(key, val) {
2514
2418
  this._data[key] = val;
@@ -2523,12 +2427,12 @@ function encode_char(c) {
2523
2427
  this._data = {};
2524
2428
  }
2525
2429
  };
2526
- exports.hyphenToCamel = function(str) {
2430
+ exports2.hyphenToCamel = function(str) {
2527
2431
  return str.replace(/-[a-z]/g, function(match) {
2528
2432
  return match[1].toUpperCase();
2529
2433
  });
2530
2434
  };
2531
- exports.createNullProtoObjWherePossible = function() {
2435
+ exports2.createNullProtoObjWherePossible = function() {
2532
2436
  if (typeof Object.create == "function") {
2533
2437
  return function() {
2534
2438
  return /* @__PURE__ */ Object.create(null);
@@ -2543,8 +2447,8 @@ function encode_char(c) {
2543
2447
  return {};
2544
2448
  };
2545
2449
  }();
2546
- exports.hasOwnOnlyObject = function(obj) {
2547
- var o = exports.createNullProtoObjWherePossible();
2450
+ exports2.hasOwnOnlyObject = function(obj) {
2451
+ var o = exports2.createNullProtoObjWherePossible();
2548
2452
  for (var p in obj) {
2549
2453
  if (hasOwn(obj, p)) {
2550
2454
  o[p] = obj[p];
@@ -2557,7 +2461,7 @@ function encode_char(c) {
2557
2461
 
2558
2462
  // node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/package.json
2559
2463
  var require_package = __commonJS({
2560
- "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/package.json"(exports, module2) {
2464
+ "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/package.json"(exports2, module2) {
2561
2465
  module2.exports = {
2562
2466
  name: "ejs",
2563
2467
  description: "Embedded JavaScript templates",
@@ -2605,7 +2509,7 @@ var require_package = __commonJS({
2605
2509
 
2606
2510
  // node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/ejs.js
2607
2511
  var require_ejs = __commonJS({
2608
- "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/ejs.js"(exports) {
2512
+ "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/ejs.js"(exports2) {
2609
2513
  "use strict";
2610
2514
  var fs6 = require("fs");
2611
2515
  var path6 = require("path");
@@ -2634,11 +2538,11 @@ var require_ejs = __commonJS({
2634
2538
  var _OPTS_PASSABLE_WITH_DATA_EXPRESS = _OPTS_PASSABLE_WITH_DATA.concat("cache");
2635
2539
  var _BOM = /^\uFEFF/;
2636
2540
  var _JS_IDENTIFIER = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/;
2637
- exports.cache = utils.cache;
2638
- exports.fileLoader = fs6.readFileSync;
2639
- exports.localsName = _DEFAULT_LOCALS_NAME;
2640
- exports.promiseImpl = new Function("return this;")().Promise;
2641
- exports.resolveInclude = function(name, filename, isDir) {
2541
+ exports2.cache = utils.cache;
2542
+ exports2.fileLoader = fs6.readFileSync;
2543
+ exports2.localsName = _DEFAULT_LOCALS_NAME;
2544
+ exports2.promiseImpl = new Function("return this;")().Promise;
2545
+ exports2.resolveInclude = function(name, filename, isDir) {
2642
2546
  var dirname2 = path6.dirname;
2643
2547
  var extname = path6.extname;
2644
2548
  var resolve6 = path6.resolve;
@@ -2652,27 +2556,27 @@ var require_ejs = __commonJS({
2652
2556
  function resolvePaths(name, paths) {
2653
2557
  var filePath;
2654
2558
  if (paths.some(function(v) {
2655
- filePath = exports.resolveInclude(name, v, true);
2559
+ filePath = exports2.resolveInclude(name, v, true);
2656
2560
  return fs6.existsSync(filePath);
2657
2561
  })) {
2658
2562
  return filePath;
2659
2563
  }
2660
2564
  }
2661
- function getIncludePath(path7, options2) {
2565
+ function getIncludePath(path7, options) {
2662
2566
  var includePath;
2663
2567
  var filePath;
2664
- var views = options2.views;
2568
+ var views = options.views;
2665
2569
  var match = /^[A-Za-z]+:\\|^\//.exec(path7);
2666
2570
  if (match && match.length) {
2667
2571
  path7 = path7.replace(/^\/*/, "");
2668
- if (Array.isArray(options2.root)) {
2669
- includePath = resolvePaths(path7, options2.root);
2572
+ if (Array.isArray(options.root)) {
2573
+ includePath = resolvePaths(path7, options.root);
2670
2574
  } else {
2671
- includePath = exports.resolveInclude(path7, options2.root || "/", true);
2575
+ includePath = exports2.resolveInclude(path7, options.root || "/", true);
2672
2576
  }
2673
2577
  } else {
2674
- if (options2.filename) {
2675
- filePath = exports.resolveInclude(path7, options2.filename);
2578
+ if (options.filename) {
2579
+ filePath = exports2.resolveInclude(path7, options.filename);
2676
2580
  if (fs6.existsSync(filePath)) {
2677
2581
  includePath = filePath;
2678
2582
  }
@@ -2680,21 +2584,21 @@ var require_ejs = __commonJS({
2680
2584
  if (!includePath && Array.isArray(views)) {
2681
2585
  includePath = resolvePaths(path7, views);
2682
2586
  }
2683
- if (!includePath && typeof options2.includer !== "function") {
2684
- throw new Error('Could not find the include file "' + options2.escapeFunction(path7) + '"');
2587
+ if (!includePath && typeof options.includer !== "function") {
2588
+ throw new Error('Could not find the include file "' + options.escapeFunction(path7) + '"');
2685
2589
  }
2686
2590
  }
2687
2591
  return includePath;
2688
2592
  }
2689
- function handleCache(options2, template) {
2593
+ function handleCache(options, template) {
2690
2594
  var func;
2691
- var filename = options2.filename;
2595
+ var filename = options.filename;
2692
2596
  var hasTemplate = arguments.length > 1;
2693
- if (options2.cache) {
2597
+ if (options.cache) {
2694
2598
  if (!filename) {
2695
2599
  throw new Error("cache option requires a filename");
2696
2600
  }
2697
- func = exports.cache.get(filename);
2601
+ func = exports2.cache.get(filename);
2698
2602
  if (func) {
2699
2603
  return func;
2700
2604
  }
@@ -2707,19 +2611,19 @@ var require_ejs = __commonJS({
2707
2611
  }
2708
2612
  template = fileLoader(filename).toString().replace(_BOM, "");
2709
2613
  }
2710
- func = exports.compile(template, options2);
2711
- if (options2.cache) {
2712
- exports.cache.set(filename, func);
2614
+ func = exports2.compile(template, options);
2615
+ if (options.cache) {
2616
+ exports2.cache.set(filename, func);
2713
2617
  }
2714
2618
  return func;
2715
2619
  }
2716
- function tryHandleCache(options2, data, cb) {
2620
+ function tryHandleCache(options, data, cb) {
2717
2621
  var result;
2718
2622
  if (!cb) {
2719
- if (typeof exports.promiseImpl == "function") {
2720
- return new exports.promiseImpl(function(resolve6, reject) {
2623
+ if (typeof exports2.promiseImpl == "function") {
2624
+ return new exports2.promiseImpl(function(resolve6, reject) {
2721
2625
  try {
2722
- result = handleCache(options2)(data);
2626
+ result = handleCache(options)(data);
2723
2627
  resolve6(result);
2724
2628
  } catch (err) {
2725
2629
  reject(err);
@@ -2730,7 +2634,7 @@ var require_ejs = __commonJS({
2730
2634
  }
2731
2635
  } else {
2732
2636
  try {
2733
- result = handleCache(options2)(data);
2637
+ result = handleCache(options)(data);
2734
2638
  } catch (err) {
2735
2639
  return cb(err);
2736
2640
  }
@@ -2738,13 +2642,13 @@ var require_ejs = __commonJS({
2738
2642
  }
2739
2643
  }
2740
2644
  function fileLoader(filePath) {
2741
- return exports.fileLoader(filePath);
2645
+ return exports2.fileLoader(filePath);
2742
2646
  }
2743
- function includeFile(path7, options2) {
2744
- var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options2);
2647
+ function includeFile(path7, options) {
2648
+ var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
2745
2649
  opts.filename = getIncludePath(path7, opts);
2746
- if (typeof options2.includer === "function") {
2747
- var includerResult = options2.includer(path7, opts.filename);
2650
+ if (typeof options.includer === "function") {
2651
+ var includerResult = options.includer(path7, opts.filename);
2748
2652
  if (includerResult) {
2749
2653
  if (includerResult.filename) {
2750
2654
  opts.filename = includerResult.filename;
@@ -2772,7 +2676,7 @@ var require_ejs = __commonJS({
2772
2676
  function stripSemi(str) {
2773
2677
  return str.replace(/;(\s*$)/, "$1");
2774
2678
  }
2775
- exports.compile = function compile(template, opts) {
2679
+ exports2.compile = function compile(template, opts) {
2776
2680
  var templ;
2777
2681
  if (opts && opts.scope) {
2778
2682
  if (!scopeOptionWarned) {
@@ -2787,7 +2691,7 @@ var require_ejs = __commonJS({
2787
2691
  templ = new Template(template, opts);
2788
2692
  return templ.compile();
2789
2693
  };
2790
- exports.render = function(template, d, o) {
2694
+ exports2.render = function(template, d, o) {
2791
2695
  var data = d || utils.createNullProtoObjWherePossible();
2792
2696
  var opts = o || utils.createNullProtoObjWherePossible();
2793
2697
  if (arguments.length == 2) {
@@ -2795,7 +2699,7 @@ var require_ejs = __commonJS({
2795
2699
  }
2796
2700
  return handleCache(opts, template)(data);
2797
2701
  };
2798
- exports.renderFile = function() {
2702
+ exports2.renderFile = function() {
2799
2703
  var args = Array.prototype.slice.call(arguments);
2800
2704
  var filename = args.shift();
2801
2705
  var cb;
@@ -2830,44 +2734,44 @@ var require_ejs = __commonJS({
2830
2734
  }
2831
2735
  return tryHandleCache(opts, data, cb);
2832
2736
  };
2833
- exports.Template = Template;
2834
- exports.clearCache = function() {
2835
- exports.cache.reset();
2737
+ exports2.Template = Template;
2738
+ exports2.clearCache = function() {
2739
+ exports2.cache.reset();
2836
2740
  };
2837
2741
  function Template(text, optsParam) {
2838
2742
  var opts = utils.hasOwnOnlyObject(optsParam);
2839
- var options2 = utils.createNullProtoObjWherePossible();
2743
+ var options = utils.createNullProtoObjWherePossible();
2840
2744
  this.templateText = text;
2841
2745
  this.mode = null;
2842
2746
  this.truncate = false;
2843
2747
  this.currentLine = 1;
2844
2748
  this.source = "";
2845
- options2.client = opts.client || false;
2846
- options2.escapeFunction = opts.escape || opts.escapeFunction || utils.escapeXML;
2847
- options2.compileDebug = opts.compileDebug !== false;
2848
- options2.debug = !!opts.debug;
2849
- options2.filename = opts.filename;
2850
- options2.openDelimiter = opts.openDelimiter || exports.openDelimiter || _DEFAULT_OPEN_DELIMITER;
2851
- options2.closeDelimiter = opts.closeDelimiter || exports.closeDelimiter || _DEFAULT_CLOSE_DELIMITER;
2852
- options2.delimiter = opts.delimiter || exports.delimiter || _DEFAULT_DELIMITER;
2853
- options2.strict = opts.strict || false;
2854
- options2.context = opts.context;
2855
- options2.cache = opts.cache || false;
2856
- options2.rmWhitespace = opts.rmWhitespace;
2857
- options2.root = opts.root;
2858
- options2.includer = opts.includer;
2859
- options2.outputFunctionName = opts.outputFunctionName;
2860
- options2.localsName = opts.localsName || exports.localsName || _DEFAULT_LOCALS_NAME;
2861
- options2.views = opts.views;
2862
- options2.async = opts.async;
2863
- options2.destructuredLocals = opts.destructuredLocals;
2864
- options2.legacyInclude = typeof opts.legacyInclude != "undefined" ? !!opts.legacyInclude : true;
2865
- if (options2.strict) {
2866
- options2._with = false;
2749
+ options.client = opts.client || false;
2750
+ options.escapeFunction = opts.escape || opts.escapeFunction || utils.escapeXML;
2751
+ options.compileDebug = opts.compileDebug !== false;
2752
+ options.debug = !!opts.debug;
2753
+ options.filename = opts.filename;
2754
+ options.openDelimiter = opts.openDelimiter || exports2.openDelimiter || _DEFAULT_OPEN_DELIMITER;
2755
+ options.closeDelimiter = opts.closeDelimiter || exports2.closeDelimiter || _DEFAULT_CLOSE_DELIMITER;
2756
+ options.delimiter = opts.delimiter || exports2.delimiter || _DEFAULT_DELIMITER;
2757
+ options.strict = opts.strict || false;
2758
+ options.context = opts.context;
2759
+ options.cache = opts.cache || false;
2760
+ options.rmWhitespace = opts.rmWhitespace;
2761
+ options.root = opts.root;
2762
+ options.includer = opts.includer;
2763
+ options.outputFunctionName = opts.outputFunctionName;
2764
+ options.localsName = opts.localsName || exports2.localsName || _DEFAULT_LOCALS_NAME;
2765
+ options.views = opts.views;
2766
+ options.async = opts.async;
2767
+ options.destructuredLocals = opts.destructuredLocals;
2768
+ options.legacyInclude = typeof opts.legacyInclude != "undefined" ? !!opts.legacyInclude : true;
2769
+ if (options.strict) {
2770
+ options._with = false;
2867
2771
  } else {
2868
- options2._with = typeof opts._with != "undefined" ? opts._with : true;
2772
+ options._with = typeof opts._with != "undefined" ? opts._with : true;
2869
2773
  }
2870
- this.opts = options2;
2774
+ this.opts = options;
2871
2775
  this.regex = this.createRegex();
2872
2776
  }
2873
2777
  Template.modes = {
@@ -3012,7 +2916,7 @@ var require_ejs = __commonJS({
3012
2916
  this.templateText = this.templateText.replace(/[\r\n]+/g, "\n").replace(/^\s+|\s+$/gm, "");
3013
2917
  }
3014
2918
  this.templateText = this.templateText.replace(/[ \t]*<%_/gm, "<%_").replace(/_%>[ \t]*/gm, "_%>");
3015
- var self2 = this;
2919
+ var self = this;
3016
2920
  var matches = this.parseTemplateText();
3017
2921
  var d = this.opts.delimiter;
3018
2922
  var o = this.opts.openDelimiter;
@@ -3026,7 +2930,7 @@ var require_ejs = __commonJS({
3026
2930
  throw new Error('Could not find matching close tag for "' + line + '".');
3027
2931
  }
3028
2932
  }
3029
- self2.scanLine(line);
2933
+ self.scanLine(line);
3030
2934
  });
3031
2935
  }
3032
2936
  },
@@ -3066,7 +2970,7 @@ var require_ejs = __commonJS({
3066
2970
  this.source += ' ; __append("' + line + '")\n';
3067
2971
  },
3068
2972
  scanLine: function(line) {
3069
- var self2 = this;
2973
+ var self = this;
3070
2974
  var d = this.opts.delimiter;
3071
2975
  var o = this.opts.openDelimiter;
3072
2976
  var c = this.opts.closeDelimiter;
@@ -3114,17 +3018,21 @@ var require_ejs = __commonJS({
3114
3018
  }
3115
3019
  }
3116
3020
  switch (this.mode) {
3021
+ // Just executing code
3117
3022
  case Template.modes.EVAL:
3118
3023
  this.source += " ; " + line + "\n";
3119
3024
  break;
3025
+ // Exec, esc, and output
3120
3026
  case Template.modes.ESCAPED:
3121
3027
  this.source += " ; __append(escapeFn(" + stripSemi(line) + "))\n";
3122
3028
  break;
3029
+ // Exec and output
3123
3030
  case Template.modes.RAW:
3124
3031
  this.source += " ; __append(" + stripSemi(line) + ")\n";
3125
3032
  break;
3126
3033
  case Template.modes.COMMENT:
3127
3034
  break;
3035
+ // Literal <%% mode, append as raw output
3128
3036
  case Template.modes.LITERAL:
3129
3037
  this._addOutput(line);
3130
3038
  break;
@@ -3133,710 +3041,78 @@ var require_ejs = __commonJS({
3133
3041
  this._addOutput(line);
3134
3042
  }
3135
3043
  }
3136
- if (self2.opts.compileDebug && newLineCount) {
3044
+ if (self.opts.compileDebug && newLineCount) {
3137
3045
  this.currentLine += newLineCount;
3138
3046
  this.source += " ; __line = " + this.currentLine + "\n";
3139
3047
  }
3140
3048
  }
3141
3049
  };
3142
- exports.escapeXML = utils.escapeXML;
3143
- exports.__express = exports.renderFile;
3144
- exports.VERSION = _VERSION_STRING;
3145
- exports.name = _NAME;
3050
+ exports2.escapeXML = utils.escapeXML;
3051
+ exports2.__express = exports2.renderFile;
3052
+ exports2.VERSION = _VERSION_STRING;
3053
+ exports2.name = _NAME;
3146
3054
  if (typeof window != "undefined") {
3147
- window.ejs = exports;
3148
- }
3149
- }
3150
- });
3151
-
3152
- // node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/quote.js
3153
- var require_quote = __commonJS({
3154
- "node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/quote.js"(exports) {
3155
- "use strict";
3156
- Object.defineProperty(exports, "__esModule", { value: true });
3157
- exports.stringifyPath = exports.quoteKey = exports.isValidVariableName = exports.IS_VALID_IDENTIFIER = exports.quoteString = void 0;
3158
- var ESCAPABLE = /[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
3159
- var META_CHARS = /* @__PURE__ */ new Map([
3160
- ["\b", "\\b"],
3161
- [" ", "\\t"],
3162
- ["\n", "\\n"],
3163
- ["\f", "\\f"],
3164
- ["\r", "\\r"],
3165
- ["'", "\\'"],
3166
- ['"', '\\"'],
3167
- ["\\", "\\\\"]
3168
- ]);
3169
- function escapeChar(char) {
3170
- return META_CHARS.get(char) || `\\u${`0000${char.charCodeAt(0).toString(16)}`.slice(-4)}`;
3171
- }
3172
- function quoteString(str) {
3173
- return `'${str.replace(ESCAPABLE, escapeChar)}'`;
3174
- }
3175
- exports.quoteString = quoteString;
3176
- var RESERVED_WORDS = new Set("break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "));
3177
- exports.IS_VALID_IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
3178
- function isValidVariableName(name) {
3179
- return typeof name === "string" && !RESERVED_WORDS.has(name) && exports.IS_VALID_IDENTIFIER.test(name);
3180
- }
3181
- exports.isValidVariableName = isValidVariableName;
3182
- function quoteKey(key, next) {
3183
- return isValidVariableName(key) ? key : next(key);
3184
- }
3185
- exports.quoteKey = quoteKey;
3186
- function stringifyPath(path6, next) {
3187
- let result = "";
3188
- for (const key of path6) {
3189
- if (isValidVariableName(key)) {
3190
- result += `.${key}`;
3191
- } else {
3192
- result += `[${next(key)}]`;
3193
- }
3194
- }
3195
- return result;
3196
- }
3197
- exports.stringifyPath = stringifyPath;
3198
- }
3199
- });
3200
-
3201
- // node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/function.js
3202
- var require_function = __commonJS({
3203
- "node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/function.js"(exports) {
3204
- "use strict";
3205
- Object.defineProperty(exports, "__esModule", { value: true });
3206
- exports.FunctionParser = exports.dedentFunction = exports.functionToString = exports.USED_METHOD_KEY = void 0;
3207
- var quote_1 = require_quote();
3208
- var METHOD_NAMES_ARE_QUOTED = {
3209
- " "() {
3210
- }
3211
- }[" "].toString().charAt(0) === '"';
3212
- var FUNCTION_PREFIXES = {
3213
- Function: "function ",
3214
- GeneratorFunction: "function* ",
3215
- AsyncFunction: "async function ",
3216
- AsyncGeneratorFunction: "async function* "
3217
- };
3218
- var METHOD_PREFIXES = {
3219
- Function: "",
3220
- GeneratorFunction: "*",
3221
- AsyncFunction: "async ",
3222
- AsyncGeneratorFunction: "async *"
3223
- };
3224
- var TOKENS_PRECEDING_REGEXPS = new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" "));
3225
- exports.USED_METHOD_KEY = /* @__PURE__ */ new WeakSet();
3226
- var functionToString = (fn, space, next, key) => {
3227
- const name = typeof key === "string" ? key : void 0;
3228
- if (name !== void 0)
3229
- exports.USED_METHOD_KEY.add(fn);
3230
- return new FunctionParser(fn, space, next, name).stringify();
3231
- };
3232
- exports.functionToString = functionToString;
3233
- function dedentFunction(fnString) {
3234
- let found;
3235
- for (const line of fnString.split("\n").slice(1)) {
3236
- const m = /^[\s\t]+/.exec(line);
3237
- if (!m)
3238
- return fnString;
3239
- const [str] = m;
3240
- if (found === void 0)
3241
- found = str;
3242
- else if (str.length < found.length)
3243
- found = str;
3244
- }
3245
- return found ? fnString.split(`
3246
- ${found}`).join("\n") : fnString;
3247
- }
3248
- exports.dedentFunction = dedentFunction;
3249
- var FunctionParser = class {
3250
- constructor(fn, indent, next, key) {
3251
- this.fn = fn;
3252
- this.indent = indent;
3253
- this.next = next;
3254
- this.key = key;
3255
- this.pos = 0;
3256
- this.hadKeyword = false;
3257
- this.fnString = Function.prototype.toString.call(fn);
3258
- this.fnType = fn.constructor.name;
3259
- this.keyQuote = key === void 0 ? "" : quote_1.quoteKey(key, next);
3260
- this.keyPrefix = key === void 0 ? "" : `${this.keyQuote}:${indent ? " " : ""}`;
3261
- this.isMethodCandidate = key === void 0 ? false : this.fn.name === "" || this.fn.name === key;
3262
- }
3263
- stringify() {
3264
- const value = this.tryParse();
3265
- if (!value) {
3266
- return `${this.keyPrefix}void ${this.next(this.fnString)}`;
3267
- }
3268
- return dedentFunction(value);
3269
- }
3270
- getPrefix() {
3271
- if (this.isMethodCandidate && !this.hadKeyword) {
3272
- return METHOD_PREFIXES[this.fnType] + this.keyQuote;
3273
- }
3274
- return this.keyPrefix + FUNCTION_PREFIXES[this.fnType];
3275
- }
3276
- tryParse() {
3277
- if (this.fnString[this.fnString.length - 1] !== "}") {
3278
- return this.keyPrefix + this.fnString;
3279
- }
3280
- if (this.fn.name) {
3281
- const result = this.tryStrippingName();
3282
- if (result)
3283
- return result;
3284
- }
3285
- const prevPos = this.pos;
3286
- if (this.consumeSyntax() === "class")
3287
- return this.fnString;
3288
- this.pos = prevPos;
3289
- if (this.tryParsePrefixTokens()) {
3290
- const result = this.tryStrippingName();
3291
- if (result)
3292
- return result;
3293
- let offset = this.pos;
3294
- switch (this.consumeSyntax("WORD_LIKE")) {
3295
- case "WORD_LIKE":
3296
- if (this.isMethodCandidate && !this.hadKeyword) {
3297
- offset = this.pos;
3298
- }
3299
- case "()":
3300
- if (this.fnString.substr(this.pos, 2) === "=>") {
3301
- return this.keyPrefix + this.fnString;
3302
- }
3303
- this.pos = offset;
3304
- case '"':
3305
- case "'":
3306
- case "[]":
3307
- return this.getPrefix() + this.fnString.substr(this.pos);
3308
- }
3309
- }
3310
- }
3311
- /**
3312
- * Attempt to parse the function from the current position by first stripping
3313
- * the function's name from the front. This is not a fool-proof method on all
3314
- * JavaScript engines, but yields good results on Node.js 4 (and slightly
3315
- * less good results on Node.js 6 and 8).
3316
- */
3317
- tryStrippingName() {
3318
- if (METHOD_NAMES_ARE_QUOTED) {
3319
- return;
3320
- }
3321
- let start = this.pos;
3322
- const prefix = this.fnString.substr(this.pos, this.fn.name.length);
3323
- if (prefix === this.fn.name) {
3324
- this.pos += prefix.length;
3325
- if (this.consumeSyntax() === "()" && this.consumeSyntax() === "{}" && this.pos === this.fnString.length) {
3326
- if (this.isMethodCandidate || !quote_1.isValidVariableName(prefix)) {
3327
- start += prefix.length;
3328
- }
3329
- return this.getPrefix() + this.fnString.substr(start);
3330
- }
3331
- }
3332
- this.pos = start;
3333
- }
3334
- /**
3335
- * Attempt to advance the parser past the keywords expected to be at the
3336
- * start of this function's definition. This method sets `this.hadKeyword`
3337
- * based on whether or not a `function` keyword is consumed.
3338
- */
3339
- tryParsePrefixTokens() {
3340
- let posPrev = this.pos;
3341
- this.hadKeyword = false;
3342
- switch (this.fnType) {
3343
- case "AsyncFunction":
3344
- if (this.consumeSyntax() !== "async")
3345
- return false;
3346
- posPrev = this.pos;
3347
- case "Function":
3348
- if (this.consumeSyntax() === "function") {
3349
- this.hadKeyword = true;
3350
- } else {
3351
- this.pos = posPrev;
3352
- }
3353
- return true;
3354
- case "AsyncGeneratorFunction":
3355
- if (this.consumeSyntax() !== "async")
3356
- return false;
3357
- case "GeneratorFunction":
3358
- let token = this.consumeSyntax();
3359
- if (token === "function") {
3360
- token = this.consumeSyntax();
3361
- this.hadKeyword = true;
3362
- }
3363
- return token === "*";
3364
- }
3365
- }
3366
- /**
3367
- * Advance the parser past one element of JavaScript syntax. This could be a
3368
- * matched pair of delimiters, like braces or parentheses, or an atomic unit
3369
- * like a keyword, variable, or operator. Return a normalized string
3370
- * representation of the element parsed--for example, returns '{}' for a
3371
- * matched pair of braces. Comments and whitespace are skipped.
3372
- *
3373
- * (This isn't a full parser, so the token scanning logic used here is as
3374
- * simple as it can be. As a consequence, some things that are one token in
3375
- * JavaScript, like decimal number literals or most multi-character operators
3376
- * like '&&', are split into more than one token here. However, awareness of
3377
- * some multi-character sequences like '=>' is necessary, so we match the few
3378
- * of them that we care about.)
3379
- */
3380
- consumeSyntax(wordLikeToken) {
3381
- const m = this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/);
3382
- if (!m)
3383
- return;
3384
- const [token, match] = m;
3385
- this.consumeWhitespace();
3386
- if (match)
3387
- return wordLikeToken || match;
3388
- switch (token) {
3389
- case "(":
3390
- return this.consumeSyntaxUntil("(", ")");
3391
- case "[":
3392
- return this.consumeSyntaxUntil("[", "]");
3393
- case "{":
3394
- return this.consumeSyntaxUntil("{", "}");
3395
- case "`":
3396
- return this.consumeTemplate();
3397
- case '"':
3398
- return this.consumeRegExp(/^(?:[^\\"]|\\.)*"/, '"');
3399
- case "'":
3400
- return this.consumeRegExp(/^(?:[^\\']|\\.)*'/, "'");
3401
- }
3402
- return token;
3403
- }
3404
- consumeSyntaxUntil(startToken, endToken) {
3405
- let isRegExpAllowed = true;
3406
- for (; ; ) {
3407
- const token = this.consumeSyntax();
3408
- if (token === endToken)
3409
- return startToken + endToken;
3410
- if (!token || token === ")" || token === "]" || token === "}")
3411
- return;
3412
- if (token === "/" && isRegExpAllowed && this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/)) {
3413
- isRegExpAllowed = false;
3414
- this.consumeWhitespace();
3415
- } else {
3416
- isRegExpAllowed = TOKENS_PRECEDING_REGEXPS.has(token);
3417
- }
3418
- }
3419
- }
3420
- consumeMatch(re) {
3421
- const m = re.exec(this.fnString.substr(this.pos));
3422
- if (m)
3423
- this.pos += m[0].length;
3424
- return m;
3425
- }
3426
- /**
3427
- * Advance the parser past an arbitrary regular expression. Return `token`,
3428
- * or the match object of the regexp.
3429
- */
3430
- consumeRegExp(re, token) {
3431
- const m = re.exec(this.fnString.substr(this.pos));
3432
- if (!m)
3433
- return;
3434
- this.pos += m[0].length;
3435
- this.consumeWhitespace();
3436
- return token;
3437
- }
3438
- /**
3439
- * Advance the parser past a template string.
3440
- */
3441
- consumeTemplate() {
3442
- for (; ; ) {
3443
- this.consumeMatch(/^(?:[^`$\\]|\\.|\$(?!{))*/);
3444
- if (this.fnString[this.pos] === "`") {
3445
- this.pos++;
3446
- this.consumeWhitespace();
3447
- return "`";
3448
- }
3449
- if (this.fnString.substr(this.pos, 2) === "${") {
3450
- this.pos += 2;
3451
- this.consumeWhitespace();
3452
- if (this.consumeSyntaxUntil("{", "}"))
3453
- continue;
3454
- }
3455
- return;
3456
- }
3457
- }
3458
- /**
3459
- * Advance the parser past any whitespace or comments.
3460
- */
3461
- consumeWhitespace() {
3462
- this.consumeMatch(/^(?:\s|\/\/.*|\/\*[^]*?\*\/)*/);
3463
- }
3464
- };
3465
- exports.FunctionParser = FunctionParser;
3466
- }
3467
- });
3468
-
3469
- // node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/array.js
3470
- var require_array = __commonJS({
3471
- "node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/array.js"(exports) {
3472
- "use strict";
3473
- Object.defineProperty(exports, "__esModule", { value: true });
3474
- exports.arrayToString = void 0;
3475
- var arrayToString = (array, space, next) => {
3476
- const values = array.map(function(value, index) {
3477
- const result = next(value, index);
3478
- if (result === void 0)
3479
- return String(result);
3480
- return space + result.split("\n").join(`
3481
- ${space}`);
3482
- }).join(space ? ",\n" : ",");
3483
- const eol = space && values ? "\n" : "";
3484
- return `[${eol}${values}${eol}]`;
3485
- };
3486
- exports.arrayToString = arrayToString;
3487
- }
3488
- });
3489
-
3490
- // node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/object.js
3491
- var require_object = __commonJS({
3492
- "node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/object.js"(exports) {
3493
- "use strict";
3494
- Object.defineProperty(exports, "__esModule", { value: true });
3495
- exports.objectToString = void 0;
3496
- var quote_1 = require_quote();
3497
- var function_1 = require_function();
3498
- var array_1 = require_array();
3499
- var objectToString = (value, space, next, key) => {
3500
- if (typeof Buffer === "function" && Buffer.isBuffer(value)) {
3501
- return `Buffer.from(${next(value.toString("base64"))}, 'base64')`;
3502
- }
3503
- if (typeof global === "object" && value === global) {
3504
- return globalToString(value, space, next, key);
3505
- }
3506
- const toString = OBJECT_TYPES[Object.prototype.toString.call(value)];
3507
- return toString ? toString(value, space, next, key) : void 0;
3508
- };
3509
- exports.objectToString = objectToString;
3510
- var rawObjectToString = (obj, indent, next, key) => {
3511
- const eol = indent ? "\n" : "";
3512
- const space = indent ? " " : "";
3513
- const values = Object.keys(obj).reduce(function(values2, key2) {
3514
- const fn = obj[key2];
3515
- const result = next(fn, key2);
3516
- if (result === void 0)
3517
- return values2;
3518
- const value = result.split("\n").join(`
3519
- ${indent}`);
3520
- if (function_1.USED_METHOD_KEY.has(fn)) {
3521
- values2.push(`${indent}${value}`);
3522
- return values2;
3523
- }
3524
- values2.push(`${indent}${quote_1.quoteKey(key2, next)}:${space}${value}`);
3525
- return values2;
3526
- }, []).join(`,${eol}`);
3527
- if (values === "")
3528
- return "{}";
3529
- return `{${eol}${values}${eol}}`;
3530
- };
3531
- var globalToString = (value, space, next) => {
3532
- return `Function(${next("return this")})()`;
3533
- };
3534
- var OBJECT_TYPES = {
3535
- "[object Array]": array_1.arrayToString,
3536
- "[object Object]": rawObjectToString,
3537
- "[object Error]": (error, space, next) => {
3538
- return `new Error(${next(error.message)})`;
3539
- },
3540
- "[object Date]": (date) => {
3541
- return `new Date(${date.getTime()})`;
3542
- },
3543
- "[object String]": (str, space, next) => {
3544
- return `new String(${next(str.toString())})`;
3545
- },
3546
- "[object Number]": (num) => {
3547
- return `new Number(${num})`;
3548
- },
3549
- "[object Boolean]": (bool) => {
3550
- return `new Boolean(${bool})`;
3551
- },
3552
- "[object Set]": (set, space, next) => {
3553
- return `new Set(${next(Array.from(set))})`;
3554
- },
3555
- "[object Map]": (map, space, next) => {
3556
- return `new Map(${next(Array.from(map))})`;
3557
- },
3558
- "[object RegExp]": String,
3559
- "[object global]": globalToString,
3560
- "[object Window]": globalToString
3561
- };
3562
- }
3563
- });
3564
-
3565
- // node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/stringify.js
3566
- var require_stringify = __commonJS({
3567
- "node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/stringify.js"(exports) {
3568
- "use strict";
3569
- Object.defineProperty(exports, "__esModule", { value: true });
3570
- exports.toString = void 0;
3571
- var quote_1 = require_quote();
3572
- var object_1 = require_object();
3573
- var function_1 = require_function();
3574
- var PRIMITIVE_TYPES = {
3575
- string: quote_1.quoteString,
3576
- number: (value) => Object.is(value, -0) ? "-0" : String(value),
3577
- boolean: String,
3578
- symbol: (value, space, next) => {
3579
- const key = Symbol.keyFor(value);
3580
- if (key !== void 0)
3581
- return `Symbol.for(${next(key)})`;
3582
- return `Symbol(${next(value.description)})`;
3583
- },
3584
- bigint: (value, space, next) => {
3585
- return `BigInt(${next(String(value))})`;
3586
- },
3587
- undefined: String,
3588
- object: object_1.objectToString,
3589
- function: function_1.functionToString
3590
- };
3591
- var toString = (value, space, next, key) => {
3592
- if (value === null)
3593
- return "null";
3594
- return PRIMITIVE_TYPES[typeof value](value, space, next, key);
3595
- };
3596
- exports.toString = toString;
3597
- }
3598
- });
3599
-
3600
- // node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/index.js
3601
- var require_dist = __commonJS({
3602
- "node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/index.js"(exports) {
3603
- "use strict";
3604
- Object.defineProperty(exports, "__esModule", { value: true });
3605
- exports.stringify = void 0;
3606
- var stringify_1 = require_stringify();
3607
- var quote_1 = require_quote();
3608
- var ROOT_SENTINEL = Symbol("root");
3609
- function stringify2(value, replacer, indent, options2 = {}) {
3610
- const space = typeof indent === "string" ? indent : " ".repeat(indent || 0);
3611
- const path6 = [];
3612
- const stack = /* @__PURE__ */ new Set();
3613
- const tracking = /* @__PURE__ */ new Map();
3614
- const unpack = /* @__PURE__ */ new Map();
3615
- let valueCount = 0;
3616
- const { maxDepth = 100, references = false, skipUndefinedProperties = false, maxValues = 1e5 } = options2;
3617
- const valueToString = replacerToString(replacer);
3618
- const onNext = (value2, key) => {
3619
- if (++valueCount > maxValues)
3620
- return;
3621
- if (skipUndefinedProperties && value2 === void 0)
3622
- return;
3623
- if (path6.length > maxDepth)
3624
- return;
3625
- if (key === void 0)
3626
- return valueToString(value2, space, onNext, key);
3627
- path6.push(key);
3628
- const result2 = builder(value2, key === ROOT_SENTINEL ? void 0 : key);
3629
- path6.pop();
3630
- return result2;
3631
- };
3632
- const builder = references ? (value2, key) => {
3633
- if (value2 !== null && (typeof value2 === "object" || typeof value2 === "function" || typeof value2 === "symbol")) {
3634
- if (tracking.has(value2)) {
3635
- unpack.set(path6.slice(1), tracking.get(value2));
3636
- return valueToString(void 0, space, onNext, key);
3637
- }
3638
- tracking.set(value2, path6.slice(1));
3639
- }
3640
- return valueToString(value2, space, onNext, key);
3641
- } : (value2, key) => {
3642
- if (stack.has(value2))
3643
- return;
3644
- stack.add(value2);
3645
- const result2 = valueToString(value2, space, onNext, key);
3646
- stack.delete(value2);
3647
- return result2;
3648
- };
3649
- const result = onNext(value, ROOT_SENTINEL);
3650
- if (unpack.size) {
3651
- const sp = space ? " " : "";
3652
- const eol = space ? "\n" : "";
3653
- let wrapper = `var x${sp}=${sp}${result};${eol}`;
3654
- for (const [key, value2] of unpack.entries()) {
3655
- const keyPath = quote_1.stringifyPath(key, onNext);
3656
- const valuePath = quote_1.stringifyPath(value2, onNext);
3657
- wrapper += `x${keyPath}${sp}=${sp}x${valuePath};${eol}`;
3658
- }
3659
- return `(function${sp}()${sp}{${eol}${wrapper}return x;${eol}}())`;
3660
- }
3661
- return result;
3662
- }
3663
- exports.stringify = stringify2;
3664
- function replacerToString(replacer) {
3665
- if (!replacer)
3666
- return stringify_1.toString;
3667
- return (value, space, next, key) => {
3668
- return replacer(value, space, (value2) => stringify_1.toString(value2, space, next, key), key);
3669
- };
3055
+ window.ejs = exports2;
3670
3056
  }
3671
3057
  }
3672
3058
  });
3673
3059
 
3674
- // node_modules/.pnpm/@vue+create-eslint-config@0.3.3/node_modules/@vue/create-eslint-config/package.json
3675
- var require_package2 = __commonJS({
3676
- "node_modules/.pnpm/@vue+create-eslint-config@0.3.3/node_modules/@vue/create-eslint-config/package.json"(exports, module2) {
3677
- module2.exports = {
3678
- name: "@vue/create-eslint-config",
3679
- version: "0.3.3",
3680
- description: "Utility to setup ESLint in Vue.js projects.",
3681
- type: "module",
3682
- main: "index.js",
3683
- bin: {
3684
- "create-eslint-config": "bin/create-eslint-config.js"
3685
- },
3686
- engines: {
3687
- node: "^16.14.0 || >= 18.0.0"
3688
- },
3689
- repository: {
3690
- type: "git",
3691
- url: "git+https://github.com/vuejs/create-eslint-config.git"
3692
- },
3693
- keywords: [
3694
- "vue",
3695
- "eslint",
3696
- "config"
3697
- ],
3698
- author: "Haoqun Jiang <haoqunjiang+npm@gmail.com>",
3699
- license: "MIT",
3700
- bugs: {
3701
- url: "https://github.com/vuejs/create-eslint-config/issues"
3702
- },
3703
- homepage: "https://github.com/vuejs/create-eslint-config#readme",
3704
- publishConfig: {
3705
- access: "public"
3706
- },
3707
- dependencies: {
3708
- enquirer: "^2.4.1",
3709
- "javascript-stringify": "^2.1.0",
3710
- kolorist: "^1.8.0"
3711
- },
3712
- devDependencies: {
3713
- "@rushstack/eslint-patch": "^1.8.0",
3714
- "@vue/eslint-config-airbnb": "^8.0.0",
3715
- "@vue/eslint-config-airbnb-with-typescript": "^8.0.0",
3716
- "@vue/eslint-config-prettier": "^9.0.0",
3717
- "@vue/eslint-config-standard": "^8.0.1",
3718
- "@vue/eslint-config-standard-with-typescript": "^8.0.0",
3719
- "@vue/eslint-config-typescript": "^13.0.0",
3720
- eslint: "^8.57.0",
3721
- "eslint-plugin-vue": "^9.23.0",
3722
- prettier: "^3.2.5",
3723
- standard: "^17.1.0",
3724
- typescript: "~5.1.6"
3725
- },
3726
- scripts: {
3727
- test: 'echo "Error: no test specified" && exit 1'
3728
- }
3729
- };
3730
- }
3731
- });
3732
-
3733
- // node_modules/.pnpm/@vue+create-eslint-config@0.3.3/node_modules/@vue/create-eslint-config/versionMap.cjs
3734
- var require_versionMap = __commonJS({
3735
- "node_modules/.pnpm/@vue+create-eslint-config@0.3.3/node_modules/@vue/create-eslint-config/versionMap.cjs"(exports, module2) {
3736
- module2.exports = require_package2().devDependencies;
3737
- }
3738
- });
3739
-
3740
3060
  // index.ts
3741
3061
  var fs5 = __toESM(require("fs"), 1);
3742
3062
  var path5 = __toESM(require("path"), 1);
3743
3063
  var import_node_util = require("util");
3744
3064
  var import_prompts = __toESM(require_lib(), 1);
3745
3065
 
3746
- // node_modules/.pnpm/kolorist@1.8.0/node_modules/kolorist/dist/esm/index.mjs
3747
- var enabled = true;
3748
- var globalVar = typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
3749
- var supportLevel = 0;
3750
- if (globalVar.process && globalVar.process.env && globalVar.process.stdout) {
3751
- const { FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, COLORTERM } = globalVar.process.env;
3752
- if (NODE_DISABLE_COLORS || NO_COLOR || FORCE_COLOR === "0") {
3753
- enabled = false;
3754
- } else if (FORCE_COLOR === "1" || FORCE_COLOR === "2" || FORCE_COLOR === "3") {
3755
- enabled = true;
3756
- } else if (TERM === "dumb") {
3757
- enabled = false;
3758
- } else if ("CI" in globalVar.process.env && [
3759
- "TRAVIS",
3760
- "CIRCLECI",
3761
- "APPVEYOR",
3762
- "GITLAB_CI",
3763
- "GITHUB_ACTIONS",
3764
- "BUILDKITE",
3765
- "DRONE"
3766
- ].some((vendor) => vendor in globalVar.process.env)) {
3767
- enabled = true;
3768
- } else {
3769
- enabled = process.stdout.isTTY;
3770
- }
3771
- if (enabled) {
3772
- if (process.platform === "win32") {
3773
- supportLevel = 3;
3774
- } else {
3775
- if (COLORTERM && (COLORTERM === "truecolor" || COLORTERM === "24bit")) {
3776
- supportLevel = 3;
3777
- } else if (TERM && (TERM.endsWith("-256color") || TERM.endsWith("256"))) {
3778
- supportLevel = 2;
3779
- } else {
3780
- supportLevel = 1;
3781
- }
3782
- }
3783
- }
3066
+ // node_modules/.pnpm/kleur@4.1.5/node_modules/kleur/colors.mjs
3067
+ var FORCE_COLOR;
3068
+ var NODE_DISABLE_COLORS;
3069
+ var NO_COLOR;
3070
+ var TERM;
3071
+ var isTTY = true;
3072
+ if (typeof process !== "undefined") {
3073
+ ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});
3074
+ isTTY = process.stdout && process.stdout.isTTY;
3784
3075
  }
3785
- var options = {
3786
- enabled,
3787
- supportLevel
3076
+ var $ = {
3077
+ enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY)
3788
3078
  };
3789
- function kolorist(start, end, level = 1) {
3790
- const open = `\x1B[${start}m`;
3791
- const close = `\x1B[${end}m`;
3792
- const regex = new RegExp(`\\x1b\\[${end}m`, "g");
3793
- return (str) => {
3794
- return options.enabled && options.supportLevel >= level ? open + ("" + str).replace(regex, open) + close : "" + str;
3079
+ function init(x, y) {
3080
+ let rgx = new RegExp(`\\x1b\\[${y}m`, "g");
3081
+ let open = `\x1B[${x}m`, close = `\x1B[${y}m`;
3082
+ return function(txt) {
3083
+ if (!$.enabled || txt == null) return txt;
3084
+ return open + (!!~("" + txt).indexOf(close) ? txt.replace(rgx, close + open) : txt) + close;
3795
3085
  };
3796
3086
  }
3797
- var reset = kolorist(0, 0);
3798
- var bold = kolorist(1, 22);
3799
- var dim = kolorist(2, 22);
3800
- var italic = kolorist(3, 23);
3801
- var underline = kolorist(4, 24);
3802
- var inverse = kolorist(7, 27);
3803
- var hidden = kolorist(8, 28);
3804
- var strikethrough = kolorist(9, 29);
3805
- var black = kolorist(30, 39);
3806
- var red = kolorist(31, 39);
3807
- var green = kolorist(32, 39);
3808
- var yellow = kolorist(33, 39);
3809
- var blue = kolorist(34, 39);
3810
- var magenta = kolorist(35, 39);
3811
- var cyan = kolorist(36, 39);
3812
- var white = kolorist(97, 39);
3813
- var gray = kolorist(90, 39);
3814
- var lightGray = kolorist(37, 39);
3815
- var lightRed = kolorist(91, 39);
3816
- var lightGreen = kolorist(92, 39);
3817
- var lightYellow = kolorist(93, 39);
3818
- var lightBlue = kolorist(94, 39);
3819
- var lightMagenta = kolorist(95, 39);
3820
- var lightCyan = kolorist(96, 39);
3821
- var bgBlack = kolorist(40, 49);
3822
- var bgRed = kolorist(41, 49);
3823
- var bgGreen = kolorist(42, 49);
3824
- var bgYellow = kolorist(43, 49);
3825
- var bgBlue = kolorist(44, 49);
3826
- var bgMagenta = kolorist(45, 49);
3827
- var bgCyan = kolorist(46, 49);
3828
- var bgWhite = kolorist(107, 49);
3829
- var bgGray = kolorist(100, 49);
3830
- var bgLightRed = kolorist(101, 49);
3831
- var bgLightGreen = kolorist(102, 49);
3832
- var bgLightYellow = kolorist(103, 49);
3833
- var bgLightBlue = kolorist(104, 49);
3834
- var bgLightMagenta = kolorist(105, 49);
3835
- var bgLightCyan = kolorist(106, 49);
3836
- var bgLightGray = kolorist(47, 49);
3087
+ var reset = init(0, 0);
3088
+ var bold = init(1, 22);
3089
+ var dim = init(2, 22);
3090
+ var italic = init(3, 23);
3091
+ var underline = init(4, 24);
3092
+ var inverse = init(7, 27);
3093
+ var hidden = init(8, 28);
3094
+ var strikethrough = init(9, 29);
3095
+ var black = init(30, 39);
3096
+ var red = init(31, 39);
3097
+ var green = init(32, 39);
3098
+ var yellow = init(33, 39);
3099
+ var blue = init(34, 39);
3100
+ var magenta = init(35, 39);
3101
+ var cyan = init(36, 39);
3102
+ var white = init(37, 39);
3103
+ var gray = init(90, 39);
3104
+ var grey = init(90, 39);
3105
+ var bgBlack = init(40, 49);
3106
+ var bgRed = init(41, 49);
3107
+ var bgGreen = init(42, 49);
3108
+ var bgYellow = init(43, 49);
3109
+ var bgBlue = init(44, 49);
3110
+ var bgMagenta = init(45, 49);
3111
+ var bgCyan = init(46, 49);
3112
+ var bgWhite = init(47, 49);
3837
3113
 
3838
3114
  // index.ts
3839
- var import_ejs = __toESM(require_ejs(), 1);
3115
+ var import_ejs2 = __toESM(require_ejs(), 1);
3840
3116
 
3841
3117
  // utils/banners.ts
3842
3118
  var defaultBanner = "Vue.js - The Progressive JavaScript Framework";
@@ -4019,7 +3295,7 @@ This template should help get you started developing with Vue 3 in Vite.
4019
3295
  ${needsTypeScript ? sfcTypeSupportDoc : ""}
4020
3296
  ## Customize configuration
4021
3297
 
4022
- See [Vite Configuration Reference](https://vitejs.dev/config/).
3298
+ See [Vite Configuration Reference](https://vite.dev/config/).
4023
3299
 
4024
3300
  ## Project Setup
4025
3301
 
@@ -4186,245 +3462,239 @@ function getLanguage() {
4186
3462
  var fs4 = __toESM(require("fs"), 1);
4187
3463
  var path4 = __toESM(require("path"), 1);
4188
3464
 
4189
- // node_modules/.pnpm/@vue+create-eslint-config@0.3.3/node_modules/@vue/create-eslint-config/index.js
4190
- var import_javascript_stringify = __toESM(require_dist(), 1);
4191
-
4192
- // node_modules/.pnpm/@vue+create-eslint-config@0.3.3/node_modules/@vue/create-eslint-config/templates/editorconfigs.js
4193
- var editorconfigs_exports = {};
4194
- __export(editorconfigs_exports, {
4195
- airbnb: () => airbnb,
4196
- standard: () => standard
4197
- });
4198
- var airbnb = `root = true
4199
-
4200
- [*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
4201
- charset = utf-8
4202
- end_of_line = lf
4203
- indent_size = 2
4204
- indent_style = space
4205
- insert_final_newline = true
4206
- max_line_length = 100
4207
- trim_trailing_whitespace = true
4208
- `;
4209
- var standard = `root = true
4210
-
4211
- [*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
4212
- charset = utf-8
4213
- indent_size = 2
4214
- indent_style = space
4215
- insert_final_newline = true
4216
- trim_trailing_whitespace = true
4217
- `;
3465
+ // node_modules/.pnpm/@vue+create-eslint-config@0.4.2/node_modules/@vue/create-eslint-config/renderEjsFile.js
3466
+ var import_ejs = __toESM(require_ejs(), 1);
3467
+ var templates = { "./templates/_editorconfig.ejs": "[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]\ncharset = utf-8\nindent_size = 2\nindent_style = space\ninsert_final_newline = true\ntrim_trailing_whitespace = true\n<%_ if (styleGuide === 'airbnb') { _%>\n<%# // standard doesn't have an opinion on line endings\n// https://github.com/standard/standard/issues/140\n// or maximum line length\n// https://github.com/standard/standard/issues/1559\n// so we only configure them for airbnb style\n%>\nend_of_line = lf\nmax_line_length = 100\n<%_ } _%>\n", "./templates/_prettierrc.json.ejs": `<%_ if (styleGuide === 'airbnb') { _%>
3468
+ {
3469
+ "$schema": "https://json.schemastore.org/prettierrc",
3470
+ "arrowParens": "always",
3471
+ "bracketSameLine": false,
3472
+ "bracketSpacing": true,
3473
+ "endOfLine": "lf",
3474
+ "jsxSingleQuote": false,
3475
+ "printWidth": 100,
3476
+ "proseWrap": "preserve",
3477
+ "quoteProps": "as-needed",
3478
+ "semi": true,
3479
+ "singleQuote": true,
3480
+ "tabWidth": 2,
3481
+ "trailingComma": "all",
3482
+ "useTabs": false
3483
+ }
3484
+ <%_ } else if (styleGuide === 'standard') { _%>
3485
+ {
3486
+ "$schema": "https://json.schemastore.org/prettierrc",
3487
+ "semi": false,
3488
+ "tabWidth": 2,
3489
+ "singleQuote": true,
3490
+ "printWidth": 100,
3491
+ "trailingComma": "all"
3492
+ }
3493
+ <%_ } else { _%>
3494
+ <%#
3495
+ The default style follows the one used in the vuejs/core repository
3496
+ <https://github.com/vuejs/core/blob/main/.prettierrc>
3497
+ %>
3498
+ {
3499
+ "$schema": "https://json.schemastore.org/prettierrc",
3500
+ "semi": false,
3501
+ "singleQuote": true,
3502
+ "arrowParens": "avoid"
3503
+ }
3504
+ <%_ } _%>
3505
+ `, "./templates/eslint.config.js.ejs": "<%_ for (const { importer } of configsBeforeVuePlugin) { _%>\n<%- importer %>\n<%_ } _%>\nimport pluginVue from 'eslint-plugin-vue'\n<%_ for (const { importer } of configsAfterVuePlugin) { _%>\n<%- importer %>\n<%_ } _%>\n\nexport default [\n {\n name: 'app/files-to-lint',\n files: ['**/*.{<%= fileExtensions.join(',') %>}'],\n },\n\n {\n name: 'app/files-to-ignore',\n ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],\n },\n\n <%_ for (const { content } of configsBeforeVuePlugin) { _%>\n <%- content %><%# TODO: auto-indent if content's multi-line %>\n <%_ } _%>\n ...pluginVue.configs['flat/essential'],\n <%_ for (const { content } of configsAfterVuePlugin) { _%>\n <%- content %><%# TODO: auto-indent if content's multi-line %>\n <%_ } _%>\n]\n" };
3506
+ function renderEjsFile(filePath, data) {
3507
+ return import_ejs.default.render(templates[filePath], data, {});
3508
+ }
4218
3509
 
4219
- // node_modules/.pnpm/@vue+create-eslint-config@0.3.3/node_modules/@vue/create-eslint-config/templates/prettierrcs.js
4220
- var prettierrcs_exports = {};
4221
- __export(prettierrcs_exports, {
4222
- airbnb: () => airbnb2,
4223
- default: () => defaultConfig,
4224
- standard: () => standard2
4225
- });
4226
- var defaultConfig = {
4227
- $schema: "https://json.schemastore.org/prettierrc",
4228
- semi: false,
4229
- tabWidth: 2,
4230
- singleQuote: true,
4231
- printWidth: 100,
4232
- trailingComma: "none"
4233
- };
4234
- var airbnb2 = {
4235
- $schema: "https://json.schemastore.org/prettierrc",
4236
- arrowParens: "always",
4237
- bracketSameLine: false,
4238
- bracketSpacing: true,
4239
- endOfLine: "lf",
4240
- jsxSingleQuote: false,
4241
- printWidth: 100,
4242
- proseWrap: "preserve",
4243
- quoteProps: "as-needed",
4244
- semi: true,
4245
- singleQuote: true,
4246
- tabWidth: 2,
4247
- trailingComma: "all",
4248
- useTabs: false
4249
- };
4250
- var standard2 = {
4251
- $schema: "https://json.schemastore.org/prettierrc",
4252
- arrowParens: "always",
4253
- bracketSameLine: false,
4254
- bracketSpacing: true,
4255
- jsxSingleQuote: true,
4256
- proseWrap: "preserve",
4257
- quoteProps: "as-needed",
4258
- semi: false,
4259
- singleQuote: true,
4260
- tabWidth: 2,
4261
- trailingComma: "none",
4262
- useTabs: false
3510
+ // node_modules/.pnpm/@vue+create-eslint-config@0.4.2/node_modules/@vue/create-eslint-config/package.json
3511
+ var package_default = {
3512
+ name: "@vue/create-eslint-config",
3513
+ version: "0.4.2",
3514
+ description: "Utility to setup ESLint in Vue.js projects.",
3515
+ type: "module",
3516
+ main: "index.js",
3517
+ bin: {
3518
+ "create-eslint-config": "bin/create-eslint-config.js"
3519
+ },
3520
+ engines: {
3521
+ node: "^16.14.0 || >= 18.0.0"
3522
+ },
3523
+ repository: {
3524
+ type: "git",
3525
+ url: "git+https://github.com/vuejs/create-eslint-config.git"
3526
+ },
3527
+ keywords: [
3528
+ "vue",
3529
+ "eslint",
3530
+ "config"
3531
+ ],
3532
+ author: "Haoqun Jiang <haoqunjiang+npm@gmail.com>",
3533
+ license: "MIT",
3534
+ bugs: {
3535
+ url: "https://github.com/vuejs/create-eslint-config/issues"
3536
+ },
3537
+ homepage: "https://github.com/vuejs/create-eslint-config#readme",
3538
+ publishConfig: {
3539
+ access: "public"
3540
+ },
3541
+ dependencies: {
3542
+ ejs: "^3.1.10",
3543
+ enquirer: "^2.4.1",
3544
+ kolorist: "^1.8.0"
3545
+ },
3546
+ devDependencies: {
3547
+ "@eslint/js": "^9.12.0",
3548
+ "@types/node": "^22.7.5",
3549
+ "@vue/eslint-config-prettier": "^10.0.0",
3550
+ "@vue/eslint-config-typescript": "^14.0.1",
3551
+ eslint: "^9.12.0",
3552
+ "eslint-plugin-vue": "^9.29.0",
3553
+ prettier: "^3.3.3",
3554
+ typescript: "~5.5.4"
3555
+ },
3556
+ scripts: {
3557
+ test: 'echo "Error: no test specified" && exit 1',
3558
+ lint: "eslint --fix ."
3559
+ }
4263
3560
  };
4264
3561
 
4265
- // node_modules/.pnpm/@vue+create-eslint-config@0.3.3/node_modules/@vue/create-eslint-config/index.js
4266
- var import_versionMap = __toESM(require_versionMap(), 1);
4267
- function stringifyJS(value, styleGuide) {
4268
- const result = (0, import_javascript_stringify.stringify)(value, (val, indent, stringify2, key) => {
4269
- if (key === "CREATE_ALIAS_SETTING_PLACEHOLDER") {
4270
- return `(${stringify2(val)})`;
4271
- }
4272
- return stringify2(val);
4273
- }, 2);
4274
- return result.replace(
4275
- "CREATE_ALIAS_SETTING_PLACEHOLDER: ",
4276
- `...require('@vue/eslint-config-${styleGuide}/createAliasSetting')`
4277
- );
4278
- }
4279
- var isObject2 = (val) => val && typeof val === "object";
4280
- var mergeArrayWithDedupe2 = (a, b) => Array.from(/* @__PURE__ */ new Set([...a, ...b]));
4281
- function deepMerge2(target, obj) {
4282
- for (const key of Object.keys(obj)) {
4283
- const oldVal = target[key];
4284
- const newVal = obj[key];
4285
- if (Array.isArray(oldVal) && Array.isArray(newVal)) {
4286
- target[key] = mergeArrayWithDedupe2(oldVal, newVal);
4287
- } else if (isObject2(oldVal) && isObject2(newVal)) {
4288
- target[key] = deepMerge2(oldVal, newVal);
4289
- } else {
4290
- target[key] = newVal;
4291
- }
4292
- }
4293
- return target;
4294
- }
3562
+ // node_modules/.pnpm/@vue+create-eslint-config@0.4.2/node_modules/@vue/create-eslint-config/index.js
3563
+ var versionMap = package_default.devDependencies;
4295
3564
  function createConfig({
4296
- vueVersion = "3.x",
4297
- // '2.x' | '3.x' (TODO: 2.7 / vue-demi)
4298
3565
  styleGuide = "default",
4299
- // default | airbnb | typescript
3566
+ // default ~~| airbnb | standard~~ only the default is supported for now
4300
3567
  hasTypeScript = false,
4301
- // js | ts
4302
3568
  needsPrettier = false,
4303
- // true | false
4304
- additionalConfig = {},
4305
- // e.g. Cypress, createAliasSetting for Airbnb, etc.
4306
- additionalDependencies = {}
4307
- // e.g. eslint-plugin-cypress
3569
+ additionalConfigs = []
4308
3570
  }) {
4309
- const pkg = { devDependencies: {} };
4310
- const addDependency = (name) => {
4311
- pkg.devDependencies[name] = import_versionMap.default[name];
3571
+ const pickDependencies = (keys) => pickKeysFromObject(versionMap, keys);
3572
+ const pkg = {
3573
+ devDependencies: pickDependencies(["eslint", "eslint-plugin-vue"])
4312
3574
  };
4313
- addDependency("eslint");
4314
- addDependency("eslint-plugin-vue");
4315
- if (styleGuide !== "default" || hasTypeScript || needsPrettier) {
4316
- addDependency("@rushstack/eslint-patch");
4317
- }
4318
- const language = hasTypeScript ? "typescript" : "javascript";
4319
- const eslintConfig = {
4320
- root: true,
4321
- extends: [
4322
- vueVersion.startsWith("2") ? "plugin:vue/essential" : "plugin:vue/vue3-essential"
4323
- ]
4324
- };
4325
- const addDependencyAndExtend = (name) => {
4326
- addDependency(name);
4327
- eslintConfig.extends.push(name);
4328
- };
4329
- switch (`${styleGuide}-${language}`) {
4330
- case "default-javascript":
4331
- eslintConfig.extends.push("eslint:recommended");
4332
- break;
4333
- case "default-typescript":
4334
- eslintConfig.extends.push("eslint:recommended");
4335
- addDependencyAndExtend("@vue/eslint-config-typescript");
4336
- break;
4337
- case "airbnb-javascript":
4338
- case "standard-javascript":
4339
- addDependencyAndExtend(`@vue/eslint-config-${styleGuide}`);
4340
- break;
4341
- case "airbnb-typescript":
4342
- case "standard-typescript":
4343
- addDependencyAndExtend(`@vue/eslint-config-${styleGuide}-with-typescript`);
4344
- break;
4345
- default:
4346
- throw new Error(`unexpected combination of styleGuide and language: ${styleGuide}-${language}`);
3575
+ const fileExtensions = ["vue"];
3576
+ if (hasTypeScript) {
3577
+ fileExtensions.unshift("ts", "mts", "tsx");
3578
+ additionalConfigs.unshift({
3579
+ devDependencies: pickDependencies(["@vue/eslint-config-typescript"]),
3580
+ afterVuePlugin: [
3581
+ {
3582
+ importer: "import vueTsEslintConfig from '@vue/eslint-config-typescript'",
3583
+ // TODO: supportedScriptLangs
3584
+ content: "...vueTsEslintConfig(),"
3585
+ }
3586
+ ]
3587
+ });
3588
+ } else {
3589
+ fileExtensions.unshift("js", "mjs", "jsx");
3590
+ additionalConfigs.unshift({
3591
+ devDependencies: pickDependencies(["@eslint/js"]),
3592
+ beforeVuePlugin: [
3593
+ {
3594
+ importer: "import js from '@eslint/js'",
3595
+ content: "js.configs.recommended,"
3596
+ }
3597
+ ]
3598
+ });
4347
3599
  }
4348
- deepMerge2(pkg.devDependencies, additionalDependencies);
4349
- deepMerge2(eslintConfig, additionalConfig);
4350
3600
  if (needsPrettier) {
4351
- addDependency("prettier");
4352
- addDependency("@vue/eslint-config-prettier");
4353
- eslintConfig.extends.push("@vue/eslint-config-prettier/skip-formatting");
3601
+ additionalConfigs.push({
3602
+ devDependencies: pickDependencies([
3603
+ "prettier",
3604
+ "@vue/eslint-config-prettier"
3605
+ ]),
3606
+ afterVuePlugin: [
3607
+ {
3608
+ importer: "import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'",
3609
+ content: "skipFormatting,"
3610
+ }
3611
+ ]
3612
+ });
3613
+ }
3614
+ const configsBeforeVuePlugin = [], configsAfterVuePlugin = [];
3615
+ for (const config of additionalConfigs) {
3616
+ deepMerge2(pkg.devDependencies, config.devDependencies ?? {});
3617
+ configsBeforeVuePlugin.push(...config.beforeVuePlugin ?? []);
3618
+ configsAfterVuePlugin.push(...config.afterVuePlugin ?? []);
4354
3619
  }
3620
+ const templateData = {
3621
+ styleGuide,
3622
+ fileExtensions,
3623
+ configsBeforeVuePlugin,
3624
+ configsAfterVuePlugin
3625
+ };
4355
3626
  const files = {
4356
- ".eslintrc.cjs": ""
3627
+ "eslint.config.js": renderEjsFile(
3628
+ "./templates/eslint.config.js.ejs",
3629
+ templateData
3630
+ ),
3631
+ ".editorconfig": renderEjsFile(
3632
+ "./templates/_editorconfig.ejs",
3633
+ templateData
3634
+ )
4357
3635
  };
4358
- if (styleGuide === "default") {
4359
- files[".eslintrc.cjs"] += "/* eslint-env node */\n";
4360
- eslintConfig.parserOptions = {
4361
- ecmaVersion: "latest"
4362
- };
4363
- }
4364
- if (pkg.devDependencies["@rushstack/eslint-patch"]) {
4365
- files[".eslintrc.cjs"] += "require('@rushstack/eslint-patch/modern-module-resolution')\n\n";
4366
- }
4367
- files[".eslintrc.cjs"] += `module.exports = ${stringifyJS(eslintConfig, styleGuide)}
4368
- `;
4369
- if (editorconfigs_exports[styleGuide]) {
4370
- files[".editorconfig"] = editorconfigs_exports[styleGuide];
4371
- }
4372
3636
  if (needsPrettier) {
4373
- files[".prettierrc.json"] = JSON.stringify(prettierrcs_exports[styleGuide], void 0, 2);
3637
+ files[".prettierrc.json"] = renderEjsFile(
3638
+ "./templates/_prettierrc.json.ejs",
3639
+ templateData
3640
+ );
4374
3641
  }
4375
3642
  return {
4376
3643
  pkg,
4377
3644
  files
4378
3645
  };
4379
3646
  }
3647
+ function pickKeysFromObject(obj, keys) {
3648
+ return keys.reduce((acc, key) => {
3649
+ if (key in obj) {
3650
+ acc[key] = obj[key];
3651
+ }
3652
+ return acc;
3653
+ }, {});
3654
+ }
3655
+ var isObject2 = (val) => val && typeof val === "object";
3656
+ var mergeArrayWithDedupe2 = (a, b) => Array.from(/* @__PURE__ */ new Set([...a, ...b]));
3657
+ function deepMerge2(target, obj) {
3658
+ for (const key of Object.keys(obj)) {
3659
+ const oldVal = target[key];
3660
+ const newVal = obj[key];
3661
+ if (Array.isArray(oldVal) && Array.isArray(newVal)) {
3662
+ target[key] = mergeArrayWithDedupe2(oldVal, newVal);
3663
+ } else if (isObject2(oldVal) && isObject2(newVal)) {
3664
+ target[key] = deepMerge2(oldVal, newVal);
3665
+ } else {
3666
+ target[key] = newVal;
3667
+ }
3668
+ }
3669
+ return target;
3670
+ }
4380
3671
 
4381
3672
  // template/eslint/package.json
4382
- var package_default = {
3673
+ var package_default2 = {
4383
3674
  devDependencies: {
4384
- "eslint-plugin-cypress": "^3.3.0",
4385
- "eslint-plugin-playwright": "^1.6.2"
3675
+ "@vitest/eslint-plugin": "1.1.7",
3676
+ "eslint-plugin-cypress": "^4.0.0",
3677
+ "eslint-plugin-playwright": "^1.7.0"
4386
3678
  }
4387
3679
  };
4388
3680
 
4389
3681
  // utils/renderEslint.ts
4390
- var eslintDeps = package_default.devDependencies;
4391
- function renderEslint(rootDir, { needsTypeScript, needsCypress, needsCypressCT, needsPrettier, needsPlaywright }) {
4392
- const additionalConfig = {};
4393
- const additionalDependencies = {};
4394
- if (needsCypress) {
4395
- additionalConfig.overrides = [
4396
- {
4397
- files: needsCypressCT ? [
4398
- "**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}",
4399
- "cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}",
4400
- "cypress/support/**/*.{js,ts,jsx,tsx}"
4401
- ] : ["cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}", "cypress/support/**/*.{js,ts,jsx,tsx}"],
4402
- extends: ["plugin:cypress/recommended"]
4403
- }
4404
- ];
4405
- additionalDependencies["eslint-plugin-cypress"] = eslintDeps["eslint-plugin-cypress"];
4406
- }
4407
- if (needsPlaywright) {
4408
- additionalConfig.overrides = [
4409
- {
4410
- files: ["e2e/**/*.{test,spec}.{js,ts,jsx,tsx}"],
4411
- extends: ["plugin:playwright/recommended"]
4412
- }
4413
- ];
4414
- additionalDependencies["eslint-plugin-playwright"] = eslintDeps["eslint-plugin-playwright"];
4415
- }
3682
+ var eslintDeps = package_default2.devDependencies;
3683
+ function renderEslint(rootDir, { needsTypeScript, needsVitest, needsCypress, needsCypressCT, needsPrettier, needsPlaywright }) {
3684
+ const additionalConfigs = getAdditionalConfigs({
3685
+ needsVitest,
3686
+ needsCypress,
3687
+ needsCypressCT,
3688
+ needsPlaywright
3689
+ });
4416
3690
  const { pkg, files } = createConfig({
4417
- vueVersion: "3.x",
4418
- // we currently don't support other style guides
4419
3691
  styleGuide: "default",
4420
3692
  hasTypeScript: needsTypeScript,
4421
3693
  needsPrettier,
4422
- additionalConfig,
4423
- additionalDependencies
3694
+ additionalConfigs
4424
3695
  });
4425
3696
  const scripts = {
4426
- // Note that we reuse .gitignore here to avoid duplicating the configuration
4427
- lint: needsTypeScript ? "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore" : "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
3697
+ lint: "eslint . --fix"
4428
3698
  };
4429
3699
  if (needsPrettier) {
4430
3700
  scripts.format = "prettier --write src/";
@@ -4432,12 +3702,76 @@ function renderEslint(rootDir, { needsTypeScript, needsCypress, needsCypressCT,
4432
3702
  const packageJsonPath = path4.resolve(rootDir, "package.json");
4433
3703
  const existingPkg = JSON.parse(fs4.readFileSync(packageJsonPath, "utf8"));
4434
3704
  const updatedPkg = sortDependencies(deepMerge_default(deepMerge_default(existingPkg, pkg), { scripts }));
4435
- fs4.writeFileSync(packageJsonPath, JSON.stringify(updatedPkg, null, 2) + "\n", "utf-8");
3705
+ fs4.writeFileSync(packageJsonPath, JSON.stringify(updatedPkg, null, 2) + "\n", "utf8");
4436
3706
  for (const [fileName, content] of Object.entries(files)) {
4437
3707
  const fullPath = path4.resolve(rootDir, fileName);
4438
- fs4.writeFileSync(fullPath, content, "utf-8");
3708
+ fs4.writeFileSync(fullPath, content, "utf8");
4439
3709
  }
4440
3710
  }
3711
+ function getAdditionalConfigs({
3712
+ needsVitest,
3713
+ needsCypress,
3714
+ needsCypressCT,
3715
+ needsPlaywright
3716
+ }) {
3717
+ const additionalConfigs = [];
3718
+ if (needsVitest) {
3719
+ additionalConfigs.push({
3720
+ devDependencies: { "@vitest/eslint-plugin": eslintDeps["@vitest/eslint-plugin"] },
3721
+ afterVuePlugin: [
3722
+ {
3723
+ importer: `import pluginVitest from '@vitest/eslint-plugin'`,
3724
+ content: `
3725
+ {
3726
+ ...pluginVitest.configs.recommended,
3727
+ files: ['src/**/__tests__/*'],
3728
+ },`
3729
+ }
3730
+ ]
3731
+ });
3732
+ }
3733
+ if (needsCypress) {
3734
+ additionalConfigs.push({
3735
+ devDependencies: { "eslint-plugin-cypress": eslintDeps["eslint-plugin-cypress"] },
3736
+ afterVuePlugin: [
3737
+ {
3738
+ importer: "import pluginCypress from 'eslint-plugin-cypress/flat'",
3739
+ content: `
3740
+ {
3741
+ ...pluginCypress.configs.recommended,
3742
+ files: [
3743
+ ${[
3744
+ ...needsCypressCT ? ["'**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}',"] : [],
3745
+ "cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}",
3746
+ "cypress/support/**/*.{js,ts,jsx,tsx}"
3747
+ ].map(JSON.stringify.bind(JSON)).join(",\n ").replace(
3748
+ /"/g,
3749
+ "'"
3750
+ /* use single quotes as in the other configs */
3751
+ )}
3752
+ ],
3753
+ },`
3754
+ }
3755
+ ]
3756
+ });
3757
+ }
3758
+ if (needsPlaywright) {
3759
+ additionalConfigs.push({
3760
+ devDependencies: { "eslint-plugin-playwright": eslintDeps["eslint-plugin-playwright"] },
3761
+ afterVuePlugin: [
3762
+ {
3763
+ importer: "import pluginPlaywright from 'eslint-plugin-playwright'",
3764
+ content: `
3765
+ {
3766
+ ...pluginPlaywright.configs['flat/recommended'],
3767
+ files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'],
3768
+ },`
3769
+ }
3770
+ ]
3771
+ });
3772
+ }
3773
+ return additionalConfigs;
3774
+ }
4441
3775
 
4442
3776
  // index.ts
4443
3777
  function isValidPackageName(projectName) {
@@ -4469,7 +3803,7 @@ function emptyDir(dir) {
4469
3803
  (file) => fs5.unlinkSync(file)
4470
3804
  );
4471
3805
  }
4472
- async function init() {
3806
+ async function init2() {
4473
3807
  console.log();
4474
3808
  console.log(
4475
3809
  process.stdout.isTTY && process.stdout.getColorDepth() > 8 ? gradientBanner : defaultBanner
@@ -4477,7 +3811,7 @@ async function init() {
4477
3811
  console.log();
4478
3812
  const cwd = process.cwd();
4479
3813
  const args = process.argv.slice(2);
4480
- const options2 = {
3814
+ const options = {
4481
3815
  typescript: { type: "boolean" },
4482
3816
  ts: { type: "boolean" },
4483
3817
  "with-tests": { type: "boolean" },
@@ -4489,7 +3823,7 @@ async function init() {
4489
3823
  };
4490
3824
  const { values: argv, positionals } = (0, import_node_util.parseArgs)({
4491
3825
  args,
4492
- options: options2,
3826
+ options,
4493
3827
  strict: false
4494
3828
  });
4495
3829
  const isFeatureFlagsUsed = typeof (argv.default ?? (argv.ts || argv.typescript) ?? argv.jsx ?? (argv.router || argv["vue-router"]) ?? argv.pinia ?? (argv.tests || argv["with-tests"]) ?? argv.vitest ?? argv.cypress ?? argv.nightwatch ?? argv.playwright ?? argv.eslint ?? argv["eslint-with-prettier"] ?? (argv.devtools || argv["vue-devtools"])) === "boolean";
@@ -4760,6 +4094,7 @@ ${language.infos.scaffolding} ${root}...`);
4760
4094
  if (needsEslint) {
4761
4095
  renderEslint(root, {
4762
4096
  needsTypeScript,
4097
+ needsVitest,
4763
4098
  needsCypress,
4764
4099
  needsCypressCT,
4765
4100
  needsPrettier,
@@ -4796,7 +4131,7 @@ ${language.infos.scaffolding} ${root}...`);
4796
4131
  if (filepath.endsWith(".ejs")) {
4797
4132
  const template = fs5.readFileSync(filepath, "utf-8");
4798
4133
  const dest = filepath.replace(/\.ejs$/, "");
4799
- const content = import_ejs.default.render(template, dataStore[dest]);
4134
+ const content = import_ejs2.default.render(template, dataStore[dest]);
4800
4135
  fs5.writeFileSync(dest, content);
4801
4136
  fs5.unlinkSync(filepath);
4802
4137
  }
@@ -4808,7 +4143,7 @@ ${language.infos.scaffolding} ${root}...`);
4808
4143
  () => {
4809
4144
  },
4810
4145
  (filepath) => {
4811
- if (filepath.endsWith(".js")) {
4146
+ if (filepath.endsWith(".js") && !filepath.endsWith("eslint.config.js")) {
4812
4147
  const tsFilePath = filepath.replace(/\.js$/, ".ts");
4813
4148
  if (fs5.existsSync(tsFilePath)) {
4814
4149
  fs5.unlinkSync(filepath);
@@ -4868,7 +4203,7 @@ ${language.infos.done}
4868
4203
  console.log(` ${bold(green(getCommand(packageManager, "dev")))}`);
4869
4204
  console.log();
4870
4205
  }
4871
- init().catch((e) => {
4206
+ init2().catch((e) => {
4872
4207
  console.error(e);
4873
4208
  });
4874
4209
  /*! Bundled license information: