@vuetify/cli 0.0.10 → 0.0.12-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { i as __require, n as require_node_fetch_native_DhEqb06g, r as __commonJS, t as require_node } from "./node-CcjDTqtN.mjs";
2
+ import { i as __require, n as require_node_fetch_native_DhEqb06g, r as __commonJSMin, t as require_node } from "./node-CLMJD8D0.mjs";
3
3
 
4
4
  //#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
5
- var require_multipart_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs": ((exports) => {
5
+ var require_multipart_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
6
6
  var y = Object.defineProperty;
7
7
  var c = (R, o) => y(R, "name", {
8
8
  value: o,
@@ -167,7 +167,7 @@ var require_multipart_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/
167
167
  return n.end(), b;
168
168
  }
169
169
  c(toFormData, "toFormData"), exports.toFormData = toFormData;
170
- }) });
170
+ }));
171
171
 
172
172
  //#endregion
173
173
  export default require_multipart_parser();
@@ -8,9 +8,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
8
  var __getOwnPropNames = Object.getOwnPropertyNames;
9
9
  var __getProtoOf = Object.getPrototypeOf;
10
10
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __commonJS = (cb, mod) => function() {
12
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
- };
11
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
14
12
  var __copyProps = (to, from, except, desc) => {
15
13
  if (from && typeof from === "object" || typeof from === "function") {
16
14
  for (var keys = __getOwnPropNames(from), i$1 = 0, n = keys.length, key; i$1 < n; i$1++) {
@@ -34,7 +32,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
34
32
 
35
33
  //#endregion
36
34
  //#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs
37
- var require_node_fetch_native_DhEqb06g = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs": ((exports) => {
35
+ var require_node_fetch_native_DhEqb06g = /* @__PURE__ */ __commonJSMin(((exports) => {
38
36
  var l = Object.defineProperty;
39
37
  var o = (e$2, t$2) => l(e$2, "name", {
40
38
  value: t$2,
@@ -45,11 +43,11 @@ var require_node_fetch_native_DhEqb06g = /* @__PURE__ */ __commonJS({ "../../nod
45
43
  return e$2 && e$2.__esModule && Object.prototype.hasOwnProperty.call(e$2, "default") ? e$2.default : e$2;
46
44
  }
47
45
  o(getDefaultExportFromCjs, "getDefaultExportFromCjs"), exports.commonjsGlobal = commonjsGlobal, exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
48
- }) });
46
+ }));
49
47
 
50
48
  //#endregion
51
49
  //#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs
52
- var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs": ((exports) => {
50
+ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
53
51
  var ys = Object.defineProperty;
54
52
  var Po = (c) => {
55
53
  throw TypeError(c);
@@ -2961,7 +2959,7 @@ Content-Type: ${R.type || "application/octet-stream"}\r
2961
2959
  for (const [R, w] of b) g.append(R, w);
2962
2960
  return g;
2963
2961
  }
2964
- const { toFormData: d } = await import("./multipart-parser-CbtVsPSq.mjs").then(__toDynamicImportESM(1));
2962
+ const { toFormData: d } = await import("./multipart-parser-BDbtnXsM.mjs").then(__toDynamicImportESM(1));
2965
2963
  return d(this.body, l$1);
2966
2964
  }
2967
2965
  async blob() {
@@ -4001,7 +3999,7 @@ Content-Type: ${R.type || "application/octet-stream"}\r
4001
3999
  !globalThis.process?.versions?.node && !globalThis.process?.env?.DISABLE_NODE_FETCH_NATIVE_WARN && console.warn("[node-fetch-native] Node.js compatible build of `node-fetch-native` is being used in a non-Node.js environment. Please make sure you are using proper export conditions or report this issue to https://github.com/unjs/node-fetch-native. You can set `process.env.DISABLE_NODE_FETCH_NATIVE_WARN` to disable this warning.");
4002
4000
  }
4003
4001
  u(s, "s"), e(s, "checkNodeEnvironment"), exports.AbortController = AbortController$1, exports.AbortError = AbortError, exports.Blob = Blob, exports.FetchError = FetchError, exports.File = File, exports.FormData = FormData, exports.Headers = Headers, exports.Request = Request, exports.Response = Response, exports.blobFrom = blobFrom, exports.blobFromSync = blobFromSync, exports.default = fetch, exports.fetch = fetch, exports.fileFrom = fileFrom, exports.fileFromSync = fileFromSync, exports.isRedirect = isRedirect;
4004
- }) });
4002
+ }));
4005
4003
 
4006
4004
  //#endregion
4007
- export { __toESM as a, __require as i, require_node_fetch_native_DhEqb06g as n, __commonJS as r, require_node as t };
4005
+ export { __toESM as a, __require as i, require_node_fetch_native_DhEqb06g as n, __commonJSMin as r, require_node as t };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import P, { stdin, stdout } from "node:process";
2
+ import g$1, { stdin, stdout } from "node:process";
3
3
  import { WriteStream } from "node:tty";
4
- import c from "node:readline";
4
+ import f from "node:readline";
5
5
 
6
6
  //#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/chunks/prompt.mjs
7
7
  function getDefaultExportFromCjs(x$1) {
@@ -86,50 +86,50 @@ function requirePicocolors() {
86
86
  return result + string.substring(cursor);
87
87
  };
88
88
  let createColors = (enabled = isColorSupported) => {
89
- let f = enabled ? formatter : () => String;
89
+ let f$1 = enabled ? formatter : () => String;
90
90
  return {
91
91
  isColorSupported: enabled,
92
- reset: f("\x1B[0m", "\x1B[0m"),
93
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
94
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
95
- italic: f("\x1B[3m", "\x1B[23m"),
96
- underline: f("\x1B[4m", "\x1B[24m"),
97
- inverse: f("\x1B[7m", "\x1B[27m"),
98
- hidden: f("\x1B[8m", "\x1B[28m"),
99
- strikethrough: f("\x1B[9m", "\x1B[29m"),
100
- black: f("\x1B[30m", "\x1B[39m"),
101
- red: f("\x1B[31m", "\x1B[39m"),
102
- green: f("\x1B[32m", "\x1B[39m"),
103
- yellow: f("\x1B[33m", "\x1B[39m"),
104
- blue: f("\x1B[34m", "\x1B[39m"),
105
- magenta: f("\x1B[35m", "\x1B[39m"),
106
- cyan: f("\x1B[36m", "\x1B[39m"),
107
- white: f("\x1B[37m", "\x1B[39m"),
108
- gray: f("\x1B[90m", "\x1B[39m"),
109
- bgBlack: f("\x1B[40m", "\x1B[49m"),
110
- bgRed: f("\x1B[41m", "\x1B[49m"),
111
- bgGreen: f("\x1B[42m", "\x1B[49m"),
112
- bgYellow: f("\x1B[43m", "\x1B[49m"),
113
- bgBlue: f("\x1B[44m", "\x1B[49m"),
114
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
115
- bgCyan: f("\x1B[46m", "\x1B[49m"),
116
- bgWhite: f("\x1B[47m", "\x1B[49m"),
117
- blackBright: f("\x1B[90m", "\x1B[39m"),
118
- redBright: f("\x1B[91m", "\x1B[39m"),
119
- greenBright: f("\x1B[92m", "\x1B[39m"),
120
- yellowBright: f("\x1B[93m", "\x1B[39m"),
121
- blueBright: f("\x1B[94m", "\x1B[39m"),
122
- magentaBright: f("\x1B[95m", "\x1B[39m"),
123
- cyanBright: f("\x1B[96m", "\x1B[39m"),
124
- whiteBright: f("\x1B[97m", "\x1B[39m"),
125
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
126
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
127
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
128
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
129
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
130
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
131
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
132
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
92
+ reset: f$1("\x1B[0m", "\x1B[0m"),
93
+ bold: f$1("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
94
+ dim: f$1("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
95
+ italic: f$1("\x1B[3m", "\x1B[23m"),
96
+ underline: f$1("\x1B[4m", "\x1B[24m"),
97
+ inverse: f$1("\x1B[7m", "\x1B[27m"),
98
+ hidden: f$1("\x1B[8m", "\x1B[28m"),
99
+ strikethrough: f$1("\x1B[9m", "\x1B[29m"),
100
+ black: f$1("\x1B[30m", "\x1B[39m"),
101
+ red: f$1("\x1B[31m", "\x1B[39m"),
102
+ green: f$1("\x1B[32m", "\x1B[39m"),
103
+ yellow: f$1("\x1B[33m", "\x1B[39m"),
104
+ blue: f$1("\x1B[34m", "\x1B[39m"),
105
+ magenta: f$1("\x1B[35m", "\x1B[39m"),
106
+ cyan: f$1("\x1B[36m", "\x1B[39m"),
107
+ white: f$1("\x1B[37m", "\x1B[39m"),
108
+ gray: f$1("\x1B[90m", "\x1B[39m"),
109
+ bgBlack: f$1("\x1B[40m", "\x1B[49m"),
110
+ bgRed: f$1("\x1B[41m", "\x1B[49m"),
111
+ bgGreen: f$1("\x1B[42m", "\x1B[49m"),
112
+ bgYellow: f$1("\x1B[43m", "\x1B[49m"),
113
+ bgBlue: f$1("\x1B[44m", "\x1B[49m"),
114
+ bgMagenta: f$1("\x1B[45m", "\x1B[49m"),
115
+ bgCyan: f$1("\x1B[46m", "\x1B[49m"),
116
+ bgWhite: f$1("\x1B[47m", "\x1B[49m"),
117
+ blackBright: f$1("\x1B[90m", "\x1B[39m"),
118
+ redBright: f$1("\x1B[91m", "\x1B[39m"),
119
+ greenBright: f$1("\x1B[92m", "\x1B[39m"),
120
+ yellowBright: f$1("\x1B[93m", "\x1B[39m"),
121
+ blueBright: f$1("\x1B[94m", "\x1B[39m"),
122
+ magentaBright: f$1("\x1B[95m", "\x1B[39m"),
123
+ cyanBright: f$1("\x1B[96m", "\x1B[39m"),
124
+ whiteBright: f$1("\x1B[97m", "\x1B[39m"),
125
+ bgBlackBright: f$1("\x1B[100m", "\x1B[49m"),
126
+ bgRedBright: f$1("\x1B[101m", "\x1B[49m"),
127
+ bgGreenBright: f$1("\x1B[102m", "\x1B[49m"),
128
+ bgYellowBright: f$1("\x1B[103m", "\x1B[49m"),
129
+ bgBlueBright: f$1("\x1B[104m", "\x1B[49m"),
130
+ bgMagentaBright: f$1("\x1B[105m", "\x1B[49m"),
131
+ bgCyanBright: f$1("\x1B[106m", "\x1B[49m"),
132
+ bgWhiteBright: f$1("\x1B[107m", "\x1B[49m")
133
133
  };
134
134
  };
135
135
  picocolors.exports = createColors();
@@ -400,7 +400,7 @@ function G(t, u$1, F$1) {
400
400
  `).map((e$1) => oD(e$1, u$1, F$1)).join(`
401
401
  `);
402
402
  }
403
- const c$1 = {
403
+ const c = {
404
404
  actions: new Set([
405
405
  "up",
406
406
  "down",
@@ -420,7 +420,7 @@ const c$1 = {
420
420
  ])
421
421
  };
422
422
  function k$1(t, u$1) {
423
- if (typeof t == "string") return c$1.aliases.get(t) === u$1;
423
+ if (typeof t == "string") return c.aliases.get(t) === u$1;
424
424
  for (const F$1 of t) if (F$1 !== void 0 && k$1(F$1, u$1)) return true;
425
425
  return false;
426
426
  }
@@ -482,13 +482,13 @@ var x = class {
482
482
  const e$1 = new WriteStream(0);
483
483
  e$1._write = (s, i, D) => {
484
484
  this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D();
485
- }, this.input.pipe(e$1), this.rl = c.createInterface({
485
+ }, this.input.pipe(e$1), this.rl = f.createInterface({
486
486
  input: this.input,
487
487
  output: e$1,
488
488
  tabSize: 2,
489
489
  prompt: "",
490
490
  escapeCodeTimeout: 50
491
- }), c.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d$1(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
491
+ }), f.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d$1(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
492
492
  this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d$1(this.input, false), u$1(this.value);
493
493
  }), this.once("cancel", () => {
494
494
  this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d$1(this.input, false), u$1(S);
@@ -496,7 +496,7 @@ var x = class {
496
496
  });
497
497
  }
498
498
  onKeypress(u$1, F$1) {
499
- if (this.state === "error" && (this.state = "active"), F$1?.name && (!this._track && c$1.aliases.has(F$1.name) && this.emit("cursor", c$1.aliases.get(F$1.name)), c$1.actions.has(F$1.name) && this.emit("cursor", F$1.name)), u$1 && (u$1.toLowerCase() === "y" || u$1.toLowerCase() === "n") && this.emit("confirm", u$1.toLowerCase() === "y"), u$1 === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u$1 && this.emit("key", u$1.toLowerCase()), F$1?.name === "return") {
499
+ if (this.state === "error" && (this.state = "active"), F$1?.name && (!this._track && c.aliases.has(F$1.name) && this.emit("cursor", c.aliases.get(F$1.name)), c.actions.has(F$1.name) && this.emit("cursor", F$1.name)), u$1 && (u$1.toLowerCase() === "y" || u$1.toLowerCase() === "n") && this.emit("confirm", u$1.toLowerCase() === "y"), u$1 === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u$1 && this.emit("key", u$1.toLowerCase()), F$1?.name === "return") {
500
500
  if (this.opts.validate) {
501
501
  const e$1 = this.opts.validate(this.value);
502
502
  e$1 && (this.error = e$1 instanceof Error ? e$1.message : e$1, this.state = "error", this.rl?.write(this.value));
@@ -646,9 +646,9 @@ var PD = class extends x {
646
646
  }
647
647
  };
648
648
  function ce() {
649
- return P.platform !== "win32" ? P.env.TERM !== "linux" : !!P.env.CI || !!P.env.WT_SESSION || !!P.env.TERMINUS_SUBLIME || P.env.ConEmuTask === "{cmd::Cmder}" || P.env.TERM_PROGRAM === "Terminus-Sublime" || P.env.TERM_PROGRAM === "vscode" || P.env.TERM === "xterm-256color" || P.env.TERM === "alacritty" || P.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
649
+ return g$1.platform !== "win32" ? g$1.env.TERM !== "linux" : !!g$1.env.CI || !!g$1.env.WT_SESSION || !!g$1.env.TERMINUS_SUBLIME || g$1.env.ConEmuTask === "{cmd::Cmder}" || g$1.env.TERM_PROGRAM === "Terminus-Sublime" || g$1.env.TERM_PROGRAM === "vscode" || g$1.env.TERM === "xterm-256color" || g$1.env.TERM === "alacritty" || g$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
650
650
  }
651
- const V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"), W = u("▲", "x"), C = u("✔", "√"), o = u(""), d = u(""), k = u("●", ">"), P$2 = u("○", " "), A = u("◻", "[•]"), T = u("◼", "[+]"), F = u("◻", "[ ]"), w = (t) => {
651
+ const V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"), W = u("▲", "x"), C = u("✔", "√"), o = u(""), d = u(""), k = u("●", ">"), P = u("○", " "), A = u("◻", "[•]"), T = u("◼", "[+]"), F = u("◻", "[ ]"), w = (t) => {
652
652
  switch (t) {
653
653
  case "initial":
654
654
  case "active": return e.cyan(le);
@@ -657,11 +657,11 @@ const V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"),
657
657
  case "submit": return e.green(C);
658
658
  }
659
659
  }, B = (t) => {
660
- const { cursor: n, options: s, style: r$1 } = t, i = t.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(process.stdout.rows - 4, 0), c$2 = Math.min(a, Math.max(i, 5));
660
+ const { cursor: n, options: s, style: r$1 } = t, i = t.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(process.stdout.rows - 4, 0), c$1 = Math.min(a, Math.max(i, 5));
661
661
  let l = 0;
662
- n >= l + c$2 - 3 ? l = Math.max(Math.min(n - c$2 + 3, s.length - c$2), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
663
- const $ = c$2 < s.length && l > 0, p = c$2 < s.length && l + c$2 < s.length;
664
- return s.slice(l, l + c$2).map((M, v$1, x$1) => {
662
+ n >= l + c$1 - 3 ? l = Math.max(Math.min(n - c$1 + 3, s.length - c$1), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
663
+ const $ = c$1 < s.length && l > 0, p = c$1 < s.length && l + c$1 < s.length;
664
+ return s.slice(l, l + c$1).map((M, v$1, x$1) => {
665
665
  const j = v$1 === 0 && $, E = v$1 === x$1.length - 1 && p;
666
666
  return j || E ? e.dim("...") : r$1(M, v$1 + l === n);
667
667
  });
@@ -701,7 +701,7 @@ ${w(this.state)} ${t.message}
701
701
  case "submit": return `${r$1}${e.gray(o)} ${e.dim(i)}`;
702
702
  case "cancel": return `${r$1}${e.gray(o)} ${e.strikethrough(e.dim(i))}
703
703
  ${e.gray(o)}`;
704
- default: return `${r$1}${e.cyan(o)} ${this.value ? `${e.green(k)} ${n}` : `${e.dim(P$2)} ${e.dim(n)}`} ${e.dim("/")} ${this.value ? `${e.dim(P$2)} ${e.dim(s)}` : `${e.green(k)} ${s}`}
704
+ default: return `${r$1}${e.cyan(o)} ${this.value ? `${e.green(k)} ${n}` : `${e.dim(P)} ${e.dim(n)}`} ${e.dim("/")} ${this.value ? `${e.dim(P)} ${e.dim(s)}` : `${e.green(k)} ${s}`}
705
705
  ${e.cyan(d)}
706
706
  `;
707
707
  }
@@ -714,7 +714,7 @@ ${e.cyan(d)}
714
714
  case "selected": return `${e.dim(i)}`;
715
715
  case "active": return `${e.green(k)} ${i} ${s.hint ? e.dim(`(${s.hint})`) : ""}`;
716
716
  case "cancelled": return `${e.strikethrough(e.dim(i))}`;
717
- default: return `${e.dim(P$2)} ${e.dim(i)}`;
717
+ default: return `${e.dim(P)} ${e.dim(i)}`;
718
718
  }
719
719
  };
720
720
  return new jD({
@@ -758,8 +758,8 @@ ${e.reset(e.dim(`Press ${e.gray(e.bgWhite(e.inverse(" space ")))} to select, ${e
758
758
  const s = `${e.gray(o)}
759
759
  ${w(this.state)} ${t.message}
760
760
  `, r$1 = (i, a) => {
761
- const c$2 = this.value.includes(i.value);
762
- return a && c$2 ? n(i, "active-selected") : c$2 ? n(i, "selected") : n(i, a ? "active" : "inactive");
761
+ const c$1 = this.value.includes(i.value);
762
+ return a && c$1 ? n(i, "active-selected") : c$1 ? n(i, "selected") : n(i, a ? "active" : "inactive");
763
763
  };
764
764
  switch (this.state) {
765
765
  case "submit": return `${s}${e.gray(o)} ${this.options.filter(({ value: i }) => this.value.includes(i)).map((i) => n(i, "submitted")).join(e.dim(", ")) || e.dim("none")}`;
@@ -770,7 +770,7 @@ ${e.gray(o)}` : ""}`;
770
770
  }
771
771
  case "error": {
772
772
  const i = this.error.split(`
773
- `).map((a, c$2) => c$2 === 0 ? `${e.yellow(d)} ${e.yellow(a)}` : ` ${a}`).join(`
773
+ `).map((a, c$1) => c$1 === 0 ? `${e.yellow(d)} ${e.yellow(a)}` : ` ${a}`).join(`
774
774
  `);
775
775
  return `${s + e.yellow(o)} ${B({
776
776
  options: this.options,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuetify/cli",
3
- "version": "0.0.10",
3
+ "version": "0.0.12-beta.1",
4
4
  "description": "Vuetify CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -11,15 +11,15 @@
11
11
  "license": "MIT",
12
12
  "devDependencies": {
13
13
  "@bomb.sh/tab": "^0.0.11",
14
- "@clack/prompts": "^1.0.0-alpha.8",
14
+ "@clack/prompts": "^1.0.0-alpha.9",
15
15
  "citty": "^0.1.6",
16
16
  "giget": "^2.0.0",
17
17
  "kolorist": "^1.8.0",
18
18
  "nypm": "^0.6.2",
19
19
  "open": "^11.0.0",
20
20
  "pathe": "^2.0.3",
21
- "tsdown": "^0.16.6",
22
- "@vuetify/cli-shared": "0.0.10"
21
+ "tsdown": "^0.16.8",
22
+ "@vuetify/cli-shared": "0.0.12-beta.1"
23
23
  },
24
24
  "main": "./dist/index.mjs",
25
25
  "module": "./dist/index.mjs",
@@ -1,23 +1,5 @@
1
- import { openVuetifyDocs } from '@vuetify/cli-shared'
2
- import { i18n } from '@vuetify/cli-shared/i18n'
3
- import { defineCommand } from 'citty'
1
+ import { docs as docsCommand } from '@vuetify/cli-shared/commands'
4
2
 
5
- export const docs = defineCommand({
6
- meta: {
7
- name: 'docs',
8
- description: i18n.t('commands.docs.description'),
9
- },
10
- args: {
11
- version: {
12
- type: 'string',
13
- alias: 'v',
14
- description: i18n.t('args.version.description'),
15
- },
16
- },
17
- run: async ctx => {
18
- const version = ctx.args.version
19
- await openVuetifyDocs(version, { cwd: process.cwd() })
20
- },
21
- })
3
+ export const docs = docsCommand
22
4
 
23
5
  export default docs
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import tab from '@bomb.sh/tab/citty'
2
- import { createBanner } from '@vuetify/cli-shared'
2
+ import { createBanner, registerProjectArgsCompletion } from '@vuetify/cli-shared'
3
3
  import { add } from '@vuetify/cli-shared/commands'
4
4
  import { i18n } from '@vuetify/cli-shared/i18n'
5
5
  import { checkForUpdate } from '@vuetify/cli-shared/utils'
@@ -13,7 +13,7 @@ import { upgrade } from './commands/upgrade'
13
13
 
14
14
  export const main = defineCommand({
15
15
  meta: {
16
- name: '@vuetify/cli',
16
+ name: 'vuetify',
17
17
  version,
18
18
  description: i18n.t('cli.main.description'),
19
19
  },
@@ -31,7 +31,12 @@ export const main = defineCommand({
31
31
  },
32
32
  })
33
33
 
34
- await tab(main)
34
+ await tab(main).then(completion => {
35
+ const initCommand = completion.commands.get('init')
36
+ if (initCommand) {
37
+ registerProjectArgsCompletion(initCommand)
38
+ }
39
+ })
35
40
 
36
41
  console.log(createBanner())
37
42
  await checkForUpdate(version)