@vuetify/cli 0.0.11 → 0.0.12-beta.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.
@@ -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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuetify/cli",
3
- "version": "0.0.11",
3
+ "version": "0.0.12-beta.2",
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.11"
21
+ "tsdown": "^0.16.8",
22
+ "@vuetify/cli-shared": "0.0.12-beta.2"
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
@@ -4,7 +4,7 @@ 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'
6
6
 
7
- import { defineCommand, runMain } from 'citty'
7
+ import { defineCommand, runMain, showUsage } from 'citty'
8
8
  import { version } from '../package.json'
9
9
  import { docs } from './commands/docs'
10
10
  import { init } from './commands/init'
@@ -24,10 +24,12 @@ export const main = defineCommand({
24
24
  docs,
25
25
  upgrade,
26
26
  },
27
- run: async ({ args }) => {
27
+ run: async ({ args, cmd }) => {
28
28
  if (args._[0] === 'complete') {
29
29
  return
30
30
  }
31
+ console.log(createBanner())
32
+ showUsage(cmd)
31
33
  },
32
34
  })
33
35
 
@@ -38,6 +40,5 @@ await tab(main).then(completion => {
38
40
  }
39
41
  })
40
42
 
41
- console.log(createBanner())
42
43
  await checkForUpdate(version)
43
44
  runMain(main)