create-vuetify 3.0.13-beta-next.2 → 3.0.13-beta-next.4

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 (2) hide show
  1. package/dist/index.mjs +159 -155
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -11,6 +11,7 @@ import * as k$2 from "node:readline";
11
11
  import f from "node:readline";
12
12
  import fs, { appendFileSync, cpSync, createWriteStream, existsSync, lstatSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
13
13
  import fs$1, { constants, mkdir, readFile, rm, writeFile } from "node:fs/promises";
14
+ import { findPackage, readPackage, readPackageJSON, updatePackage, writePackageJSON } from "pkg-types";
14
15
  import nativeFs from "fs";
15
16
  import path$1 from "path";
16
17
  import j$1 from "assert";
@@ -26,7 +27,6 @@ import ht from "string_decoder";
26
27
  import P from "buffer";
27
28
  import O$2 from "zlib";
28
29
  import nt$1 from "process";
29
- import { findPackage, readPackage, readPackageJSON, updatePackage, writePackageJSON } from "pkg-types";
30
30
  import { x } from "tinyexec";
31
31
  import { pipeline } from "node:stream";
32
32
  import childProcess, { execFile } from "node:child_process";
@@ -12978,6 +12978,150 @@ ${r$4 ? import_picocolors.default.cyan(x$1) : ""}
12978
12978
  }
12979
12979
  }).prompt();
12980
12980
 
12981
+ //#endregion
12982
+ //#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
12983
+ const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
12984
+ function normalizeWindowsPath(input = "") {
12985
+ if (!input) return input;
12986
+ return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r$4) => r$4.toUpperCase());
12987
+ }
12988
+ const _UNC_REGEX = /^[/\\]{2}/;
12989
+ const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
12990
+ const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
12991
+ const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
12992
+ const normalize = function(path$3) {
12993
+ if (path$3.length === 0) return ".";
12994
+ path$3 = normalizeWindowsPath(path$3);
12995
+ const isUNCPath = path$3.match(_UNC_REGEX);
12996
+ const isPathAbsolute = isAbsolute$1(path$3);
12997
+ const trailingSeparator = path$3[path$3.length - 1] === "/";
12998
+ path$3 = normalizeString(path$3, !isPathAbsolute);
12999
+ if (path$3.length === 0) {
13000
+ if (isPathAbsolute) return "/";
13001
+ return trailingSeparator ? "./" : ".";
13002
+ }
13003
+ if (trailingSeparator) path$3 += "/";
13004
+ if (_DRIVE_LETTER_RE.test(path$3)) path$3 += "/";
13005
+ if (isUNCPath) {
13006
+ if (!isPathAbsolute) return `//./${path$3}`;
13007
+ return `//${path$3}`;
13008
+ }
13009
+ return isPathAbsolute && !isAbsolute$1(path$3) ? `/${path$3}` : path$3;
13010
+ };
13011
+ const join$1 = function(...segments) {
13012
+ let path$3 = "";
13013
+ for (const seg of segments) {
13014
+ if (!seg) continue;
13015
+ if (path$3.length > 0) {
13016
+ const pathTrailing = path$3[path$3.length - 1] === "/";
13017
+ const segLeading = seg[0] === "/";
13018
+ if (pathTrailing && segLeading) path$3 += seg.slice(1);
13019
+ else path$3 += pathTrailing || segLeading ? seg : `/${seg}`;
13020
+ } else path$3 += seg;
13021
+ }
13022
+ return normalize(path$3);
13023
+ };
13024
+ function cwd() {
13025
+ if (typeof process !== "undefined" && typeof process.cwd === "function") return process.cwd().replace(/\\/g, "/");
13026
+ return "/";
13027
+ }
13028
+ const resolve = function(...arguments_) {
13029
+ arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
13030
+ let resolvedPath = "";
13031
+ let resolvedAbsolute = false;
13032
+ for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
13033
+ const path$3 = index >= 0 ? arguments_[index] : cwd();
13034
+ if (!path$3 || path$3.length === 0) continue;
13035
+ resolvedPath = `${path$3}/${resolvedPath}`;
13036
+ resolvedAbsolute = isAbsolute$1(path$3);
13037
+ }
13038
+ resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
13039
+ if (resolvedAbsolute && !isAbsolute$1(resolvedPath)) return `/${resolvedPath}`;
13040
+ return resolvedPath.length > 0 ? resolvedPath : ".";
13041
+ };
13042
+ function normalizeString(path$3, allowAboveRoot) {
13043
+ let res = "";
13044
+ let lastSegmentLength = 0;
13045
+ let lastSlash = -1;
13046
+ let dots = 0;
13047
+ let char = null;
13048
+ for (let index = 0; index <= path$3.length; ++index) {
13049
+ if (index < path$3.length) char = path$3[index];
13050
+ else if (char === "/") break;
13051
+ else char = "/";
13052
+ if (char === "/") {
13053
+ if (lastSlash === index - 1 || dots === 1);
13054
+ else if (dots === 2) {
13055
+ if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
13056
+ if (res.length > 2) {
13057
+ const lastSlashIndex = res.lastIndexOf("/");
13058
+ if (lastSlashIndex === -1) {
13059
+ res = "";
13060
+ lastSegmentLength = 0;
13061
+ } else {
13062
+ res = res.slice(0, lastSlashIndex);
13063
+ lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
13064
+ }
13065
+ lastSlash = index;
13066
+ dots = 0;
13067
+ continue;
13068
+ } else if (res.length > 0) {
13069
+ res = "";
13070
+ lastSegmentLength = 0;
13071
+ lastSlash = index;
13072
+ dots = 0;
13073
+ continue;
13074
+ }
13075
+ }
13076
+ if (allowAboveRoot) {
13077
+ res += res.length > 0 ? "/.." : "..";
13078
+ lastSegmentLength = 2;
13079
+ }
13080
+ } else {
13081
+ if (res.length > 0) res += `/${path$3.slice(lastSlash + 1, index)}`;
13082
+ else res = path$3.slice(lastSlash + 1, index);
13083
+ lastSegmentLength = index - lastSlash - 1;
13084
+ }
13085
+ lastSlash = index;
13086
+ dots = 0;
13087
+ } else if (char === "." && dots !== -1) ++dots;
13088
+ else dots = -1;
13089
+ }
13090
+ return res;
13091
+ }
13092
+ const isAbsolute$1 = function(p$3) {
13093
+ return _IS_ABSOLUTE_RE.test(p$3);
13094
+ };
13095
+ const relative = function(from, to) {
13096
+ const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
13097
+ const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
13098
+ if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) return _to.join("/");
13099
+ const _fromCopy = [..._from];
13100
+ for (const segment of _fromCopy) {
13101
+ if (_to[0] !== segment) break;
13102
+ _from.shift();
13103
+ _to.shift();
13104
+ }
13105
+ return [..._from.map(() => ".."), ..._to].join("/");
13106
+ };
13107
+ const dirname$1 = function(p$3) {
13108
+ const segments = normalizeWindowsPath(p$3).replace(/\/$/, "").split("/").slice(0, -1);
13109
+ if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) segments[0] += "/";
13110
+ return segments.join("/") || (isAbsolute$1(p$3) ? "/" : ".");
13111
+ };
13112
+ const basename = function(p$3, extension) {
13113
+ const segments = normalizeWindowsPath(p$3).split("/");
13114
+ let lastSegment = "";
13115
+ for (let i$10 = segments.length - 1; i$10 >= 0; i$10--) {
13116
+ const val = segments[i$10];
13117
+ if (val) {
13118
+ lastSegment = val;
13119
+ break;
13120
+ }
13121
+ }
13122
+ return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
13123
+ };
13124
+
12981
13125
  //#endregion
12982
13126
  //#region ../../node_modules/.pnpm/eslint-visitor-keys@4.2.1/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs
12983
13127
  var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -25535,7 +25679,7 @@ const black = kolorist(30, 39);
25535
25679
  const red = kolorist(31, 39);
25536
25680
  const green = kolorist(32, 39);
25537
25681
  const yellow = kolorist(33, 39);
25538
- const blue$3 = kolorist(34, 39);
25682
+ const blue$4 = kolorist(34, 39);
25539
25683
  const magenta = kolorist(35, 39);
25540
25684
  const cyan = kolorist(36, 39);
25541
25685
  const white = kolorist(97, 39);
@@ -25570,150 +25714,6 @@ function link(text, url) {
25570
25714
  return options.enabled ? OSC + "8;;" + url + BEL + text + OSC + "8;;\x07" : `${text} (\u200B${url}\u200B)`;
25571
25715
  }
25572
25716
 
25573
- //#endregion
25574
- //#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
25575
- const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
25576
- function normalizeWindowsPath(input = "") {
25577
- if (!input) return input;
25578
- return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r$4) => r$4.toUpperCase());
25579
- }
25580
- const _UNC_REGEX = /^[/\\]{2}/;
25581
- const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
25582
- const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
25583
- const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
25584
- const normalize = function(path$3) {
25585
- if (path$3.length === 0) return ".";
25586
- path$3 = normalizeWindowsPath(path$3);
25587
- const isUNCPath = path$3.match(_UNC_REGEX);
25588
- const isPathAbsolute = isAbsolute$1(path$3);
25589
- const trailingSeparator = path$3[path$3.length - 1] === "/";
25590
- path$3 = normalizeString(path$3, !isPathAbsolute);
25591
- if (path$3.length === 0) {
25592
- if (isPathAbsolute) return "/";
25593
- return trailingSeparator ? "./" : ".";
25594
- }
25595
- if (trailingSeparator) path$3 += "/";
25596
- if (_DRIVE_LETTER_RE.test(path$3)) path$3 += "/";
25597
- if (isUNCPath) {
25598
- if (!isPathAbsolute) return `//./${path$3}`;
25599
- return `//${path$3}`;
25600
- }
25601
- return isPathAbsolute && !isAbsolute$1(path$3) ? `/${path$3}` : path$3;
25602
- };
25603
- const join$1 = function(...segments) {
25604
- let path$3 = "";
25605
- for (const seg of segments) {
25606
- if (!seg) continue;
25607
- if (path$3.length > 0) {
25608
- const pathTrailing = path$3[path$3.length - 1] === "/";
25609
- const segLeading = seg[0] === "/";
25610
- if (pathTrailing && segLeading) path$3 += seg.slice(1);
25611
- else path$3 += pathTrailing || segLeading ? seg : `/${seg}`;
25612
- } else path$3 += seg;
25613
- }
25614
- return normalize(path$3);
25615
- };
25616
- function cwd() {
25617
- if (typeof process !== "undefined" && typeof process.cwd === "function") return process.cwd().replace(/\\/g, "/");
25618
- return "/";
25619
- }
25620
- const resolve = function(...arguments_) {
25621
- arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
25622
- let resolvedPath = "";
25623
- let resolvedAbsolute = false;
25624
- for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
25625
- const path$3 = index >= 0 ? arguments_[index] : cwd();
25626
- if (!path$3 || path$3.length === 0) continue;
25627
- resolvedPath = `${path$3}/${resolvedPath}`;
25628
- resolvedAbsolute = isAbsolute$1(path$3);
25629
- }
25630
- resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
25631
- if (resolvedAbsolute && !isAbsolute$1(resolvedPath)) return `/${resolvedPath}`;
25632
- return resolvedPath.length > 0 ? resolvedPath : ".";
25633
- };
25634
- function normalizeString(path$3, allowAboveRoot) {
25635
- let res = "";
25636
- let lastSegmentLength = 0;
25637
- let lastSlash = -1;
25638
- let dots = 0;
25639
- let char = null;
25640
- for (let index = 0; index <= path$3.length; ++index) {
25641
- if (index < path$3.length) char = path$3[index];
25642
- else if (char === "/") break;
25643
- else char = "/";
25644
- if (char === "/") {
25645
- if (lastSlash === index - 1 || dots === 1);
25646
- else if (dots === 2) {
25647
- if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
25648
- if (res.length > 2) {
25649
- const lastSlashIndex = res.lastIndexOf("/");
25650
- if (lastSlashIndex === -1) {
25651
- res = "";
25652
- lastSegmentLength = 0;
25653
- } else {
25654
- res = res.slice(0, lastSlashIndex);
25655
- lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
25656
- }
25657
- lastSlash = index;
25658
- dots = 0;
25659
- continue;
25660
- } else if (res.length > 0) {
25661
- res = "";
25662
- lastSegmentLength = 0;
25663
- lastSlash = index;
25664
- dots = 0;
25665
- continue;
25666
- }
25667
- }
25668
- if (allowAboveRoot) {
25669
- res += res.length > 0 ? "/.." : "..";
25670
- lastSegmentLength = 2;
25671
- }
25672
- } else {
25673
- if (res.length > 0) res += `/${path$3.slice(lastSlash + 1, index)}`;
25674
- else res = path$3.slice(lastSlash + 1, index);
25675
- lastSegmentLength = index - lastSlash - 1;
25676
- }
25677
- lastSlash = index;
25678
- dots = 0;
25679
- } else if (char === "." && dots !== -1) ++dots;
25680
- else dots = -1;
25681
- }
25682
- return res;
25683
- }
25684
- const isAbsolute$1 = function(p$3) {
25685
- return _IS_ABSOLUTE_RE.test(p$3);
25686
- };
25687
- const relative = function(from, to) {
25688
- const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
25689
- const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
25690
- if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) return _to.join("/");
25691
- const _fromCopy = [..._from];
25692
- for (const segment of _fromCopy) {
25693
- if (_to[0] !== segment) break;
25694
- _from.shift();
25695
- _to.shift();
25696
- }
25697
- return [..._from.map(() => ".."), ..._to].join("/");
25698
- };
25699
- const dirname$1 = function(p$3) {
25700
- const segments = normalizeWindowsPath(p$3).replace(/\/$/, "").split("/").slice(0, -1);
25701
- if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) segments[0] += "/";
25702
- return segments.join("/") || (isAbsolute$1(p$3) ? "/" : ".");
25703
- };
25704
- const basename = function(p$3, extension) {
25705
- const segments = normalizeWindowsPath(p$3).split("/");
25706
- let lastSegment = "";
25707
- for (let i$10 = segments.length - 1; i$10 >= 0; i$10--) {
25708
- const val = segments[i$10];
25709
- if (val) {
25710
- lastSegment = val;
25711
- break;
25712
- }
25713
- }
25714
- return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
25715
- };
25716
-
25717
25717
  //#endregion
25718
25718
  //#region ../shared/src/prompts.ts
25719
25719
  async function prompt(args$2, cwd$1 = process.cwd()) {
@@ -25991,7 +25991,7 @@ const colorfulBanner = `  \`$$[38;5;1
25991
25991
                  \`T:             
25992
25992
  `;
25993
25993
  const unstyledBanner = stripColors(colorfulBanner);
25994
- const coloredBanner = blue$3(unstyledBanner);
25994
+ const coloredBanner = blue$4(unstyledBanner);
25995
25995
  function createBanner() {
25996
25996
  if (!options.enabled) return unstyledBanner;
25997
25997
  else if (options.supportLevel < 2) return coloredBanner;
@@ -41568,8 +41568,8 @@ async function createVuetify(options$1) {
41568
41568
  path: relativePath
41569
41569
  }));
41570
41570
  Tt(lines.join("\n"), "Next steps", { withGuide: false });
41571
- const blue$4 = ansi256(33);
41572
- console.log(`${blue$4(link("Docs", "https://0.vuetifyjs.com/guide"))} ⸱ ${blue$4(link("Discord", "https://discord.gg/vK6T89eNP7"))} ⸱ ${blue$4(link("Support Us", "https://opencollective.com/vuetify"))}\n`);
41571
+ const blue$5 = ansi256(33);
41572
+ console.log(`${blue$5(link("Docs", "https://0.vuetifyjs.com/guide"))} ⸱ ${blue$5(link("Discord", "https://discord.gg/vK6T89eNP7"))} ⸱ ${blue$5(link("Support Us", "https://opencollective.com/vuetify"))}\n`);
41573
41573
  }
41574
41574
 
41575
41575
  //#endregion
@@ -43192,8 +43192,8 @@ const LINKS = {
43192
43192
 
43193
43193
  //#endregion
43194
43194
  //#region ../shared/src/functions/eslint.ts
43195
- const blue$2 = ansi256(33);
43196
- const description$1 = i18n.t("commands.eslint.description", { configPkg: blue$2(ESLINT_CONFIG) });
43195
+ const blue$3 = ansi256(33);
43196
+ const description$1 = i18n.t("commands.eslint.description", { configPkg: blue$3(ESLINT_CONFIG) });
43197
43197
  async function getEslintStatus() {
43198
43198
  const nuxtConfigPath = tryResolveFilePath("./nuxt.config", { extensions: [
43199
43199
  ".ts",
@@ -43316,8 +43316,8 @@ async function addEslint() {
43316
43316
  //#endregion
43317
43317
  //#region ../shared/src/functions/mcp.ts
43318
43318
  const RULER_PKG = "@intellectronica/ruler";
43319
- const blue$1 = ansi256(33);
43320
- const description = i18n.t("commands.mcp.description", { pkg: blue$1(RULER_PKG) });
43319
+ const blue$2 = ansi256(33);
43320
+ const description = i18n.t("commands.mcp.description", { pkg: blue$2(RULER_PKG) });
43321
43321
  async function addMcp() {
43322
43322
  Nt(description);
43323
43323
  if (await tryResolvePackage(RULER_PKG)) R.info(i18n.t("messages.eslint.deps_already_installed"));
@@ -43700,7 +43700,7 @@ async function getNpmPackageVersion(packageName) {
43700
43700
  //#endregion
43701
43701
  //#region ../shared/src/utils/updateCheck.ts
43702
43702
  var import_semver = /* @__PURE__ */ __toESM(require_semver());
43703
- const blue = ansi256(33);
43703
+ const blue$1 = ansi256(33);
43704
43704
 
43705
43705
  //#endregion
43706
43706
  //#region ../shared/src/commands/update.ts
@@ -43858,9 +43858,13 @@ function registerProjectArgsCompletion(completion) {
43858
43858
  };
43859
43859
  }
43860
43860
 
43861
+ //#endregion
43862
+ //#region ../shared/src/reporters/console.ts
43863
+ const blue = ansi256(33);
43864
+
43861
43865
  //#endregion
43862
43866
  //#region package.json
43863
- var version = "3.0.13-beta-next.2";
43867
+ var version = "3.0.13-beta-next.4";
43864
43868
 
43865
43869
  //#endregion
43866
43870
  //#region src/commands/upgrade.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vuetify",
3
- "version": "3.0.13-beta-next.2",
3
+ "version": "3.0.13-beta-next.4",
4
4
  "description": "Create a new Vuetify project",
5
5
  "type": "module",
6
6
  "files": [
@@ -33,7 +33,7 @@
33
33
  "pathe": "^2.0.3",
34
34
  "tsdown": "^0.16.8",
35
35
  "vitest": "^4.0.17",
36
- "@vuetify/cli-shared": "0.0.13-beta.2"
36
+ "@vuetify/cli-shared": "0.0.13-beta.4"
37
37
  },
38
38
  "main": "./dist/index.mjs",
39
39
  "module": "./dist/index.mjs",