@skirtle/create-vue-lib 0.0.0 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +2 -0
  2. package/dist/index.cjs +337 -162
  3. package/dist/template/base/config/{.editorconfig → .editorconfig.ejs} +6 -0
  4. package/dist/template/base/config/.gitignore.ejs +33 -0
  5. package/dist/template/base/config/.vscode/extensions.json.ejs +10 -0
  6. package/dist/template/base/config/.vscode/settings.json.ejs +13 -0
  7. package/dist/template/base/config/LICENSE +0 -0
  8. package/dist/template/base/config/package.json.ejs +37 -5
  9. package/dist/template/base/config/packages/@projectName@/package.json +13 -16
  10. package/dist/template/base/config/packages/@projectName@/src/global.d.ts.ejs +4 -0
  11. package/dist/template/base/config/packages/@projectName@/{tsconfig.app.json → tsconfig.app.json.ejs} +3 -1
  12. package/dist/template/base/config/packages/@projectName@/tsconfig.node.json +1 -1
  13. package/dist/template/base/config/packages/@projectName@/tsconfig.vitest.json +1 -1
  14. package/dist/template/base/config/packages/@projectName@/{vite.config.mts → vite.config.mts.ejs} +26 -11
  15. package/dist/template/base/examples/packages/@projectName@/src/components/{Example.vue → ExampleComponent.vue.ejs} +4 -1
  16. package/dist/template/base/examples/packages/@projectName@/src/index.ts +1 -1
  17. package/dist/template/eslint/config/eslint.config.mts.ejs +33 -0
  18. package/dist/template/eslint/config/tsconfig.json +10 -0
  19. package/dist/template/gh-pages/config/.github/workflows/pages.yml +0 -2
  20. package/dist/template/playground/config/packages/playground/env.d.ts +2 -1
  21. package/dist/template/playground/config/packages/playground/package.json +6 -4
  22. package/dist/template/playground/config/packages/playground/tsconfig.app.json.ejs +13 -0
  23. package/dist/template/playground/config/packages/playground/tsconfig.node.json +1 -1
  24. package/dist/template/playground/config/packages/playground/vite.config.mts.ejs +45 -0
  25. package/dist/template/playground/examples/packages/playground/src/App.vue +1 -1
  26. package/dist/template/vitepress/config/packages/docs/.vitepress/config.mts.ejs +28 -3
  27. package/dist/template/vitepress/config/packages/docs/env.d.ts +2 -1
  28. package/dist/template/vitepress/config/packages/docs/package.json +7 -4
  29. package/dist/template/vitepress/config/packages/docs/tsconfig.app.json.ejs +22 -0
  30. package/dist/template/vitepress/config/packages/docs/tsconfig.node.json +1 -9
  31. package/dist/template/vitepress/examples/packages/docs/src/index.md +1 -1
  32. package/dist/template/vitepress/examples/packages/docs/src/introduction.md +1 -1
  33. package/package.json +8 -8
  34. package/dist/template/base/config/packages/@projectName@/README.md.ejs +0 -5
  35. package/dist/template/base/config/packages/@projectName@/src/global.d.ts +0 -1
  36. package/dist/template/base/config/tsconfig.json +0 -4
  37. package/dist/template/playground/config/packages/playground/tsconfig.app.json +0 -11
  38. package/dist/template/playground/config/packages/playground/vite.config.mts +0 -22
  39. package/dist/template/vitepress/config/packages/docs/tsconfig.app.json +0 -13
package/dist/index.cjs CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ "use strict";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -25,9 +26,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
26
  mod
26
27
  ));
27
28
 
28
- // node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/index.js
29
+ // ../../node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/index.js
29
30
  var require_kleur = __commonJS({
30
- "node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/index.js"(exports2, module2) {
31
+ "../../node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/index.js"(exports2, module2) {
31
32
  "use strict";
32
33
  var { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env;
33
34
  var $ = {
@@ -122,9 +123,9 @@ var require_kleur = __commonJS({
122
123
  }
123
124
  });
124
125
 
125
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/action.js
126
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/action.js
126
127
  var require_action = __commonJS({
127
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/action.js"(exports2, module2) {
128
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/action.js"(exports2, module2) {
128
129
  "use strict";
129
130
  module2.exports = (key, isSelect) => {
130
131
  if (key.meta && key.name !== "escape") return;
@@ -159,9 +160,9 @@ var require_action = __commonJS({
159
160
  }
160
161
  });
161
162
 
162
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/strip.js
163
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/strip.js
163
164
  var require_strip = __commonJS({
164
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/strip.js"(exports2, module2) {
165
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/strip.js"(exports2, module2) {
165
166
  "use strict";
166
167
  module2.exports = (str) => {
167
168
  const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");
@@ -171,9 +172,9 @@ var require_strip = __commonJS({
171
172
  }
172
173
  });
173
174
 
174
- // node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
175
+ // ../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
175
176
  var require_src = __commonJS({
176
- "node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports2, module2) {
177
+ "../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports2, module2) {
177
178
  "use strict";
178
179
  var ESC = "\x1B";
179
180
  var CSI = `${ESC}[`;
@@ -227,9 +228,9 @@ var require_src = __commonJS({
227
228
  }
228
229
  });
229
230
 
230
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.js
231
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.js
231
232
  var require_clear = __commonJS({
232
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.js"(exports2, module2) {
233
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.js"(exports2, module2) {
233
234
  "use strict";
234
235
  function _createForOfIteratorHelper(o, allowArrayLike) {
235
236
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
@@ -304,9 +305,9 @@ var require_clear = __commonJS({
304
305
  }
305
306
  });
306
307
 
307
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/figures.js
308
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/figures.js
308
309
  var require_figures = __commonJS({
309
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/figures.js"(exports2, module2) {
310
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/figures.js"(exports2, module2) {
310
311
  "use strict";
311
312
  var main = {
312
313
  arrowUp: "\u2191",
@@ -341,9 +342,9 @@ var require_figures = __commonJS({
341
342
  }
342
343
  });
343
344
 
344
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.js
345
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.js
345
346
  var require_style = __commonJS({
346
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.js"(exports2, module2) {
347
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.js"(exports2, module2) {
347
348
  "use strict";
348
349
  var c = require_kleur();
349
350
  var figures = require_figures();
@@ -386,9 +387,9 @@ var require_style = __commonJS({
386
387
  }
387
388
  });
388
389
 
389
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/lines.js
390
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/lines.js
390
391
  var require_lines = __commonJS({
391
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/lines.js"(exports2, module2) {
392
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/lines.js"(exports2, module2) {
392
393
  "use strict";
393
394
  var strip = require_strip();
394
395
  module2.exports = function(msg, perLine) {
@@ -399,9 +400,9 @@ var require_lines = __commonJS({
399
400
  }
400
401
  });
401
402
 
402
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/wrap.js
403
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/wrap.js
403
404
  var require_wrap = __commonJS({
404
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/wrap.js"(exports2, module2) {
405
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/wrap.js"(exports2, module2) {
405
406
  "use strict";
406
407
  module2.exports = (msg, opts = {}) => {
407
408
  const tab = Number.isSafeInteger(parseInt(opts.margin)) ? new Array(parseInt(opts.margin)).fill(" ").join("") : opts.margin || "";
@@ -415,9 +416,9 @@ var require_wrap = __commonJS({
415
416
  }
416
417
  });
417
418
 
418
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/entriesToDisplay.js
419
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/entriesToDisplay.js
419
420
  var require_entriesToDisplay = __commonJS({
420
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/entriesToDisplay.js"(exports2, module2) {
421
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/entriesToDisplay.js"(exports2, module2) {
421
422
  "use strict";
422
423
  module2.exports = (cursor, total, maxVisible) => {
423
424
  maxVisible = maxVisible || total;
@@ -432,9 +433,9 @@ var require_entriesToDisplay = __commonJS({
432
433
  }
433
434
  });
434
435
 
435
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/index.js
436
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/index.js
436
437
  var require_util = __commonJS({
437
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/index.js"(exports2, module2) {
438
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/index.js"(exports2, module2) {
438
439
  "use strict";
439
440
  module2.exports = {
440
441
  action: require_action(),
@@ -449,9 +450,9 @@ var require_util = __commonJS({
449
450
  }
450
451
  });
451
452
 
452
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/prompt.js
453
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/prompt.js
453
454
  var require_prompt = __commonJS({
454
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/prompt.js"(exports2, module2) {
455
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/prompt.js"(exports2, module2) {
455
456
  "use strict";
456
457
  var readline = require("readline");
457
458
  var _require = require_util();
@@ -514,9 +515,9 @@ var require_prompt = __commonJS({
514
515
  }
515
516
  });
516
517
 
517
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/text.js
518
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/text.js
518
519
  var require_text = __commonJS({
519
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/text.js"(exports2, module2) {
520
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/text.js"(exports2, module2) {
520
521
  "use strict";
521
522
  function asyncGeneratorStep(gen, resolve2, reject, _next, _throw, key, arg) {
522
523
  try {
@@ -730,9 +731,9 @@ ${i ? " " : figures.pointerSmall} ${color.red().italic(l)}`, ``);
730
731
  }
731
732
  });
732
733
 
733
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/select.js
734
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/select.js
734
735
  var require_select = __commonJS({
735
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/select.js"(exports2, module2) {
736
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/select.js"(exports2, module2) {
736
737
  "use strict";
737
738
  var color = require_kleur();
738
739
  var Prompt = require_prompt();
@@ -878,9 +879,9 @@ var require_select = __commonJS({
878
879
  }
879
880
  });
880
881
 
881
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/toggle.js
882
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/toggle.js
882
883
  var require_toggle = __commonJS({
883
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/toggle.js"(exports2, module2) {
884
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/toggle.js"(exports2, module2) {
884
885
  "use strict";
885
886
  var color = require_kleur();
886
887
  var Prompt = require_prompt();
@@ -976,9 +977,9 @@ var require_toggle = __commonJS({
976
977
  }
977
978
  });
978
979
 
979
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/datepart.js
980
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/datepart.js
980
981
  var require_datepart = __commonJS({
981
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/datepart.js"(exports2, module2) {
982
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/datepart.js"(exports2, module2) {
982
983
  "use strict";
983
984
  var DatePart = class _DatePart {
984
985
  constructor({
@@ -1015,9 +1016,9 @@ var require_datepart = __commonJS({
1015
1016
  }
1016
1017
  });
1017
1018
 
1018
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/meridiem.js
1019
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/meridiem.js
1019
1020
  var require_meridiem = __commonJS({
1020
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/meridiem.js"(exports2, module2) {
1021
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/meridiem.js"(exports2, module2) {
1021
1022
  "use strict";
1022
1023
  var DatePart = require_datepart();
1023
1024
  var Meridiem = class extends DatePart {
@@ -1039,9 +1040,9 @@ var require_meridiem = __commonJS({
1039
1040
  }
1040
1041
  });
1041
1042
 
1042
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/day.js
1043
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/day.js
1043
1044
  var require_day = __commonJS({
1044
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/day.js"(exports2, module2) {
1045
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/day.js"(exports2, module2) {
1045
1046
  "use strict";
1046
1047
  var DatePart = require_datepart();
1047
1048
  var pos = (n) => {
@@ -1071,9 +1072,9 @@ var require_day = __commonJS({
1071
1072
  }
1072
1073
  });
1073
1074
 
1074
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/hours.js
1075
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/hours.js
1075
1076
  var require_hours = __commonJS({
1076
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/hours.js"(exports2, module2) {
1077
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/hours.js"(exports2, module2) {
1077
1078
  "use strict";
1078
1079
  var DatePart = require_datepart();
1079
1080
  var Hours = class extends DatePart {
@@ -1099,9 +1100,9 @@ var require_hours = __commonJS({
1099
1100
  }
1100
1101
  });
1101
1102
 
1102
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/milliseconds.js
1103
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/milliseconds.js
1103
1104
  var require_milliseconds = __commonJS({
1104
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/milliseconds.js"(exports2, module2) {
1105
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/milliseconds.js"(exports2, module2) {
1105
1106
  "use strict";
1106
1107
  var DatePart = require_datepart();
1107
1108
  var Milliseconds = class extends DatePart {
@@ -1125,9 +1126,9 @@ var require_milliseconds = __commonJS({
1125
1126
  }
1126
1127
  });
1127
1128
 
1128
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/minutes.js
1129
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/minutes.js
1129
1130
  var require_minutes = __commonJS({
1130
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/minutes.js"(exports2, module2) {
1131
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/minutes.js"(exports2, module2) {
1131
1132
  "use strict";
1132
1133
  var DatePart = require_datepart();
1133
1134
  var Minutes = class extends DatePart {
@@ -1152,9 +1153,9 @@ var require_minutes = __commonJS({
1152
1153
  }
1153
1154
  });
1154
1155
 
1155
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/month.js
1156
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/month.js
1156
1157
  var require_month = __commonJS({
1157
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/month.js"(exports2, module2) {
1158
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/month.js"(exports2, module2) {
1158
1159
  "use strict";
1159
1160
  var DatePart = require_datepart();
1160
1161
  var Month = class extends DatePart {
@@ -1181,9 +1182,9 @@ var require_month = __commonJS({
1181
1182
  }
1182
1183
  });
1183
1184
 
1184
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/seconds.js
1185
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/seconds.js
1185
1186
  var require_seconds = __commonJS({
1186
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/seconds.js"(exports2, module2) {
1187
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/seconds.js"(exports2, module2) {
1187
1188
  "use strict";
1188
1189
  var DatePart = require_datepart();
1189
1190
  var Seconds = class extends DatePart {
@@ -1208,9 +1209,9 @@ var require_seconds = __commonJS({
1208
1209
  }
1209
1210
  });
1210
1211
 
1211
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/year.js
1212
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/year.js
1212
1213
  var require_year = __commonJS({
1213
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/year.js"(exports2, module2) {
1214
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/year.js"(exports2, module2) {
1214
1215
  "use strict";
1215
1216
  var DatePart = require_datepart();
1216
1217
  var Year = class extends DatePart {
@@ -1235,9 +1236,9 @@ var require_year = __commonJS({
1235
1236
  }
1236
1237
  });
1237
1238
 
1238
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/index.js
1239
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/index.js
1239
1240
  var require_dateparts = __commonJS({
1240
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/index.js"(exports2, module2) {
1241
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/index.js"(exports2, module2) {
1241
1242
  "use strict";
1242
1243
  module2.exports = {
1243
1244
  DatePart: require_datepart(),
@@ -1253,9 +1254,9 @@ var require_dateparts = __commonJS({
1253
1254
  }
1254
1255
  });
1255
1256
 
1256
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/date.js
1257
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/date.js
1257
1258
  var require_date = __commonJS({
1258
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/date.js"(exports2, module2) {
1259
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/date.js"(exports2, module2) {
1259
1260
  "use strict";
1260
1261
  function asyncGeneratorStep(gen, resolve2, reject, _next, _throw, key, arg) {
1261
1262
  try {
@@ -1479,9 +1480,9 @@ ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);
1479
1480
  }
1480
1481
  });
1481
1482
 
1482
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/number.js
1483
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/number.js
1483
1484
  var require_number = __commonJS({
1484
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/number.js"(exports2, module2) {
1485
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/number.js"(exports2, module2) {
1485
1486
  "use strict";
1486
1487
  function asyncGeneratorStep(gen, resolve2, reject, _next, _throw, key, arg) {
1487
1488
  try {
@@ -1694,9 +1695,9 @@ ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);
1694
1695
  }
1695
1696
  });
1696
1697
 
1697
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/multiselect.js
1698
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/multiselect.js
1698
1699
  var require_multiselect = __commonJS({
1699
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/multiselect.js"(exports2, module2) {
1700
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/multiselect.js"(exports2, module2) {
1700
1701
  "use strict";
1701
1702
  var color = require_kleur();
1702
1703
  var _require = require_src();
@@ -1925,9 +1926,9 @@ Instructions:
1925
1926
  }
1926
1927
  });
1927
1928
 
1928
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/autocomplete.js
1929
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/autocomplete.js
1929
1930
  var require_autocomplete = __commonJS({
1930
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/autocomplete.js"(exports2, module2) {
1931
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/autocomplete.js"(exports2, module2) {
1931
1932
  "use strict";
1932
1933
  function asyncGeneratorStep(gen, resolve2, reject, _next, _throw, key, arg) {
1933
1934
  try {
@@ -2180,9 +2181,9 @@ var require_autocomplete = __commonJS({
2180
2181
  }
2181
2182
  });
2182
2183
 
2183
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/autocompleteMultiselect.js
2184
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/autocompleteMultiselect.js
2184
2185
  var require_autocompleteMultiselect = __commonJS({
2185
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/autocompleteMultiselect.js"(exports2, module2) {
2186
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/autocompleteMultiselect.js"(exports2, module2) {
2186
2187
  "use strict";
2187
2188
  var color = require_kleur();
2188
2189
  var _require = require_src();
@@ -2339,9 +2340,9 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter so
2339
2340
  }
2340
2341
  });
2341
2342
 
2342
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/confirm.js
2343
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/confirm.js
2343
2344
  var require_confirm = __commonJS({
2344
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/confirm.js"(exports2, module2) {
2345
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/confirm.js"(exports2, module2) {
2345
2346
  "use strict";
2346
2347
  var color = require_kleur();
2347
2348
  var Prompt = require_prompt();
@@ -2411,9 +2412,9 @@ var require_confirm = __commonJS({
2411
2412
  }
2412
2413
  });
2413
2414
 
2414
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/index.js
2415
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/index.js
2415
2416
  var require_elements = __commonJS({
2416
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/index.js"(exports2, module2) {
2417
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/index.js"(exports2, module2) {
2417
2418
  "use strict";
2418
2419
  module2.exports = {
2419
2420
  TextPrompt: require_text(),
@@ -2429,9 +2430,9 @@ var require_elements = __commonJS({
2429
2430
  }
2430
2431
  });
2431
2432
 
2432
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.js
2433
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.js
2433
2434
  var require_prompts = __commonJS({
2434
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.js"(exports2) {
2435
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.js"(exports2) {
2435
2436
  "use strict";
2436
2437
  var $ = exports2;
2437
2438
  var el = require_elements();
@@ -2493,9 +2494,9 @@ var require_prompts = __commonJS({
2493
2494
  }
2494
2495
  });
2495
2496
 
2496
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.js
2497
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.js
2497
2498
  var require_dist = __commonJS({
2498
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.js"(exports2, module2) {
2499
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.js"(exports2, module2) {
2499
2500
  "use strict";
2500
2501
  function ownKeys(object, enumerableOnly) {
2501
2502
  var keys = Object.keys(object);
@@ -2713,9 +2714,9 @@ var require_dist = __commonJS({
2713
2714
  }
2714
2715
  });
2715
2716
 
2716
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/action.js
2717
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/action.js
2717
2718
  var require_action2 = __commonJS({
2718
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/action.js"(exports2, module2) {
2719
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/action.js"(exports2, module2) {
2719
2720
  "use strict";
2720
2721
  module2.exports = (key, isSelect) => {
2721
2722
  if (key.meta && key.name !== "escape") return;
@@ -2750,9 +2751,9 @@ var require_action2 = __commonJS({
2750
2751
  }
2751
2752
  });
2752
2753
 
2753
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/strip.js
2754
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/strip.js
2754
2755
  var require_strip2 = __commonJS({
2755
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/strip.js"(exports2, module2) {
2756
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/strip.js"(exports2, module2) {
2756
2757
  "use strict";
2757
2758
  module2.exports = (str) => {
2758
2759
  const pattern = [
@@ -2765,9 +2766,9 @@ var require_strip2 = __commonJS({
2765
2766
  }
2766
2767
  });
2767
2768
 
2768
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/clear.js
2769
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/clear.js
2769
2770
  var require_clear2 = __commonJS({
2770
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/clear.js"(exports2, module2) {
2771
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/clear.js"(exports2, module2) {
2771
2772
  "use strict";
2772
2773
  var strip = require_strip2();
2773
2774
  var { erase, cursor } = require_src();
@@ -2784,9 +2785,9 @@ var require_clear2 = __commonJS({
2784
2785
  }
2785
2786
  });
2786
2787
 
2787
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/figures.js
2788
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/figures.js
2788
2789
  var require_figures2 = __commonJS({
2789
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/figures.js"(exports2, module2) {
2790
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/figures.js"(exports2, module2) {
2790
2791
  "use strict";
2791
2792
  var main = {
2792
2793
  arrowUp: "\u2191",
@@ -2821,9 +2822,9 @@ var require_figures2 = __commonJS({
2821
2822
  }
2822
2823
  });
2823
2824
 
2824
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js
2825
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js
2825
2826
  var require_style2 = __commonJS({
2826
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js"(exports2, module2) {
2827
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js"(exports2, module2) {
2827
2828
  "use strict";
2828
2829
  var c = require_kleur();
2829
2830
  var figures = require_figures2();
@@ -2854,9 +2855,9 @@ var require_style2 = __commonJS({
2854
2855
  }
2855
2856
  });
2856
2857
 
2857
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/lines.js
2858
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/lines.js
2858
2859
  var require_lines2 = __commonJS({
2859
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/lines.js"(exports2, module2) {
2860
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/lines.js"(exports2, module2) {
2860
2861
  "use strict";
2861
2862
  var strip = require_strip2();
2862
2863
  module2.exports = function(msg, perLine) {
@@ -2867,9 +2868,9 @@ var require_lines2 = __commonJS({
2867
2868
  }
2868
2869
  });
2869
2870
 
2870
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/wrap.js
2871
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/wrap.js
2871
2872
  var require_wrap2 = __commonJS({
2872
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/wrap.js"(exports2, module2) {
2873
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/wrap.js"(exports2, module2) {
2873
2874
  "use strict";
2874
2875
  module2.exports = (msg, opts = {}) => {
2875
2876
  const tab = Number.isSafeInteger(parseInt(opts.margin)) ? new Array(parseInt(opts.margin)).fill(" ").join("") : opts.margin || "";
@@ -2884,9 +2885,9 @@ var require_wrap2 = __commonJS({
2884
2885
  }
2885
2886
  });
2886
2887
 
2887
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/entriesToDisplay.js
2888
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/entriesToDisplay.js
2888
2889
  var require_entriesToDisplay2 = __commonJS({
2889
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/entriesToDisplay.js"(exports2, module2) {
2890
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/entriesToDisplay.js"(exports2, module2) {
2890
2891
  "use strict";
2891
2892
  module2.exports = (cursor, total, maxVisible) => {
2892
2893
  maxVisible = maxVisible || total;
@@ -2898,9 +2899,9 @@ var require_entriesToDisplay2 = __commonJS({
2898
2899
  }
2899
2900
  });
2900
2901
 
2901
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/index.js
2902
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/index.js
2902
2903
  var require_util2 = __commonJS({
2903
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/index.js"(exports2, module2) {
2904
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/index.js"(exports2, module2) {
2904
2905
  "use strict";
2905
2906
  module2.exports = {
2906
2907
  action: require_action2(),
@@ -2915,9 +2916,9 @@ var require_util2 = __commonJS({
2915
2916
  }
2916
2917
  });
2917
2918
 
2918
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/prompt.js
2919
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/prompt.js
2919
2920
  var require_prompt2 = __commonJS({
2920
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/prompt.js"(exports2, module2) {
2921
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/prompt.js"(exports2, module2) {
2921
2922
  "use strict";
2922
2923
  var readline = require("readline");
2923
2924
  var { action } = require_util2();
@@ -2974,9 +2975,10 @@ var require_prompt2 = __commonJS({
2974
2975
  }
2975
2976
  });
2976
2977
 
2977
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/text.js
2978
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/text.js
2978
2979
  var require_text2 = __commonJS({
2979
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/text.js"(exports2, module2) {
2980
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/text.js"(exports2, module2) {
2981
+ "use strict";
2980
2982
  var color = require_kleur();
2981
2983
  var Prompt = require_prompt2();
2982
2984
  var { erase, cursor } = require_src();
@@ -3154,9 +3156,9 @@ ${i ? " " : figures.pointerSmall} ${color.red().italic(l)}`, ``);
3154
3156
  }
3155
3157
  });
3156
3158
 
3157
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/select.js
3159
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/select.js
3158
3160
  var require_select2 = __commonJS({
3159
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/select.js"(exports2, module2) {
3161
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/select.js"(exports2, module2) {
3160
3162
  "use strict";
3161
3163
  var color = require_kleur();
3162
3164
  var Prompt = require_prompt2();
@@ -3297,9 +3299,10 @@ var require_select2 = __commonJS({
3297
3299
  }
3298
3300
  });
3299
3301
 
3300
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/toggle.js
3302
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/toggle.js
3301
3303
  var require_toggle2 = __commonJS({
3302
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/toggle.js"(exports2, module2) {
3304
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/toggle.js"(exports2, module2) {
3305
+ "use strict";
3303
3306
  var color = require_kleur();
3304
3307
  var Prompt = require_prompt2();
3305
3308
  var { style, clear } = require_util2();
@@ -3397,9 +3400,9 @@ var require_toggle2 = __commonJS({
3397
3400
  }
3398
3401
  });
3399
3402
 
3400
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/datepart.js
3403
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/datepart.js
3401
3404
  var require_datepart2 = __commonJS({
3402
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/datepart.js"(exports2, module2) {
3405
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/datepart.js"(exports2, module2) {
3403
3406
  "use strict";
3404
3407
  var DatePart = class _DatePart {
3405
3408
  constructor({ token, date, parts, locales }) {
@@ -3431,9 +3434,9 @@ var require_datepart2 = __commonJS({
3431
3434
  }
3432
3435
  });
3433
3436
 
3434
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/meridiem.js
3437
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/meridiem.js
3435
3438
  var require_meridiem2 = __commonJS({
3436
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/meridiem.js"(exports2, module2) {
3439
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/meridiem.js"(exports2, module2) {
3437
3440
  "use strict";
3438
3441
  var DatePart = require_datepart2();
3439
3442
  var Meridiem = class extends DatePart {
@@ -3455,9 +3458,9 @@ var require_meridiem2 = __commonJS({
3455
3458
  }
3456
3459
  });
3457
3460
 
3458
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/day.js
3461
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/day.js
3459
3462
  var require_day2 = __commonJS({
3460
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/day.js"(exports2, module2) {
3463
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/day.js"(exports2, module2) {
3461
3464
  "use strict";
3462
3465
  var DatePart = require_datepart2();
3463
3466
  var pos = (n) => {
@@ -3487,9 +3490,9 @@ var require_day2 = __commonJS({
3487
3490
  }
3488
3491
  });
3489
3492
 
3490
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/hours.js
3493
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/hours.js
3491
3494
  var require_hours2 = __commonJS({
3492
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/hours.js"(exports2, module2) {
3495
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/hours.js"(exports2, module2) {
3493
3496
  "use strict";
3494
3497
  var DatePart = require_datepart2();
3495
3498
  var Hours = class extends DatePart {
@@ -3516,9 +3519,9 @@ var require_hours2 = __commonJS({
3516
3519
  }
3517
3520
  });
3518
3521
 
3519
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/milliseconds.js
3522
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/milliseconds.js
3520
3523
  var require_milliseconds2 = __commonJS({
3521
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/milliseconds.js"(exports2, module2) {
3524
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/milliseconds.js"(exports2, module2) {
3522
3525
  "use strict";
3523
3526
  var DatePart = require_datepart2();
3524
3527
  var Milliseconds = class extends DatePart {
@@ -3542,9 +3545,9 @@ var require_milliseconds2 = __commonJS({
3542
3545
  }
3543
3546
  });
3544
3547
 
3545
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/minutes.js
3548
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/minutes.js
3546
3549
  var require_minutes2 = __commonJS({
3547
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/minutes.js"(exports2, module2) {
3550
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/minutes.js"(exports2, module2) {
3548
3551
  "use strict";
3549
3552
  var DatePart = require_datepart2();
3550
3553
  var Minutes = class extends DatePart {
@@ -3569,9 +3572,9 @@ var require_minutes2 = __commonJS({
3569
3572
  }
3570
3573
  });
3571
3574
 
3572
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/month.js
3575
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/month.js
3573
3576
  var require_month2 = __commonJS({
3574
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/month.js"(exports2, module2) {
3577
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/month.js"(exports2, module2) {
3575
3578
  "use strict";
3576
3579
  var DatePart = require_datepart2();
3577
3580
  var Month = class extends DatePart {
@@ -3598,9 +3601,9 @@ var require_month2 = __commonJS({
3598
3601
  }
3599
3602
  });
3600
3603
 
3601
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/seconds.js
3604
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/seconds.js
3602
3605
  var require_seconds2 = __commonJS({
3603
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/seconds.js"(exports2, module2) {
3606
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/seconds.js"(exports2, module2) {
3604
3607
  "use strict";
3605
3608
  var DatePart = require_datepart2();
3606
3609
  var Seconds = class extends DatePart {
@@ -3625,9 +3628,9 @@ var require_seconds2 = __commonJS({
3625
3628
  }
3626
3629
  });
3627
3630
 
3628
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/year.js
3631
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/year.js
3629
3632
  var require_year2 = __commonJS({
3630
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/year.js"(exports2, module2) {
3633
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/year.js"(exports2, module2) {
3631
3634
  "use strict";
3632
3635
  var DatePart = require_datepart2();
3633
3636
  var Year = class extends DatePart {
@@ -3652,9 +3655,9 @@ var require_year2 = __commonJS({
3652
3655
  }
3653
3656
  });
3654
3657
 
3655
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/index.js
3658
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/index.js
3656
3659
  var require_dateparts2 = __commonJS({
3657
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/index.js"(exports2, module2) {
3660
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/index.js"(exports2, module2) {
3658
3661
  "use strict";
3659
3662
  module2.exports = {
3660
3663
  DatePart: require_datepart2(),
@@ -3670,9 +3673,9 @@ var require_dateparts2 = __commonJS({
3670
3673
  }
3671
3674
  });
3672
3675
 
3673
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.js
3676
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.js
3674
3677
  var require_date2 = __commonJS({
3675
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.js"(exports2, module2) {
3678
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.js"(exports2, module2) {
3676
3679
  "use strict";
3677
3680
  var color = require_kleur();
3678
3681
  var Prompt = require_prompt2();
@@ -3849,9 +3852,10 @@ ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`,
3849
3852
  }
3850
3853
  });
3851
3854
 
3852
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/number.js
3855
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/number.js
3853
3856
  var require_number2 = __commonJS({
3854
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/number.js"(exports2, module2) {
3857
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/number.js"(exports2, module2) {
3858
+ "use strict";
3855
3859
  var color = require_kleur();
3856
3860
  var Prompt = require_prompt2();
3857
3861
  var { cursor, erase } = require_src();
@@ -4028,9 +4032,9 @@ ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);
4028
4032
  }
4029
4033
  });
4030
4034
 
4031
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/multiselect.js
4035
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/multiselect.js
4032
4036
  var require_multiselect2 = __commonJS({
4033
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/multiselect.js"(exports2, module2) {
4037
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/multiselect.js"(exports2, module2) {
4034
4038
  "use strict";
4035
4039
  var color = require_kleur();
4036
4040
  var { cursor } = require_src();
@@ -4253,9 +4257,9 @@ Instructions:
4253
4257
  }
4254
4258
  });
4255
4259
 
4256
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocomplete.js
4260
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocomplete.js
4257
4261
  var require_autocomplete2 = __commonJS({
4258
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocomplete.js"(exports2, module2) {
4262
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocomplete.js"(exports2, module2) {
4259
4263
  "use strict";
4260
4264
  var color = require_kleur();
4261
4265
  var Prompt = require_prompt2();
@@ -4469,9 +4473,9 @@ var require_autocomplete2 = __commonJS({
4469
4473
  }
4470
4474
  });
4471
4475
 
4472
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocompleteMultiselect.js
4476
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocompleteMultiselect.js
4473
4477
  var require_autocompleteMultiselect2 = __commonJS({
4474
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocompleteMultiselect.js"(exports2, module2) {
4478
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocompleteMultiselect.js"(exports2, module2) {
4475
4479
  "use strict";
4476
4480
  var color = require_kleur();
4477
4481
  var { cursor } = require_src();
@@ -4629,9 +4633,10 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter so
4629
4633
  }
4630
4634
  });
4631
4635
 
4632
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/confirm.js
4636
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/confirm.js
4633
4637
  var require_confirm2 = __commonJS({
4634
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/confirm.js"(exports2, module2) {
4638
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/confirm.js"(exports2, module2) {
4639
+ "use strict";
4635
4640
  var color = require_kleur();
4636
4641
  var Prompt = require_prompt2();
4637
4642
  var { style, clear } = require_util2();
@@ -4701,9 +4706,9 @@ var require_confirm2 = __commonJS({
4701
4706
  }
4702
4707
  });
4703
4708
 
4704
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/index.js
4709
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/index.js
4705
4710
  var require_elements2 = __commonJS({
4706
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/index.js"(exports2, module2) {
4711
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/index.js"(exports2, module2) {
4707
4712
  "use strict";
4708
4713
  module2.exports = {
4709
4714
  TextPrompt: require_text2(),
@@ -4719,9 +4724,9 @@ var require_elements2 = __commonJS({
4719
4724
  }
4720
4725
  });
4721
4726
 
4722
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.js
4727
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.js
4723
4728
  var require_prompts2 = __commonJS({
4724
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.js"(exports2) {
4729
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.js"(exports2) {
4725
4730
  "use strict";
4726
4731
  var $ = exports2;
4727
4732
  var el = require_elements2();
@@ -4785,9 +4790,9 @@ var require_prompts2 = __commonJS({
4785
4790
  }
4786
4791
  });
4787
4792
 
4788
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/index.js
4793
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/index.js
4789
4794
  var require_lib = __commonJS({
4790
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/index.js"(exports2, module2) {
4795
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/index.js"(exports2, module2) {
4791
4796
  "use strict";
4792
4797
  var prompts2 = require_prompts2();
4793
4798
  var passOn = ["suggest", "format", "onState", "validate", "onRender", "type"];
@@ -4859,9 +4864,10 @@ var require_lib = __commonJS({
4859
4864
  }
4860
4865
  });
4861
4866
 
4862
- // node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.js
4867
+ // ../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.js
4863
4868
  var require_prompts3 = __commonJS({
4864
- "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.js"(exports2, module2) {
4869
+ "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.js"(exports2, module2) {
4870
+ "use strict";
4865
4871
  function isNodeLT(tar) {
4866
4872
  tar = (Array.isArray(tar) ? tar : tar.split(".")).map(Number);
4867
4873
  let i = 0, src = process.versions.node.split(".").map(Number);
@@ -4875,9 +4881,9 @@ var require_prompts3 = __commonJS({
4875
4881
  }
4876
4882
  });
4877
4883
 
4878
- // node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/utils.js
4884
+ // ../../node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/utils.js
4879
4885
  var require_utils = __commonJS({
4880
- "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/utils.js"(exports2) {
4886
+ "../../node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/utils.js"(exports2) {
4881
4887
  "use strict";
4882
4888
  var regExpChars = /[|\\{}()[\]^$+*?.]/g;
4883
4889
  var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -5009,9 +5015,9 @@ function encode_char(c) {
5009
5015
  }
5010
5016
  });
5011
5017
 
5012
- // node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/package.json
5018
+ // ../../node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/package.json
5013
5019
  var require_package = __commonJS({
5014
- "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/package.json"(exports2, module2) {
5020
+ "../../node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/package.json"(exports2, module2) {
5015
5021
  module2.exports = {
5016
5022
  name: "ejs",
5017
5023
  description: "Embedded JavaScript templates",
@@ -5057,9 +5063,9 @@ var require_package = __commonJS({
5057
5063
  }
5058
5064
  });
5059
5065
 
5060
- // node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/ejs.js
5066
+ // ../../node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/ejs.js
5061
5067
  var require_ejs = __commonJS({
5062
- "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/ejs.js"(exports2) {
5068
+ "../../node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/ejs.js"(exports2) {
5063
5069
  "use strict";
5064
5070
  var fs2 = require("fs");
5065
5071
  var path2 = require("path");
@@ -5610,8 +5616,62 @@ var require_ejs = __commonJS({
5610
5616
  // src/index.ts
5611
5617
  var fs = __toESM(require("fs"), 1);
5612
5618
  var path = __toESM(require("path"), 1);
5619
+ var import_node_util = require("util");
5613
5620
  var import_prompts = __toESM(require_prompts3(), 1);
5614
5621
  var import_ejs = __toESM(require_ejs(), 1);
5622
+
5623
+ // package.json
5624
+ var package_default = {
5625
+ name: "@skirtle/create-vue-lib",
5626
+ version: "0.0.2",
5627
+ author: "skirtle",
5628
+ license: "MIT",
5629
+ description: "Create a library using Vue and Vite",
5630
+ keywords: ["vue", "library", "scaffold", "vite", "build"],
5631
+ homepage: "https://skirtles-code.github.io/create-vue-lib/",
5632
+ bugs: "https://github.com/skirtles-code/create-vue-lib/issues",
5633
+ repository: {
5634
+ type: "git",
5635
+ url: "git+https://github.com/skirtles-code/create-vue-lib.git"
5636
+ },
5637
+ funding: "https://github.com/sponsors/skirtles-code",
5638
+ type: "module",
5639
+ packageManager: "pnpm@9.15.4",
5640
+ engines: {
5641
+ node: ">=v18.3.0"
5642
+ },
5643
+ bin: {
5644
+ "create-vue-lib": "dist/index.cjs"
5645
+ },
5646
+ files: [
5647
+ "dist"
5648
+ ],
5649
+ devDependencies: {
5650
+ "@tsconfig/node22": "^22.0.0",
5651
+ "@types/ejs": "^3.1.5",
5652
+ "@types/node": "^22.13.0",
5653
+ "@types/prompts": "^2.4.9",
5654
+ copyfiles: "^2.4.1",
5655
+ ejs: "^3.1.10",
5656
+ "npm-run-all2": "^7.0.2",
5657
+ prompts: "^2.4.2",
5658
+ rimraf: "^6.0.1",
5659
+ tsup: "^8.3.6",
5660
+ typescript: "^5.7.3"
5661
+ },
5662
+ scripts: {
5663
+ clean: "rimraf dist LICENSE README.md",
5664
+ "type-check": "tsc",
5665
+ "build:copy": "copyfiles -f ../../LICENSE ../../README.md .",
5666
+ "build:templates": 'copyfiles -u 1 -a "src/template/**" dist',
5667
+ "build:ts": "tsup src/index.ts --format cjs --target node18",
5668
+ build: "run-s clean build:copy build:templates build:ts",
5669
+ start: "node ./dist/index.cjs",
5670
+ preinstall: "npx only-allow pnpm"
5671
+ }
5672
+ };
5673
+
5674
+ // src/index.ts
5615
5675
  async function prompt(options) {
5616
5676
  try {
5617
5677
  const result = await (0, import_prompts.default)(
@@ -5648,18 +5708,95 @@ async function togglePrompt(message, initial = false, active = "Yes", inactive =
5648
5708
  inactive
5649
5709
  });
5650
5710
  }
5711
+ async function textPromptIf(condition, message, initial) {
5712
+ return condition ? textPrompt(message, initial) : initial ?? "";
5713
+ }
5714
+ async function togglePromptIf(condition, message, initial = false, active = "Yes", inactive = "No") {
5715
+ return condition ? togglePrompt(message, initial, active, inactive) : initial;
5716
+ }
5717
+ var helpMessage = `Usage: create-vue-lib [OPTIONS...]
5718
+
5719
+ Create a new Vite project to build a Vue-based library.
5720
+
5721
+ Options:
5722
+ --extended, -x
5723
+ Prompt for extra configuration options.
5724
+ --help, -h
5725
+ Display this help message.
5726
+ --version, -v
5727
+ Display the version number for create-vue-lib.
5728
+
5729
+ Full documentation at https://skirtles-code.github.io/create-vue-lib/
5730
+ `;
5731
+ function processArgs() {
5732
+ let argValues = {};
5733
+ const options = {
5734
+ extended: {
5735
+ short: "x",
5736
+ type: "boolean"
5737
+ },
5738
+ help: {
5739
+ short: "h",
5740
+ type: "boolean"
5741
+ },
5742
+ version: {
5743
+ short: "v",
5744
+ type: "boolean"
5745
+ }
5746
+ };
5747
+ try {
5748
+ const args = (0, import_node_util.parseArgs)({
5749
+ options
5750
+ });
5751
+ argValues = args.values;
5752
+ } catch (err) {
5753
+ if (err.code === "ERR_PARSE_ARGS_UNKNOWN_OPTION") {
5754
+ console.log("Error:");
5755
+ console.log(err.message);
5756
+ console.log("See --help for valid options");
5757
+ process.exit(1);
5758
+ } else {
5759
+ throw err;
5760
+ }
5761
+ }
5762
+ if (argValues.help) {
5763
+ console.log(helpMessage);
5764
+ process.exit(0);
5765
+ }
5766
+ if (argValues.version) {
5767
+ console.log(`${package_default.name} v${package_default.version}`);
5768
+ process.exit(0);
5769
+ }
5770
+ return {
5771
+ extended: !!argValues.extended
5772
+ };
5773
+ }
5774
+ function isValidPackageName(packageName) {
5775
+ return /^(@[a-z0-9-*~][a-z0-9-*_.~]*\/)?[a-z_][a-z0-9-_.~]*$/.test(packageName);
5776
+ }
5777
+ function isValidDirName(dirName) {
5778
+ return /^[a-zA-Z_][\w-.~ ]*$/.test(dirName);
5779
+ }
5651
5780
  async function init() {
5652
5781
  const cwd = process.cwd();
5653
- const scopedPackageName = await textPrompt("Package name", "@skirtle/test-project");
5654
- if (!/^@[a-z0-9-]+\/[a-z0-9-]+$/.test(scopedPackageName)) {
5782
+ const { extended } = processArgs();
5783
+ console.log();
5784
+ console.log(`Welcome to ${package_default.name} v${package_default.version}`);
5785
+ console.log();
5786
+ console.log("This tool will help you to scaffold a Vite project for your Vue-based library.");
5787
+ console.log();
5788
+ console.log("It is recommended to use a scoped package name for your library.");
5789
+ console.log("e.g. @username/package-name");
5790
+ console.log("To learn more about scopes see: https://docs.npmjs.com/about-scopes");
5791
+ console.log();
5792
+ const scopedPackageName = await textPrompt("Package name", "");
5793
+ if (!isValidPackageName(scopedPackageName)) {
5655
5794
  console.log("Invalid package name: " + scopedPackageName);
5656
5795
  process.exit(1);
5657
5796
  }
5658
5797
  const unscopedPackageName = scopedPackageName.replace(/.*\//, "");
5659
- const shortUnscopedPackageName = unscopedPackageName.replace(/^vue-/, "");
5660
- const projectName = unscopedPackageName.replace(/-+/g, " ").trim().split(" ").map((s) => s[0].toUpperCase() + s.slice(1)).join(" ");
5661
5798
  const targetDirName = await textPrompt("Target directory", unscopedPackageName);
5662
- if (targetDirName !== "." && !/^[\w-]+$/.test(targetDirName)) {
5799
+ if (targetDirName !== "." && !isValidDirName(targetDirName)) {
5663
5800
  console.log("Invalid directory name: " + targetDirName);
5664
5801
  process.exit(1);
5665
5802
  }
@@ -5673,25 +5810,50 @@ async function init() {
5673
5810
  console.log("Target directory already exists");
5674
5811
  }
5675
5812
  }
5676
- const mainPackageDirName = await textPrompt("Main package directory", unscopedPackageName);
5677
- if (!/^[\w-]+$/.test(mainPackageDirName)) {
5813
+ const mainPackageDirName = await textPromptIf(extended, "Main package directory", unscopedPackageName);
5814
+ if (!isValidDirName(mainPackageDirName)) {
5678
5815
  console.log("Invalid directory name: " + mainPackageDirName);
5679
5816
  process.exit(1);
5680
5817
  }
5681
- const globalVariableName = await textPrompt("Global variable name", projectName.replace(/ /g, ""));
5818
+ const defaultGlobalVariableName = unscopedPackageName.replace(/\W+/g, " ").trim().split(" ").map((s) => s[0].toUpperCase() + s.slice(1)).join("");
5819
+ const globalVariableName = await textPromptIf(extended, "Global variable name", defaultGlobalVariableName);
5682
5820
  if (!/^[a-zA-Z$_][\w$]*$/.test(globalVariableName)) {
5683
5821
  console.log("Invalid variable name: " + globalVariableName);
5684
5822
  process.exit(1);
5685
5823
  }
5686
- const githubPath = await textPrompt("GitHub path, e.g. skirtles-code/test-project (optional)");
5687
- if (githubPath && !/^[\w-]+\/[\w-]+$/.test(githubPath)) {
5688
- console.log("Invalid GitHub path: " + githubPath);
5824
+ console.log();
5825
+ console.log("The GitHub path you provide below is used to generate various URLs.");
5826
+ console.log("For example, if you intended to have your repo at https://github.com/vuejs/core then the path would be vuejs/core.");
5827
+ console.log();
5828
+ const rawGithubPath = await textPrompt("GitHub path (optional)");
5829
+ const githubPath = rawGithubPath.replace(/^(https:\/\/github.com\/|\/)/, "");
5830
+ if (rawGithubPath && !/^[\w-]+\/[\w-.]+$/.test(githubPath)) {
5831
+ console.log("Invalid GitHub path: " + rawGithubPath);
5689
5832
  process.exit(1);
5690
5833
  }
5834
+ const includeEsLint = await togglePrompt("Include ESLint?", true);
5835
+ const includeEsLintStylistic = await togglePromptIf(includeEsLint, "Include ESLint Stylistic for formatting?", includeEsLint);
5691
5836
  const includeDocs = await togglePrompt("Include VitePress for documentation?", true);
5692
5837
  const includeGithubPages = includeDocs && await togglePrompt("Include GitHub Pages config for documentation?");
5693
5838
  const includePlayground = await togglePrompt("Include playground application for development?", true);
5694
- const includeExamples = await togglePrompt("Include example code?", true, "Yes", "No, just configs");
5839
+ const includeExamples = await togglePromptIf(extended, "Include example code?", true, "Yes", "No, just configs");
5840
+ const includeAtAliases = await togglePromptIf(extended, "Configure @ as an alias for src?");
5841
+ const includeTestVariable = await togglePromptIf(extended, "Configure global __TEST__ variable?");
5842
+ function suggestExtended() {
5843
+ if (!extended) {
5844
+ console.log(`Use the --extended flag to configure the directory name separately.`);
5845
+ }
5846
+ }
5847
+ if (includeDocs && mainPackageDirName === "docs") {
5848
+ console.log(`The directory name 'docs' is reserved for the documentation, please choose a different name.`);
5849
+ suggestExtended();
5850
+ process.exit(1);
5851
+ }
5852
+ if (includePlayground && mainPackageDirName === "playground") {
5853
+ console.log(`The directory name 'playground' is reserved for the playground, please choose a different name.`);
5854
+ suggestExtended();
5855
+ process.exit(1);
5856
+ }
5695
5857
  const [githubUserName, githubRepoName] = (githubPath || "/").split("/");
5696
5858
  const githubUrl = githubPath ? `https://github.com/${githubPath}` : "";
5697
5859
  const githubIssues = githubPath ? `${githubUrl}/issues` : "";
@@ -5703,8 +5865,6 @@ async function init() {
5703
5865
  const config = {
5704
5866
  scopedPackageName,
5705
5867
  unscopedPackageName,
5706
- shortUnscopedPackageName,
5707
- projectName,
5708
5868
  globalVariableName,
5709
5869
  targetDirName,
5710
5870
  targetDirPath,
@@ -5720,7 +5880,11 @@ async function init() {
5720
5880
  includeDocs,
5721
5881
  includeGithubPages,
5722
5882
  includePlayground,
5723
- includeExamples
5883
+ includeExamples,
5884
+ includeEsLint,
5885
+ includeEsLintStylistic,
5886
+ includeAtAliases,
5887
+ includeTestVariable
5724
5888
  };
5725
5889
  copyTemplate("base", config);
5726
5890
  if (config.includeDocs) {
@@ -5732,17 +5896,25 @@ async function init() {
5732
5896
  if (config.includePlayground) {
5733
5897
  copyTemplate("playground", config);
5734
5898
  }
5899
+ if (config.includeEsLint) {
5900
+ copyTemplate("eslint", config);
5901
+ }
5902
+ console.log();
5735
5903
  console.log("Project created");
5904
+ console.log();
5736
5905
  console.log("Note: pnpm must be used as the package manager");
5737
5906
  console.log();
5907
+ console.log("Next steps:");
5908
+ console.log();
5738
5909
  if (targetDirName !== ".") {
5739
- console.log("cd " + targetDirName);
5910
+ console.log(" cd " + targetDirName);
5740
5911
  }
5741
- console.log("pnpm install");
5742
- if (!fs.existsSync(path.join(targetDirPath, "packages", config.mainPackageDirName, "LICENSE"))) {
5743
- console.log();
5744
- console.log(`You should add a suitable license at packages/${config.mainPackageDirName}/LICENSE`);
5912
+ if (!fs.existsSync(path.join(targetDirPath, ".git"))) {
5913
+ console.log(" git init -b main");
5745
5914
  }
5915
+ console.log(" pnpm install");
5916
+ console.log();
5917
+ console.log("See https://skirtles-code.github.io/create-vue-lib/next-steps for more suggestions.");
5746
5918
  }
5747
5919
  function copyTemplate(templateName, config) {
5748
5920
  const dirs = ["config"];
@@ -5778,11 +5950,14 @@ function copyFiles(templateFile, config) {
5778
5950
  if (filename.endsWith(".ejs")) {
5779
5951
  const template = fs.readFileSync(templatePath, "utf-8");
5780
5952
  const target = targetPath.replace(/\.ejs$/, "");
5781
- const content = import_ejs.default.render(template, { config });
5953
+ let content = import_ejs.default.render(template, { config });
5954
+ if (target.endsWith(".json")) {
5955
+ content = content.replace(/,(\s*)([}\]])/g, "$1$2");
5956
+ }
5782
5957
  fs.writeFileSync(target, content);
5783
5958
  } else if (["package.json", "vite.config.mts", "config.mts", "index.md", "introduction.md", "App.vue", "tsconfig.app.json", "env.d.ts"].includes(filename)) {
5784
5959
  const template = fs.readFileSync(templatePath, "utf-8");
5785
- const content = template.replace(/@projectName@/g, config.mainPackageDirName).replace(new RegExp(`@(${Object.keys(config).join("|")})@`, "g"), (all, setting) => config[setting] ?? all);
5960
+ const content = template.replace(/@projectName@/g, config.mainPackageDirName).replace(new RegExp(`@(${Object.keys(config).join("|")})@`, "g"), (all, setting) => `${config[setting] ?? all}`);
5786
5961
  fs.writeFileSync(targetPath, content);
5787
5962
  } else {
5788
5963
  fs.copyFileSync(templatePath, targetPath);