@vuetify/cli 0.0.13-beta.5 → 0.0.13-beta.6
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 +107 -101
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -163071,6 +163071,112 @@ async function addMcp() {
|
|
|
163071
163071
|
Wt(i18n.t("messages.all_done"));
|
|
163072
163072
|
}
|
|
163073
163073
|
|
|
163074
|
+
//#endregion
|
|
163075
|
+
//#region ../shared/src/functions/upgrade.ts
|
|
163076
|
+
function isInstalledLocally() {
|
|
163077
|
+
const __dirname$3 = path.dirname(fileURLToPath(import.meta.url));
|
|
163078
|
+
const cwd$2 = process.cwd();
|
|
163079
|
+
const localNodeModules = path.join(cwd$2, "node_modules");
|
|
163080
|
+
return __dirname$3.startsWith(localNodeModules);
|
|
163081
|
+
}
|
|
163082
|
+
async function upgradeSelf(pkgName) {
|
|
163083
|
+
if (isInstalledLocally()) {
|
|
163084
|
+
R.warning(i18n.t("commands.upgrade.not_global", { pkg: pkgName }));
|
|
163085
|
+
return;
|
|
163086
|
+
}
|
|
163087
|
+
try {
|
|
163088
|
+
R.info(i18n.t("commands.upgrade.start", { pkg: pkgName }));
|
|
163089
|
+
await addDependency(`${pkgName}@latest`, { global: true });
|
|
163090
|
+
R.success(i18n.t("commands.upgrade.success", { pkg: pkgName }));
|
|
163091
|
+
} catch (error) {
|
|
163092
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
163093
|
+
R.error(i18n.t("commands.upgrade.fail", {
|
|
163094
|
+
pkg: pkgName,
|
|
163095
|
+
message
|
|
163096
|
+
}));
|
|
163097
|
+
process.exitCode = 1;
|
|
163098
|
+
}
|
|
163099
|
+
}
|
|
163100
|
+
|
|
163101
|
+
//#endregion
|
|
163102
|
+
//#region ../shared/src/commands/add.ts
|
|
163103
|
+
const choices = ["eslint", "mcp"];
|
|
163104
|
+
const add = defineCommand({
|
|
163105
|
+
meta: {
|
|
163106
|
+
name: "add",
|
|
163107
|
+
description: i18n.t("commands.add.description")
|
|
163108
|
+
},
|
|
163109
|
+
args: { integration: {
|
|
163110
|
+
type: "positional",
|
|
163111
|
+
description: i18n.t("commands.add.integration.description", { choices: choices.join(", ") })
|
|
163112
|
+
} },
|
|
163113
|
+
run: async ({ args: args$2 }) => {
|
|
163114
|
+
let integration = args$2.integration;
|
|
163115
|
+
if (!integration) {
|
|
163116
|
+
const selected = await qt({
|
|
163117
|
+
message: i18n.t("prompts.add.integration"),
|
|
163118
|
+
options: choices.map((c$10) => ({
|
|
163119
|
+
label: c$10,
|
|
163120
|
+
value: c$10
|
|
163121
|
+
}))
|
|
163122
|
+
});
|
|
163123
|
+
if (typeof selected === "symbol") {
|
|
163124
|
+
R.warning(i18n.t("commands.add.integration.available", { choices: choices.join(", ") }));
|
|
163125
|
+
return;
|
|
163126
|
+
}
|
|
163127
|
+
integration = String(selected);
|
|
163128
|
+
}
|
|
163129
|
+
if (!choices.includes(integration)) {
|
|
163130
|
+
R.error(i18n.t("commands.add.integration.invalid", {
|
|
163131
|
+
integration,
|
|
163132
|
+
choices: choices.join(", ")
|
|
163133
|
+
}));
|
|
163134
|
+
return;
|
|
163135
|
+
}
|
|
163136
|
+
switch (integration) {
|
|
163137
|
+
case "eslint":
|
|
163138
|
+
await addEslint();
|
|
163139
|
+
break;
|
|
163140
|
+
case "mcp":
|
|
163141
|
+
await addMcp();
|
|
163142
|
+
break;
|
|
163143
|
+
}
|
|
163144
|
+
}
|
|
163145
|
+
});
|
|
163146
|
+
|
|
163147
|
+
//#endregion
|
|
163148
|
+
//#region ../shared/src/commands/docs.ts
|
|
163149
|
+
const docs$1 = defineCommand({
|
|
163150
|
+
meta: {
|
|
163151
|
+
name: "docs",
|
|
163152
|
+
description: i18n.t("commands.docs.description")
|
|
163153
|
+
},
|
|
163154
|
+
args: { version: {
|
|
163155
|
+
type: "string",
|
|
163156
|
+
alias: "v",
|
|
163157
|
+
description: i18n.t("args.version.description")
|
|
163158
|
+
} },
|
|
163159
|
+
run: async (ctx) => {
|
|
163160
|
+
const version$6 = ctx.args.version;
|
|
163161
|
+
await openVuetifyDocs(version$6, { cwd: process.cwd() });
|
|
163162
|
+
}
|
|
163163
|
+
});
|
|
163164
|
+
|
|
163165
|
+
//#endregion
|
|
163166
|
+
//#region ../shared/src/utils/npm.ts
|
|
163167
|
+
async function getNpmPackageVersion(packageName) {
|
|
163168
|
+
try {
|
|
163169
|
+
const { stdout: stdout$1 } = await K("npm", [
|
|
163170
|
+
"view",
|
|
163171
|
+
packageName,
|
|
163172
|
+
"version"
|
|
163173
|
+
]);
|
|
163174
|
+
return stdout$1.trim();
|
|
163175
|
+
} catch {
|
|
163176
|
+
return null;
|
|
163177
|
+
}
|
|
163178
|
+
}
|
|
163179
|
+
|
|
163074
163180
|
//#endregion
|
|
163075
163181
|
//#region ../../node_modules/.pnpm/ini@4.1.1/node_modules/ini/lib/ini.js
|
|
163076
163182
|
var require_ini = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -163316,106 +163422,6 @@ const isInstalledGlobally = (() => {
|
|
|
163316
163422
|
})();
|
|
163317
163423
|
var is_installed_globally_default = isInstalledGlobally;
|
|
163318
163424
|
|
|
163319
|
-
//#endregion
|
|
163320
|
-
//#region ../shared/src/functions/upgrade.ts
|
|
163321
|
-
async function upgradeSelf(pkgName) {
|
|
163322
|
-
if (!is_installed_globally_default) {
|
|
163323
|
-
R.warning(i18n.t("commands.upgrade.not_global", { pkg: pkgName }));
|
|
163324
|
-
return;
|
|
163325
|
-
}
|
|
163326
|
-
try {
|
|
163327
|
-
R.info(i18n.t("commands.upgrade.start", { pkg: pkgName }));
|
|
163328
|
-
await addDependency(`${pkgName}@latest`, { global: true });
|
|
163329
|
-
R.success(i18n.t("commands.upgrade.success", { pkg: pkgName }));
|
|
163330
|
-
} catch (error) {
|
|
163331
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
163332
|
-
R.error(i18n.t("commands.upgrade.fail", {
|
|
163333
|
-
pkg: pkgName,
|
|
163334
|
-
message
|
|
163335
|
-
}));
|
|
163336
|
-
process.exitCode = 1;
|
|
163337
|
-
}
|
|
163338
|
-
}
|
|
163339
|
-
|
|
163340
|
-
//#endregion
|
|
163341
|
-
//#region ../shared/src/commands/add.ts
|
|
163342
|
-
const choices = ["eslint", "mcp"];
|
|
163343
|
-
const add = defineCommand({
|
|
163344
|
-
meta: {
|
|
163345
|
-
name: "add",
|
|
163346
|
-
description: i18n.t("commands.add.description")
|
|
163347
|
-
},
|
|
163348
|
-
args: { integration: {
|
|
163349
|
-
type: "positional",
|
|
163350
|
-
description: i18n.t("commands.add.integration.description", { choices: choices.join(", ") })
|
|
163351
|
-
} },
|
|
163352
|
-
run: async ({ args: args$2 }) => {
|
|
163353
|
-
let integration = args$2.integration;
|
|
163354
|
-
if (!integration) {
|
|
163355
|
-
const selected = await qt({
|
|
163356
|
-
message: i18n.t("prompts.add.integration"),
|
|
163357
|
-
options: choices.map((c$10) => ({
|
|
163358
|
-
label: c$10,
|
|
163359
|
-
value: c$10
|
|
163360
|
-
}))
|
|
163361
|
-
});
|
|
163362
|
-
if (typeof selected === "symbol") {
|
|
163363
|
-
R.warning(i18n.t("commands.add.integration.available", { choices: choices.join(", ") }));
|
|
163364
|
-
return;
|
|
163365
|
-
}
|
|
163366
|
-
integration = String(selected);
|
|
163367
|
-
}
|
|
163368
|
-
if (!choices.includes(integration)) {
|
|
163369
|
-
R.error(i18n.t("commands.add.integration.invalid", {
|
|
163370
|
-
integration,
|
|
163371
|
-
choices: choices.join(", ")
|
|
163372
|
-
}));
|
|
163373
|
-
return;
|
|
163374
|
-
}
|
|
163375
|
-
switch (integration) {
|
|
163376
|
-
case "eslint":
|
|
163377
|
-
await addEslint();
|
|
163378
|
-
break;
|
|
163379
|
-
case "mcp":
|
|
163380
|
-
await addMcp();
|
|
163381
|
-
break;
|
|
163382
|
-
}
|
|
163383
|
-
}
|
|
163384
|
-
});
|
|
163385
|
-
|
|
163386
|
-
//#endregion
|
|
163387
|
-
//#region ../shared/src/commands/docs.ts
|
|
163388
|
-
const docs$1 = defineCommand({
|
|
163389
|
-
meta: {
|
|
163390
|
-
name: "docs",
|
|
163391
|
-
description: i18n.t("commands.docs.description")
|
|
163392
|
-
},
|
|
163393
|
-
args: { version: {
|
|
163394
|
-
type: "string",
|
|
163395
|
-
alias: "v",
|
|
163396
|
-
description: i18n.t("args.version.description")
|
|
163397
|
-
} },
|
|
163398
|
-
run: async (ctx) => {
|
|
163399
|
-
const version$6 = ctx.args.version;
|
|
163400
|
-
await openVuetifyDocs(version$6, { cwd: process.cwd() });
|
|
163401
|
-
}
|
|
163402
|
-
});
|
|
163403
|
-
|
|
163404
|
-
//#endregion
|
|
163405
|
-
//#region ../shared/src/utils/npm.ts
|
|
163406
|
-
async function getNpmPackageVersion(packageName) {
|
|
163407
|
-
try {
|
|
163408
|
-
const { stdout: stdout$1 } = await K("npm", [
|
|
163409
|
-
"view",
|
|
163410
|
-
packageName,
|
|
163411
|
-
"version"
|
|
163412
|
-
]);
|
|
163413
|
-
return stdout$1.trim();
|
|
163414
|
-
} catch {
|
|
163415
|
-
return null;
|
|
163416
|
-
}
|
|
163417
|
-
}
|
|
163418
|
-
|
|
163419
163425
|
//#endregion
|
|
163420
163426
|
//#region ../shared/src/utils/updateCheck.ts
|
|
163421
163427
|
var import_semver = /* @__PURE__ */ __toESM$1(require_semver());
|
|
@@ -163655,7 +163661,7 @@ const JsonReporter = { report: async (data, options$1) => {
|
|
|
163655
163661
|
|
|
163656
163662
|
//#endregion
|
|
163657
163663
|
//#region package.json
|
|
163658
|
-
var version = "0.0.13-beta.
|
|
163664
|
+
var version = "0.0.13-beta.6";
|
|
163659
163665
|
|
|
163660
163666
|
//#endregion
|
|
163661
163667
|
//#region src/commands/analyze.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuetify/cli",
|
|
3
|
-
"version": "0.0.13-beta.
|
|
3
|
+
"version": "0.0.13-beta.6",
|
|
4
4
|
"description": "Vuetify CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"open": "^11.0.0",
|
|
31
31
|
"pathe": "^2.0.3",
|
|
32
32
|
"tsdown": "^0.16.8",
|
|
33
|
-
"@vuetify/cli-shared": "0.0.13-beta.
|
|
33
|
+
"@vuetify/cli-shared": "0.0.13-beta.6"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@typescript-eslint/parser": "^8.53.0"
|