create-vuetify 2.5.2 → 2.7.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -184,7 +184,7 @@ var isAbsolute = function(p) {
184
184
  return _IS_ABSOLUTE_RE.test(p);
185
185
  };
186
186
 
187
- // node_modules/.pnpm/tinyexec@0.3.2/node_modules/tinyexec/dist/main.js
187
+ // node_modules/.pnpm/tinyexec@1.0.1/node_modules/tinyexec/dist/main.js
188
188
  import { createRequire as __tinyexec_cr } from "node:module";
189
189
  import { spawn as de } from "child_process";
190
190
  import { normalize as fe } from "path";
@@ -726,7 +726,7 @@ var ve = (t, e, n) => {
726
726
  };
727
727
  var be = ve;
728
728
 
729
- // node_modules/.pnpm/nypm@0.6.0/node_modules/nypm/dist/shared/nypm.Bcw9TJOu.mjs
729
+ // node_modules/.pnpm/nypm@0.6.2/node_modules/nypm/dist/shared/nypm.CLjaS_sz.mjs
730
730
  import { existsSync } from "node:fs";
731
731
  import { readFile } from "node:fs/promises";
732
732
  async function findup(cwd2, match, options = {}) {
@@ -768,6 +768,7 @@ async function executeCommand(command, args, options = {}) {
768
768
  const { exitCode, stdout, stderr } = await ve(xArgs[0], xArgs[1], {
769
769
  nodeOptions: {
770
770
  cwd: resolve(options.cwd || process.cwd()),
771
+ env: options.env,
771
772
  stdio: options.silent ? "pipe" : "inherit"
772
773
  }
773
774
  });
@@ -780,17 +781,20 @@ async function executeCommand(command, args, options = {}) {
780
781
  var NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG = "No package manager auto-detected.";
781
782
  async function resolveOperationOptions(options = {}) {
782
783
  const cwd2 = options.cwd || process.cwd();
784
+ const env = { ...process.env, ...options.env };
783
785
  const packageManager2 = (typeof options.packageManager === "string" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());
784
786
  if (!packageManager2) {
785
787
  throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);
786
788
  }
787
789
  return {
788
790
  cwd: cwd2,
791
+ env,
789
792
  silent: options.silent ?? false,
790
793
  packageManager: packageManager2,
791
794
  dev: options.dev ?? false,
792
795
  workspace: options.workspace,
793
- global: options.global ?? false
796
+ global: options.global ?? false,
797
+ dry: options.dry ?? false
794
798
  };
795
799
  }
796
800
  function parsePackageManagerField(packageManager2) {
@@ -921,560 +925,26 @@ async function installDependencies(options = {}) {
921
925
  deno: ["install", "--frozen"]
922
926
  };
923
927
  const commandArgs = options.frozenLockFile ? pmToFrozenLockfileInstallCommand[resolvedOptions.packageManager.name] : ["install"];
924
- await executeCommand(resolvedOptions.packageManager.command, commandArgs, {
925
- cwd: resolvedOptions.cwd,
926
- silent: resolvedOptions.silent
927
- });
928
- }
929
-
930
- // node_modules/.pnpm/tinyexec@1.0.1/node_modules/tinyexec/dist/main.js
931
- import { createRequire as __tinyexec_cr2 } from "node:module";
932
- import { spawn as de2 } from "child_process";
933
- import { normalize as fe2 } from "path";
934
- import { cwd as he2 } from "process";
935
- import {
936
- delimiter as N2,
937
- resolve as qt2,
938
- dirname as It2
939
- } from "path";
940
- import { PassThrough as zt2 } from "stream";
941
- import me2 from "readline";
942
- var require3 = __tinyexec_cr2(import.meta.url);
943
- var St2 = Object.create;
944
- var $2 = Object.defineProperty;
945
- var kt2 = Object.getOwnPropertyDescriptor;
946
- var Tt2 = Object.getOwnPropertyNames;
947
- var At2 = Object.getPrototypeOf;
948
- var Rt2 = Object.prototype.hasOwnProperty;
949
- var h2 = /* @__PURE__ */ ((t) => typeof require3 < "u" ? require3 : typeof Proxy < "u" ? new Proxy(t, {
950
- get: (e, n) => (typeof require3 < "u" ? require3 : e)[n]
951
- }) : t)(function(t) {
952
- if (typeof require3 < "u") return require3.apply(this, arguments);
953
- throw Error('Dynamic require of "' + t + '" is not supported');
954
- });
955
- var l2 = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
956
- var $t2 = (t, e, n, r) => {
957
- if (e && typeof e == "object" || typeof e == "function")
958
- for (let s of Tt2(e))
959
- !Rt2.call(t, s) && s !== n && $2(t, s, { get: () => e[s], enumerable: !(r = kt2(e, s)) || r.enumerable });
960
- return t;
961
- };
962
- var Nt2 = (t, e, n) => (n = t != null ? St2(At2(t)) : {}, $t2(
963
- // If the importer is in node compatibility mode or this is not an ESM
964
- // file that has been converted to a CommonJS file using a Babel-
965
- // compatible transform (i.e. "__esModule" has not been set), then set
966
- // "default" to the CommonJS "module.exports" for node compatibility.
967
- e || !t || !t.__esModule ? $2(n, "default", { value: t, enumerable: true }) : n,
968
- t
969
- ));
970
- var W2 = l2((Se, H) => {
971
- "use strict";
972
- H.exports = z;
973
- z.sync = Wt;
974
- var j = h2("fs");
975
- function Ht(t, e) {
976
- var n = e.pathExt !== void 0 ? e.pathExt : process.env.PATHEXT;
977
- if (!n || (n = n.split(";"), n.indexOf("") !== -1))
978
- return true;
979
- for (var r = 0; r < n.length; r++) {
980
- var s = n[r].toLowerCase();
981
- if (s && t.substr(-s.length).toLowerCase() === s)
982
- return true;
983
- }
984
- return false;
985
- }
986
- function F(t, e, n) {
987
- return !t.isSymbolicLink() && !t.isFile() ? false : Ht(e, n);
988
- }
989
- function z(t, e, n) {
990
- j.stat(t, function(r, s) {
991
- n(r, r ? false : F(s, t, e));
992
- });
993
- }
994
- function Wt(t, e) {
995
- return F(j.statSync(t), t, e);
996
- }
997
- });
998
- var X2 = l2((ke, B) => {
999
- "use strict";
1000
- B.exports = K;
1001
- K.sync = Dt;
1002
- var D = h2("fs");
1003
- function K(t, e, n) {
1004
- D.stat(t, function(r, s) {
1005
- n(r, r ? false : M(s, e));
1006
- });
1007
- }
1008
- function Dt(t, e) {
1009
- return M(D.statSync(t), e);
1010
- }
1011
- function M(t, e) {
1012
- return t.isFile() && Kt(t, e);
1013
- }
1014
- function Kt(t, e) {
1015
- var n = t.mode, r = t.uid, s = t.gid, o = e.uid !== void 0 ? e.uid : process.getuid && process.getuid(), i = e.gid !== void 0 ? e.gid : process.getgid && process.getgid(), a = parseInt("100", 8), c = parseInt("010", 8), u = parseInt("001", 8), f = a | c, p = n & u || n & c && s === i || n & a && r === o || n & f && o === 0;
1016
- return p;
1017
- }
1018
- });
1019
- var U2 = l2((Ae, G) => {
1020
- "use strict";
1021
- var Te = h2("fs"), v;
1022
- process.platform === "win32" || global.TESTING_WINDOWS ? v = W2() : v = X2();
1023
- G.exports = y;
1024
- y.sync = Mt;
1025
- function y(t, e, n) {
1026
- if (typeof e == "function" && (n = e, e = {}), !n) {
1027
- if (typeof Promise != "function")
1028
- throw new TypeError("callback not provided");
1029
- return new Promise(function(r, s) {
1030
- y(t, e || {}, function(o, i) {
1031
- o ? s(o) : r(i);
1032
- });
1033
- });
1034
- }
1035
- v(t, e || {}, function(r, s) {
1036
- r && (r.code === "EACCES" || e && e.ignoreErrors) && (r = null, s = false), n(r, s);
1037
- });
1038
- }
1039
- function Mt(t, e) {
1040
- try {
1041
- return v.sync(t, e || {});
1042
- } catch (n) {
1043
- if (e && e.ignoreErrors || n.code === "EACCES")
1044
- return false;
1045
- throw n;
1046
- }
1047
- }
1048
- });
1049
- var et2 = l2((Re, tt) => {
1050
- "use strict";
1051
- var g = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", Y = h2("path"), Bt = g ? ";" : ":", V = U2(), J = (t) => Object.assign(new Error(`not found: ${t}`), { code: "ENOENT" }), Q = (t, e) => {
1052
- let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
1053
- // windows always checks the cwd first
1054
- ...g ? [process.cwd()] : [],
1055
- ...(e.path || process.env.PATH || /* istanbul ignore next: very unusual */
1056
- "").split(n)
1057
- ], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
1058
- return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
1059
- pathEnv: r,
1060
- pathExt: o,
1061
- pathExtExe: s
1062
- };
1063
- }, Z = (t, e, n) => {
1064
- typeof e == "function" && (n = e, e = {}), e || (e = {});
1065
- let { pathEnv: r, pathExt: s, pathExtExe: o } = Q(t, e), i = [], a = (u) => new Promise((f, p) => {
1066
- if (u === r.length)
1067
- return e.all && i.length ? f(i) : p(J(t));
1068
- let d = r[u], w = /^".*"$/.test(d) ? d.slice(1, -1) : d, m = Y.join(w, t), b = !w && /^\.[\\\/]/.test(t) ? t.slice(0, 2) + m : m;
1069
- f(c(b, u, 0));
1070
- }), c = (u, f, p) => new Promise((d, w) => {
1071
- if (p === s.length)
1072
- return d(a(f + 1));
1073
- let m = s[p];
1074
- V(u + m, { pathExt: o }, (b, Ot) => {
1075
- if (!b && Ot)
1076
- if (e.all)
1077
- i.push(u + m);
1078
- else
1079
- return d(u + m);
1080
- return d(c(u, f, p + 1));
1081
- });
928
+ if (!resolvedOptions.dry) {
929
+ await executeCommand(resolvedOptions.packageManager.command, commandArgs, {
930
+ cwd: resolvedOptions.cwd,
931
+ silent: resolvedOptions.silent
1082
932
  });
1083
- return n ? a(0).then((u) => n(null, u), n) : a(0);
1084
- }, Xt = (t, e) => {
1085
- e = e || {};
1086
- let { pathEnv: n, pathExt: r, pathExtExe: s } = Q(t, e), o = [];
1087
- for (let i = 0; i < n.length; i++) {
1088
- let a = n[i], c = /^".*"$/.test(a) ? a.slice(1, -1) : a, u = Y.join(c, t), f = !c && /^\.[\\\/]/.test(t) ? t.slice(0, 2) + u : u;
1089
- for (let p = 0; p < r.length; p++) {
1090
- let d = f + r[p];
1091
- try {
1092
- if (V.sync(d, { pathExt: s }))
1093
- if (e.all)
1094
- o.push(d);
1095
- else
1096
- return d;
1097
- } catch {
1098
- }
1099
- }
1100
- }
1101
- if (e.all && o.length)
1102
- return o;
1103
- if (e.nothrow)
1104
- return null;
1105
- throw J(t);
1106
- };
1107
- tt.exports = Z;
1108
- Z.sync = Xt;
1109
- });
1110
- var rt2 = l2(($e, _) => {
1111
- "use strict";
1112
- var nt = (t = {}) => {
1113
- let e = t.env || process.env;
1114
- return (t.platform || process.platform) !== "win32" ? "PATH" : Object.keys(e).reverse().find((r) => r.toUpperCase() === "PATH") || "Path";
1115
- };
1116
- _.exports = nt;
1117
- _.exports.default = nt;
1118
- });
1119
- var ct2 = l2((Ne, it) => {
1120
- "use strict";
1121
- var st = h2("path"), Gt = et2(), Ut = rt2();
1122
- function ot(t, e) {
1123
- let n = t.options.env || process.env, r = process.cwd(), s = t.options.cwd != null, o = s && process.chdir !== void 0 && !process.chdir.disabled;
1124
- if (o)
1125
- try {
1126
- process.chdir(t.options.cwd);
1127
- } catch {
1128
- }
1129
- let i;
1130
- try {
1131
- i = Gt.sync(t.command, {
1132
- path: n[Ut({ env: n })],
1133
- pathExt: e ? st.delimiter : void 0
1134
- });
1135
- } catch {
1136
- } finally {
1137
- o && process.chdir(r);
1138
- }
1139
- return i && (i = st.resolve(s ? t.options.cwd : "", i)), i;
1140
- }
1141
- function Yt(t) {
1142
- return ot(t) || ot(t, true);
1143
933
  }
1144
- it.exports = Yt;
1145
- });
1146
- var ut2 = l2((qe, P) => {
1147
- "use strict";
1148
- var C = /([()\][%!^"`<>&|;, *?])/g;
1149
- function Vt(t) {
1150
- return t = t.replace(C, "^$1"), t;
1151
- }
1152
- function Jt(t, e) {
1153
- return t = `${t}`, t = t.replace(/(\\*)"/g, '$1$1\\"'), t = t.replace(/(\\*)$/, "$1$1"), t = `"${t}"`, t = t.replace(C, "^$1"), e && (t = t.replace(C, "^$1")), t;
1154
- }
1155
- P.exports.command = Vt;
1156
- P.exports.argument = Jt;
1157
- });
1158
- var lt2 = l2((Ie, at) => {
1159
- "use strict";
1160
- at.exports = /^#!(.*)/;
1161
- });
1162
- var dt2 = l2((Le, pt) => {
1163
- "use strict";
1164
- var Qt = lt2();
1165
- pt.exports = (t = "") => {
1166
- let e = t.match(Qt);
1167
- if (!e)
1168
- return null;
1169
- let [n, r] = e[0].replace(/#! ?/, "").split(" "), s = n.split("/").pop();
1170
- return s === "env" ? r : r ? `${s} ${r}` : s;
1171
- };
1172
- });
1173
- var ht2 = l2((je, ft) => {
1174
- "use strict";
1175
- var O = h2("fs"), Zt = dt2();
1176
- function te(t) {
1177
- let n = Buffer.alloc(150), r;
1178
- try {
1179
- r = O.openSync(t, "r"), O.readSync(r, n, 0, 150, 0), O.closeSync(r);
1180
- } catch {
1181
- }
1182
- return Zt(n.toString());
1183
- }
1184
- ft.exports = te;
1185
- });
1186
- var wt2 = l2((Fe, Et) => {
1187
- "use strict";
1188
- var ee = h2("path"), mt = ct2(), gt = ut2(), ne = ht2(), re = process.platform === "win32", se = /\.(?:com|exe)$/i, oe = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
1189
- function ie(t) {
1190
- t.file = mt(t);
1191
- let e = t.file && ne(t.file);
1192
- return e ? (t.args.unshift(t.file), t.command = e, mt(t)) : t.file;
1193
- }
1194
- function ce(t) {
1195
- if (!re)
1196
- return t;
1197
- let e = ie(t), n = !se.test(e);
1198
- if (t.options.forceShell || n) {
1199
- let r = oe.test(e);
1200
- t.command = ee.normalize(t.command), t.command = gt.command(t.command), t.args = t.args.map((o) => gt.argument(o, r));
1201
- let s = [t.command].concat(t.args).join(" ");
1202
- t.args = ["/d", "/s", "/c", `"${s}"`], t.command = process.env.comspec || "cmd.exe", t.options.windowsVerbatimArguments = true;
1203
- }
1204
- return t;
1205
- }
1206
- function ue(t, e, n) {
1207
- e && !Array.isArray(e) && (n = e, e = null), e = e ? e.slice(0) : [], n = Object.assign({}, n);
1208
- let r = {
1209
- command: t,
1210
- args: e,
1211
- options: n,
1212
- file: void 0,
1213
- original: {
1214
- command: t,
1215
- args: e
1216
- }
1217
- };
1218
- return n.shell ? r : ce(r);
1219
- }
1220
- Et.exports = ue;
1221
- });
1222
- var bt2 = l2((ze, vt) => {
1223
- "use strict";
1224
- var S = process.platform === "win32";
1225
- function k(t, e) {
1226
- return Object.assign(new Error(`${e} ${t.command} ENOENT`), {
1227
- code: "ENOENT",
1228
- errno: "ENOENT",
1229
- syscall: `${e} ${t.command}`,
1230
- path: t.command,
1231
- spawnargs: t.args
1232
- });
1233
- }
1234
- function ae(t, e) {
1235
- if (!S)
1236
- return;
1237
- let n = t.emit;
1238
- t.emit = function(r, s) {
1239
- if (r === "exit") {
1240
- let o = xt(s, e, "spawn");
1241
- if (o)
1242
- return n.call(t, "error", o);
1243
- }
1244
- return n.apply(t, arguments);
1245
- };
1246
- }
1247
- function xt(t, e) {
1248
- return S && t === 1 && !e.file ? k(e.original, "spawn") : null;
1249
- }
1250
- function le(t, e) {
1251
- return S && t === 1 && !e.file ? k(e.original, "spawnSync") : null;
1252
- }
1253
- vt.exports = {
1254
- hookChildProcess: ae,
1255
- verifyENOENT: xt,
1256
- verifyENOENTSync: le,
1257
- notFoundError: k
1258
- };
1259
- });
1260
- var Ct2 = l2((He, E) => {
1261
- "use strict";
1262
- var yt = h2("child_process"), T = wt2(), A = bt2();
1263
- function _t(t, e, n) {
1264
- let r = T(t, e, n), s = yt.spawn(r.command, r.args, r.options);
1265
- return A.hookChildProcess(s, r), s;
1266
- }
1267
- function pe(t, e, n) {
1268
- let r = T(t, e, n), s = yt.spawnSync(r.command, r.args, r.options);
1269
- return s.error = s.error || A.verifyENOENTSync(s.status, r), s;
1270
- }
1271
- E.exports = _t;
1272
- E.exports.spawn = _t;
1273
- E.exports.sync = pe;
1274
- E.exports._parse = T;
1275
- E.exports._enoent = A;
1276
- });
1277
- var Lt2 = /^path$/i;
1278
- var q2 = { key: "PATH", value: "" };
1279
- function jt2(t) {
1280
- for (let e in t) {
1281
- if (!Object.prototype.hasOwnProperty.call(t, e) || !Lt2.test(e))
1282
- continue;
1283
- let n = t[e];
1284
- return n ? { key: e, value: n } : q2;
1285
- }
1286
- return q2;
1287
- }
1288
- function Ft2(t, e) {
1289
- let n = e.value.split(N2), r = t, s;
1290
- do
1291
- n.push(qt2(r, "node_modules", ".bin")), s = r, r = It2(r);
1292
- while (r !== s);
1293
- return { key: e.key, value: n.join(N2) };
1294
- }
1295
- function I2(t, e) {
1296
- let n = {
1297
- ...process.env,
1298
- ...e
1299
- }, r = Ft2(t, jt2(n));
1300
- return n[r.key] = r.value, n;
1301
- }
1302
- var L2 = (t) => {
1303
- let e = t.length, n = new zt2(), r = () => {
1304
- --e === 0 && n.emit("end");
1305
- };
1306
- for (let s of t)
1307
- s.pipe(n, { end: false }), s.on("end", r);
1308
- return n;
1309
- };
1310
- var Pt2 = Nt2(Ct2(), 1);
1311
- var x2 = class extends Error {
1312
- result;
1313
- output;
1314
- get exitCode() {
1315
- if (this.result.exitCode !== null)
1316
- return this.result.exitCode;
1317
- }
1318
- constructor(e, n) {
1319
- super(`Process exited with non-zero status (${e.exitCode})`), this.result = e, this.output = n;
1320
- }
1321
- };
1322
- var ge2 = {
1323
- timeout: void 0,
1324
- persist: false
1325
- };
1326
- var Ee2 = {
1327
- windowsHide: true
1328
- };
1329
- function we2(t, e) {
1330
934
  return {
1331
- command: fe2(t),
1332
- args: e ?? []
1333
- };
1334
- }
1335
- function xe2(t) {
1336
- let e = new AbortController();
1337
- for (let n of t) {
1338
- if (n.aborted)
1339
- return e.abort(), n;
1340
- let r = () => {
1341
- e.abort(n.reason);
1342
- };
1343
- n.addEventListener("abort", r, {
1344
- signal: e.signal
1345
- });
1346
- }
1347
- return e.signal;
1348
- }
1349
- var R2 = class {
1350
- _process;
1351
- _aborted = false;
1352
- _options;
1353
- _command;
1354
- _args;
1355
- _resolveClose;
1356
- _processClosed;
1357
- _thrownError;
1358
- get process() {
1359
- return this._process;
1360
- }
1361
- get pid() {
1362
- return this._process?.pid;
1363
- }
1364
- get exitCode() {
1365
- if (this._process && this._process.exitCode !== null)
1366
- return this._process.exitCode;
1367
- }
1368
- constructor(e, n, r) {
1369
- this._options = {
1370
- ...ge2,
1371
- ...r
1372
- }, this._command = e, this._args = n ?? [], this._processClosed = new Promise((s) => {
1373
- this._resolveClose = s;
1374
- });
1375
- }
1376
- kill(e) {
1377
- return this._process?.kill(e) === true;
1378
- }
1379
- get aborted() {
1380
- return this._aborted;
1381
- }
1382
- get killed() {
1383
- return this._process?.killed === true;
1384
- }
1385
- pipe(e, n, r) {
1386
- return be2(e, n, {
1387
- ...r,
1388
- stdin: this
1389
- });
1390
- }
1391
- async *[Symbol.asyncIterator]() {
1392
- let e = this._process;
1393
- if (!e)
1394
- return;
1395
- let n = [];
1396
- this._streamErr && n.push(this._streamErr), this._streamOut && n.push(this._streamOut);
1397
- let r = L2(n), s = me2.createInterface({
1398
- input: r
1399
- });
1400
- for await (let o of s)
1401
- yield o.toString();
1402
- if (await this._processClosed, e.removeAllListeners(), this._thrownError)
1403
- throw this._thrownError;
1404
- if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0)
1405
- throw new x2(this);
1406
- }
1407
- async _waitForOutput() {
1408
- let e = this._process;
1409
- if (!e)
1410
- throw new Error("No process was started");
1411
- let n = "", r = "";
1412
- if (this._streamOut)
1413
- for await (let o of this._streamOut)
1414
- r += o.toString();
1415
- if (this._streamErr)
1416
- for await (let o of this._streamErr)
1417
- n += o.toString();
1418
- if (await this._processClosed, this._options?.stdin && await this._options.stdin, e.removeAllListeners(), this._thrownError)
1419
- throw this._thrownError;
1420
- let s = {
1421
- stderr: n,
1422
- stdout: r,
1423
- exitCode: this.exitCode
1424
- };
1425
- if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0)
1426
- throw new x2(this, s);
1427
- return s;
1428
- }
1429
- then(e, n) {
1430
- return this._waitForOutput().then(e, n);
1431
- }
1432
- _streamOut;
1433
- _streamErr;
1434
- spawn() {
1435
- let e = he2(), n = this._options, r = {
1436
- ...Ee2,
1437
- ...n.nodeOptions
1438
- }, s = [];
1439
- this._resetState(), n.timeout !== void 0 && s.push(AbortSignal.timeout(n.timeout)), n.signal !== void 0 && s.push(n.signal), n.persist === true && (r.detached = true), s.length > 0 && (r.signal = xe2(s)), r.env = I2(e, r.env);
1440
- let { command: o, args: i } = we2(this._command, this._args), a = (0, Pt2._parse)(o, i, r), c = de2(
1441
- a.command,
1442
- a.args,
1443
- a.options
1444
- );
1445
- if (c.stderr && (this._streamErr = c.stderr), c.stdout && (this._streamOut = c.stdout), this._process = c, c.once("error", this._onError), c.once("close", this._onClose), n.stdin !== void 0 && c.stdin && n.stdin.process) {
1446
- let { stdout: u } = n.stdin.process;
1447
- u && u.pipe(c.stdin);
935
+ exec: {
936
+ command: resolvedOptions.packageManager.command,
937
+ args: commandArgs
1448
938
  }
1449
- }
1450
- _resetState() {
1451
- this._aborted = false, this._processClosed = new Promise((e) => {
1452
- this._resolveClose = e;
1453
- }), this._thrownError = void 0;
1454
- }
1455
- _onError = (e) => {
1456
- if (e.name === "AbortError" && (!(e.cause instanceof Error) || e.cause.name !== "TimeoutError")) {
1457
- this._aborted = true;
1458
- return;
1459
- }
1460
- this._thrownError = e;
1461
- };
1462
- _onClose = () => {
1463
- this._resolveClose && this._resolveClose();
1464
939
  };
1465
- };
1466
- var ve2 = (t, e, n) => {
1467
- let r = new R2(t, e, n);
1468
- return r.spawn(), r;
1469
- };
1470
- var be2 = ve2;
940
+ }
1471
941
 
1472
942
  // src/utils/cli/postinstall/pnpm.ts
1473
943
  async function pnpmIgnored(root) {
1474
- const pnpmVersion = (await ve2(`pnpm`, ["-v"], { nodeOptions: { cwd: root } })).stdout.trim();
944
+ const pnpmVersion = (await ve(`pnpm`, ["-v"], { nodeOptions: { cwd: root } })).stdout.trim();
1475
945
  const [major] = pnpmVersion.split(".").map(Number);
1476
946
  if (major && major >= 10) {
1477
- const detect2 = (await ve2("pnpm", ["ignored-builds"], { nodeOptions: { cwd: root } })).stdout;
947
+ const detect2 = (await ve("pnpm", ["ignored-builds"], { nodeOptions: { cwd: root } })).stdout;
1478
948
  if (detect2.startsWith("Automatically ignored builds during installation:\n None")) {
1479
949
  return;
1480
950
  }
@@ -1498,7 +968,7 @@ packageExtensions:
1498
968
  "@vue/compiler-sfc": "*"
1499
969
  `;
1500
970
  async function yarnFile(root) {
1501
- const pnpmVersion = (await ve2("yarn", ["-v"], { nodeOptions: { cwd: root } })).stdout.trim();
971
+ const pnpmVersion = (await ve("yarn", ["-v"], { nodeOptions: { cwd: root } })).stdout.trim();
1502
972
  const [major] = pnpmVersion.split(".").map(Number);
1503
973
  if (major && major >= 2) {
1504
974
  appendFileSync(resolve2(root, ".yarnrc.yml"), templateToAppend);
@@ -1510,7 +980,7 @@ async function yarn(root) {
1510
980
 
1511
981
  // src/utils/installDependencies.ts
1512
982
  var userAgent = process.env.npm_config_user_agent ?? "";
1513
- var packageManager = /bun/.test(userAgent) ? "bun" : "pnpm";
983
+ var packageManager = /bun/.test(userAgent) ? "bun" : /pnpm/.test(userAgent) ? "pnpm" : "npm";
1514
984
  async function installDependencies2(root = process.cwd(), manager = packageManager) {
1515
985
  if (manager === "yarn") {
1516
986
  await yarn(root);
@@ -1536,7 +1006,7 @@ var promptOptions = {
1536
1006
  throw new Error(red("\u2716") + " Operation cancelled");
1537
1007
  }
1538
1008
  };
1539
- var initPrompts = async (context) => {
1009
+ async function initPrompts(context) {
1540
1010
  if (context.usePreset) {
1541
1011
  context = {
1542
1012
  ...context,
@@ -1628,17 +1098,6 @@ var initPrompts = async (context) => {
1628
1098
  inactive: "No",
1629
1099
  initial: "Yes"
1630
1100
  },
1631
- {
1632
- name: "useNuxtV4Compat",
1633
- type: (_, { usePreset }) => {
1634
- const p = context.usePreset ?? usePreset;
1635
- return p.startsWith("nuxt-") ? "toggle" : null;
1636
- },
1637
- message: "Use Nuxt v4 compatibility?",
1638
- active: "Yes",
1639
- inactive: "No",
1640
- initial: "Yes"
1641
- },
1642
1101
  {
1643
1102
  name: "useNuxtModule",
1644
1103
  type: (_, { usePreset }) => {
@@ -1680,10 +1139,29 @@ var initPrompts = async (context) => {
1680
1139
  ...context,
1681
1140
  ...answers
1682
1141
  };
1683
- };
1142
+ }
1684
1143
 
1685
1144
  // src/index.ts
1686
1145
  import { red as red2 } from "kolorist";
1146
+
1147
+ // src/utils/banner.ts
1148
+ import { blue } from "kolorist";
1149
+ function supportsColor() {
1150
+ const testText = "test";
1151
+ const coloredText = blue(testText);
1152
+ return coloredText !== testText;
1153
+ }
1154
+ function createBanner() {
1155
+ if (!supportsColor()) {
1156
+ return createPlainBanner();
1157
+ }
1158
+ return "\x1B[38;2;22;151;246mV\x1B[39m\x1B[38;2;22;147;242mu\x1B[39m\x1B[38;2;22;144;238me\x1B[39m\x1B[38;2;22;140;234mt\x1B[39m\x1B[38;2;23;136;229mi\x1B[39m\x1B[38;2;23;133;225mf\x1B[39m\x1B[38;2;23;129;221my\x1B[39m\x1B[38;2;23;125;217m.\x1B[39m\x1B[38;2;23;121;213mj\x1B[39m\x1B[38;2;23;118;209ms\x1B[39m \x1B[38;2;24;114;204m-\x1B[39m \x1B[38;2;24;110;200mM\x1B[39m\x1B[38;2;24;107;196ma\x1B[39m\x1B[38;2;24;103;192mt\x1B[39m\x1B[38;2;32;110;197me\x1B[39m\x1B[38;2;39;118;202mr\x1B[39m\x1B[38;2;47;125;207mi\x1B[39m\x1B[38;2;54;132;211ma\x1B[39m\x1B[38;2;62;140;216ml\x1B[39m \x1B[38;2;70;147;221mC\x1B[39m\x1B[38;2;77;154;226mo\x1B[39m\x1B[38;2;85;161;231mm\x1B[39m\x1B[38;2;93;169;236mp\x1B[39m\x1B[38;2;100;176;240mo\x1B[39m\x1B[38;2;108;183;245mn\x1B[39m\x1B[38;2;115;191;250me\x1B[39m\x1B[38;2;123;198;255mn\x1B[39m\x1B[38;2;126;199;255mt\x1B[39m \x1B[38;2;129;201;255mF\x1B[39m\x1B[38;2;133;202;255mr\x1B[39m\x1B[38;2;136;204;255ma\x1B[39m\x1B[38;2;139;205;255mm\x1B[39m\x1B[38;2;142;207;255me\x1B[39m\x1B[38;2;145;208;255mw\x1B[39m\x1B[38;2;149;210;255mo\x1B[39m\x1B[38;2;152;211;255mr\x1B[39m\x1B[38;2;155;212;255mk\x1B[39m \x1B[38;2;158;214;255mf\x1B[39m\x1B[38;2;161;215;255mo\x1B[39m\x1B[38;2;164;217;255mr\x1B[39m \x1B[38;2;168;218;255mV\x1B[39m\x1B[38;2;171;220;255mu\x1B[39m\x1B[38;2;174;221;255me\x1B[39m";
1159
+ }
1160
+ function createPlainBanner() {
1161
+ return "Vuetify.js - Material Component Framework for Vue";
1162
+ }
1163
+
1164
+ // src/index.ts
1687
1165
  import minimist from "minimist";
1688
1166
 
1689
1167
  // src/utils/renderTemplate.ts
@@ -1714,7 +1192,7 @@ function mergePkg(source, destination) {
1714
1192
  const mergedPkg = deepMerge(target, src);
1715
1193
  const keysToSort = ["devDependencies", "dependencies"];
1716
1194
  for (const k of keysToSort) {
1717
- mergedPkg[k] = Object.keys(mergedPkg[k]).sort().reduce((a, c) => (a[c] = mergedPkg[k][c], a), {});
1195
+ mergedPkg[k] = Object.keys(mergedPkg[k]).toSorted().reduce((a, c) => (a[c] = mergedPkg[k][c], a), {});
1718
1196
  }
1719
1197
  writeFileSync(destination, JSON.stringify(mergedPkg, null, 2) + "\n");
1720
1198
  }
@@ -1754,13 +1232,13 @@ import path from "node:path";
1754
1232
  import { spawnSync } from "node:child_process";
1755
1233
  import fs from "node:fs";
1756
1234
 
1757
- // node_modules/.pnpm/package-manager-detector@1.2.0/node_modules/package-manager-detector/dist/commands.mjs
1758
- function npmRun(agent) {
1235
+ // node_modules/.pnpm/package-manager-detector@1.3.0/node_modules/package-manager-detector/dist/commands.mjs
1236
+ function dashDashArg(agent, agentCommand) {
1759
1237
  return (args) => {
1760
1238
  if (args.length > 1) {
1761
- return [agent, "run", args[0], "--", ...args.slice(1)];
1239
+ return [agent, agentCommand, args[0], "--", ...args.slice(1)];
1762
1240
  } else {
1763
- return [agent, "run", args[0]];
1241
+ return [agent, agentCommand, args[0]];
1764
1242
  }
1765
1243
  };
1766
1244
  }
@@ -1771,7 +1249,7 @@ function denoExecute() {
1771
1249
  }
1772
1250
  var npm = {
1773
1251
  "agent": ["npm", 0],
1774
- "run": npmRun("npm"),
1252
+ "run": dashDashArg("npm", "run"),
1775
1253
  "install": ["npm", "i", 0],
1776
1254
  "frozen": ["npm", "ci", 0],
1777
1255
  "global": ["npm", "i", "-g", 0],
@@ -1793,7 +1271,7 @@ var yarn2 = {
1793
1271
  "upgrade": ["yarn", "upgrade", 0],
1794
1272
  "upgrade-interactive": ["yarn", "upgrade-interactive", 0],
1795
1273
  "execute": ["npx", 0],
1796
- "execute-local": ["yarn", "exec", 0],
1274
+ "execute-local": dashDashArg("yarn", "exec"),
1797
1275
  "uninstall": ["yarn", "remove", 0],
1798
1276
  "global_uninstall": ["yarn", "global", "remove", 0]
1799
1277
  };
@@ -1858,7 +1336,7 @@ var COMMANDS = {
1858
1336
  // pnpm v6.x or below
1859
1337
  "pnpm@6": {
1860
1338
  ...pnpm2,
1861
- run: npmRun("pnpm")
1339
+ run: dashDashArg("pnpm", "run")
1862
1340
  },
1863
1341
  "bun": bun,
1864
1342
  "deno": deno
@@ -1907,7 +1385,7 @@ function addPackageObject(key, entry, pkg, sort = true) {
1907
1385
  for (const [name, value] of entry) {
1908
1386
  entries.push([name, value]);
1909
1387
  }
1910
- for (const [k, v] of entries.sort(([a], [b]) => a.localeCompare(b))) {
1388
+ for (const [k, v] of entries.toSorted(([a], [b]) => a.localeCompare(b))) {
1911
1389
  pkg[key][k] = v;
1912
1390
  }
1913
1391
  }
@@ -1936,25 +1414,25 @@ function editFile(file, callback, destination) {
1936
1414
  const content = fs.readFileSync(file, "utf8");
1937
1415
  fs.writeFileSync(destination ?? file, callback(content), "utf8");
1938
1416
  }
1939
- function getPaths(rootPath, templateDir, v4) {
1940
- return v4 ? [path.join(rootPath, "app"), templateDir] : [rootPath, templateDir];
1417
+ function getPaths(rootPath, templateDir) {
1418
+ return [path.join(rootPath, "app"), templateDir];
1941
1419
  }
1942
1420
 
1943
1421
  // src/utils/nuxt/versions.ts
1944
1422
  var versions = {
1945
- "vuetify": "^3.8.1",
1946
- "typescript": "^5.6.3",
1947
- "vue-tsc": "^2.1.6",
1948
- "sass-embedded": "^1.86.3",
1423
+ "vuetify": "^3.9.1",
1424
+ "typescript": "^5.8.3",
1425
+ "vue-tsc": "^3.0.1",
1426
+ "sass-embedded": "^1.89.2",
1949
1427
  "@vuetify/loader-shared": "^2.1.0",
1950
1428
  "vite-plugin-vuetify": "^2.1.1",
1951
- "vuetify-nuxt-module": "^0.18.6",
1429
+ "vuetify-nuxt-module": "^0.18.7",
1952
1430
  "upath": "^2.0.1",
1953
1431
  "@mdi/font": "^7.4.47",
1954
- "@nuxt/fonts": "^0.11.1"
1432
+ "@nuxt/fonts": "^0.11.4"
1955
1433
  };
1956
1434
 
1957
- // node_modules/.pnpm/package-manager-detector@1.2.0/node_modules/package-manager-detector/dist/constants.mjs
1435
+ // node_modules/.pnpm/package-manager-detector@1.3.0/node_modules/package-manager-detector/dist/constants.mjs
1958
1436
  var AGENTS = [
1959
1437
  "npm",
1960
1438
  "yarn",
@@ -1990,7 +1468,7 @@ var INSTALL_METADATA = {
1990
1468
  "bun.lockb": "bun"
1991
1469
  };
1992
1470
 
1993
- // node_modules/.pnpm/package-manager-detector@1.2.0/node_modules/package-manager-detector/dist/detect.mjs
1471
+ // node_modules/.pnpm/package-manager-detector@1.3.0/node_modules/package-manager-detector/dist/detect.mjs
1994
1472
  import fs2 from "node:fs/promises";
1995
1473
  import path2 from "node:path";
1996
1474
  import process3 from "node:process";
@@ -2014,7 +1492,18 @@ async function parsePackageJson(filepath, onUnknown) {
2014
1492
  return !filepath || !pathExists(filepath, "file") ? null : await handlePackageManager(filepath, onUnknown);
2015
1493
  }
2016
1494
  async function detect(options = {}) {
2017
- const { cwd: cwd2, strategies = ["lockfile", "packageManager-field", "devEngines-field"], onUnknown } = options;
1495
+ const {
1496
+ cwd: cwd2,
1497
+ strategies = ["lockfile", "packageManager-field", "devEngines-field"],
1498
+ onUnknown
1499
+ } = options;
1500
+ let stopDir;
1501
+ if (typeof options.stopDir === "string") {
1502
+ const resolved = path2.resolve(options.stopDir);
1503
+ stopDir = (dir) => dir === resolved;
1504
+ } else {
1505
+ stopDir = options.stopDir;
1506
+ }
2018
1507
  for (const directory of lookup(cwd2)) {
2019
1508
  for (const strategy of strategies) {
2020
1509
  switch (strategy) {
@@ -2051,6 +1540,8 @@ async function detect(options = {}) {
2051
1540
  }
2052
1541
  }
2053
1542
  }
1543
+ if (stopDir?.(directory))
1544
+ break;
2054
1545
  }
2055
1546
  return null;
2056
1547
  }
@@ -2107,13 +1598,12 @@ async function renderNuxtTemplate(ctx) {
2107
1598
  cwd: cwd2,
2108
1599
  projectName,
2109
1600
  projectRoot,
2110
- useNuxtV4Compat,
2111
1601
  nuxtPreset
2112
1602
  } = ctx;
2113
1603
  const pkgInfo = detectPkgInfo();
2114
1604
  const pkgManager = pkgInfo ? pkgInfo.name : "npm";
2115
1605
  const isYarn1 = pkgManager === "yarn" && pkgInfo?.version.startsWith("1.");
2116
- const customCommand = useNuxtV4Compat ? `npx nuxi@latest init -t v4-compat ${projectName}` : `npm exec nuxi init ${projectName}`;
1606
+ const customCommand = `npm exec nuxi init ${projectName}`;
2117
1607
  const fullCustomCommand = customCommand.replace("@latest", () => isYarn1 ? "" : "@latest").replace(/^npm exec/, () => {
2118
1608
  if (pkgManager === "pnpm") {
2119
1609
  return "pnpm dlx";
@@ -2157,8 +1647,7 @@ function configurePackageJson({
2157
1647
  ["typecheck", "nuxt typecheck"]
2158
1648
  ];
2159
1649
  if (nuxtPreset !== "nuxt-default") {
2160
- scripts.push(["lint", "eslint ."]);
2161
- scripts.push(["lint:fix", "eslint . --fix"]);
1650
+ scripts.push(["lint", "eslint ."], ["lint:fix", "eslint . --fix"]);
2162
1651
  }
2163
1652
  const dependencies = [
2164
1653
  ["vuetify", versions.vuetify]
@@ -2176,9 +1665,7 @@ function configurePackageJson({
2176
1665
  if (useNuxtModule) {
2177
1666
  devDependencies.push(["vuetify-nuxt-module", versions["vuetify-nuxt-module"]]);
2178
1667
  } else {
2179
- devDependencies.push(["upath", versions["upath"]]);
2180
- devDependencies.push(["@vuetify/loader-shared", versions["@vuetify/loader-shared"]]);
2181
- devDependencies.push(["vite-plugin-vuetify", versions["vite-plugin-vuetify"]]);
1668
+ devDependencies.push(["upath", versions["upath"]], ["@vuetify/loader-shared", versions["@vuetify/loader-shared"]], ["vite-plugin-vuetify", versions["vite-plugin-vuetify"]]);
2182
1669
  }
2183
1670
  if (devDependencies.length > 0) {
2184
1671
  addPackageObject("devDependencies", devDependencies, pkg);
@@ -2201,8 +1688,7 @@ function configureVuetify(ctx, nuxtConfig) {
2201
1688
  };
2202
1689
  config.css = [];
2203
1690
  if (!ctx.useNuxtModule) {
2204
- config.css.push("@mdi/font/css/materialdesignicons.css");
2205
- config.css.push("vuetify/styles");
1691
+ config.css.push("@mdi/font/css/materialdesignicons.css", "vuetify/styles");
2206
1692
  }
2207
1693
  addNuxtModule(nuxtConfig, "@nuxt/fonts");
2208
1694
  return config;
@@ -2210,7 +1696,6 @@ function configureVuetify(ctx, nuxtConfig) {
2210
1696
  function copyResources(ctx, rootPath, templateDir) {
2211
1697
  const {
2212
1698
  useNuxtSSR,
2213
- useNuxtV4Compat,
2214
1699
  nuxtPreset,
2215
1700
  useNuxtModule,
2216
1701
  templateRoot
@@ -2239,14 +1724,14 @@ function copyResources(ctx, rootPath, templateDir) {
2239
1724
  if (useNuxtModule) {
2240
1725
  fs3.copyFileSync(
2241
1726
  path3.join(templateDir, "vuetify.config.ts"),
2242
- path3.join(rootPath, useNuxtV4Compat ? "../vuetify.config.ts" : "vuetify.config.ts")
1727
+ path3.join(rootPath, "../vuetify.config.ts")
2243
1728
  );
2244
1729
  fs3.copyFileSync(
2245
1730
  path3.join(templatePluginsDir, "vuetify-nuxt.ts"),
2246
1731
  path3.join(pluginsDir, "vuetify.ts")
2247
1732
  );
2248
1733
  } else {
2249
- const modulesDir = path3.join(rootPath, useNuxtV4Compat ? "../modules" : "modules");
1734
+ const modulesDir = path3.join(rootPath, "../modules");
2250
1735
  const templateModulesDir = path3.join(templateDir, "modules");
2251
1736
  fs3.mkdirSync(modulesDir);
2252
1737
  fs3.copyFileSync(
@@ -2326,11 +1811,10 @@ function prepareProject(ctx) {
2326
1811
  const {
2327
1812
  projectRoot,
2328
1813
  templatePath,
2329
- useNuxtV4Compat,
2330
1814
  useNuxtModule
2331
1815
  } = ctx;
2332
- const [rootPath, templateDir] = getPaths(projectRoot, templatePath, useNuxtV4Compat);
2333
- const nuxtConfigFile = path3.join(rootPath, useNuxtV4Compat ? "../nuxt.config.ts" : "nuxt.config.ts");
1816
+ const [rootPath, templateDir] = getPaths(projectRoot, templatePath);
1817
+ const nuxtConfigFile = path3.join(rootPath, "../nuxt.config.ts");
2334
1818
  const nuxtConfig = parseModule(fs3.readFileSync(nuxtConfigFile, "utf8"));
2335
1819
  if (useNuxtModule) {
2336
1820
  prepareNuxtModule(ctx, nuxtConfig);
@@ -2382,7 +1866,7 @@ async function run() {
2382
1866
  if (argv.preset && !validPresets.includes(argv.preset)) {
2383
1867
  throw new Error(`'${argv.preset}' is not a valid preset. Valid presets are: ${validPresets.join(", ")}.`);
2384
1868
  }
2385
- const banner = "\x1B[38;2;22;151;246mV\x1B[39m\x1B[38;2;22;147;242mu\x1B[39m\x1B[38;2;22;144;238me\x1B[39m\x1B[38;2;22;140;234mt\x1B[39m\x1B[38;2;23;136;229mi\x1B[39m\x1B[38;2;23;133;225mf\x1B[39m\x1B[38;2;23;129;221my\x1B[39m\x1B[38;2;23;125;217m.\x1B[39m\x1B[38;2;23;121;213mj\x1B[39m\x1B[38;2;23;118;209ms\x1B[39m \x1B[38;2;24;114;204m-\x1B[39m \x1B[38;2;24;110;200mM\x1B[39m\x1B[38;2;24;107;196ma\x1B[39m\x1B[38;2;24;103;192mt\x1B[39m\x1B[38;2;32;110;197me\x1B[39m\x1B[38;2;39;118;202mr\x1B[39m\x1B[38;2;47;125;207mi\x1B[39m\x1B[38;2;54;132;211ma\x1B[39m\x1B[38;2;62;140;216ml\x1B[39m \x1B[38;2;70;147;221mC\x1B[39m\x1B[38;2;77;154;226mo\x1B[39m\x1B[38;2;85;161;231mm\x1B[39m\x1B[38;2;93;169;236mp\x1B[39m\x1B[38;2;100;176;240mo\x1B[39m\x1B[38;2;108;183;245mn\x1B[39m\x1B[38;2;115;191;250me\x1B[39m\x1B[38;2;123;198;255mn\x1B[39m\x1B[38;2;126;199;255mt\x1B[39m \x1B[38;2;129;201;255mF\x1B[39m\x1B[38;2;133;202;255mr\x1B[39m\x1B[38;2;136;204;255ma\x1B[39m\x1B[38;2;139;205;255mm\x1B[39m\x1B[38;2;142;207;255me\x1B[39m\x1B[38;2;145;208;255mw\x1B[39m\x1B[38;2;149;210;255mo\x1B[39m\x1B[38;2;152;211;255mr\x1B[39m\x1B[38;2;155;212;255mk\x1B[39m \x1B[38;2;158;214;255mf\x1B[39m\x1B[38;2;161;215;255mo\x1B[39m\x1B[38;2;164;217;255mr\x1B[39m \x1B[38;2;168;218;255mV\x1B[39m\x1B[38;2;171;220;255mu\x1B[39m\x1B[38;2;174;221;255me\x1B[39m";
1869
+ const banner = createBanner();
2386
1870
  console.log(`
2387
1871
  ${banner}
2388
1872
  `);
@@ -2404,7 +1888,6 @@ ${banner}
2404
1888
  usePackageManager,
2405
1889
  installDependencies: installDeps,
2406
1890
  usePreset,
2407
- useNuxtV4Compat,
2408
1891
  useNuxtModule,
2409
1892
  useNuxtSSR,
2410
1893
  useNuxtSSRClientHints
@@ -2424,7 +1907,6 @@ ${banner}
2424
1907
  templateRoot,
2425
1908
  templatePath,
2426
1909
  nuxtPreset: preset,
2427
- useNuxtV4Compat,
2428
1910
  useNuxtModule,
2429
1911
  useNuxtSSR,
2430
1912
  useNuxtSSRClientHints