@vixt/cli 0.13.1 → 0.13.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.
package/dist/index.d.mts CHANGED
@@ -533,10 +533,16 @@ declare const commands: {
533
533
  };
534
534
  //#endregion
535
535
  //#region src/main.d.ts
536
+ declare const mainArgsDef: {
537
+ command: {
538
+ type: "positional";
539
+ required: true;
540
+ };
541
+ };
536
542
  declare const main: import("citty").CommandDef<{
537
- readonly command: {
538
- readonly type: "positional";
539
- readonly required: true;
543
+ command: {
544
+ type: "positional";
545
+ required: true;
540
546
  };
541
547
  }>;
542
548
  declare const vixtArgsDef: {
@@ -608,6 +614,10 @@ declare const vixtArgsDef: {
608
614
  type: "boolean";
609
615
  description: string;
610
616
  };
617
+ command: {
618
+ type: "positional";
619
+ required: true;
620
+ };
611
621
  };
612
622
  type VixtArgs = ParsedArgs<typeof vixtArgsDef>;
613
623
  type VixtCLIOptions = Partial<VixtArgs>;
@@ -680,6 +690,10 @@ declare function parseVixtArgs(args?: string[]): ParsedArgs<{
680
690
  type: "boolean";
681
691
  description: string;
682
692
  };
693
+ command: {
694
+ type: "positional";
695
+ required: true;
696
+ };
683
697
  }>;
684
698
  //#endregion
685
699
  //#region src/run.d.ts
@@ -690,4 +704,4 @@ declare function runCommand(name: string, argv?: string[], data?: {
690
704
  result: unknown;
691
705
  }>;
692
706
  //#endregion
693
- export { BuildArgs, DevArgs, VixtArgs, VixtCLIOptions, buildArgsDef, buildCommand, cleanupCommand, commands, devArgsDef, devCommand, main, parseVixtArgs, prepareCommand, previewCommand, runCommand, runMain, vixtArgsDef };
707
+ export { BuildArgs, DevArgs, VixtArgs, VixtCLIOptions, buildArgsDef, buildCommand, cleanupCommand, commands, devArgsDef, devCommand, main, mainArgsDef, parseVixtArgs, prepareCommand, previewCommand, runCommand, runMain, vixtArgsDef };
package/dist/index.mjs CHANGED
@@ -208,22 +208,24 @@ const commands = {
208
208
  };
209
209
  //#endregion
210
210
  //#region src/main.ts
211
+ const mainArgsDef = { command: {
212
+ type: "positional",
213
+ required: true
214
+ } };
211
215
  const main = defineCommand({
212
216
  meta: {
213
217
  name: "vixt",
214
218
  description: "Vixt CLI"
215
219
  },
216
- args: { command: {
217
- type: "positional",
218
- required: true
219
- } },
220
+ args: mainArgsDef,
220
221
  subCommands: commands
221
222
  });
222
223
  const vixtArgsDef = {
224
+ ...mainArgsDef,
223
225
  ...buildArgsDef,
224
226
  ...devArgsDef
225
227
  };
226
- function parseVixtArgs(args = process.argv.slice(3)) {
228
+ function parseVixtArgs(args = process.argv.slice(2)) {
227
229
  return parseArgs(args, vixtArgsDef);
228
230
  }
229
231
  //#endregion
@@ -240,4 +242,4 @@ function runCommand(name, argv = process.argv.slice(2), data = {}) {
240
242
  });
241
243
  }
242
244
  //#endregion
243
- export { buildArgsDef, buildCommand, cleanupCommand, commands, devArgsDef, devCommand, main, parseVixtArgs, prepareCommand, previewCommand, runCommand, runMain, vixtArgsDef };
245
+ export { buildArgsDef, buildCommand, cleanupCommand, commands, devArgsDef, devCommand, main, mainArgsDef, parseVixtArgs, prepareCommand, previewCommand, runCommand, runMain, vixtArgsDef };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vixt/cli",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "keywords": [
5
5
  "nuxi",
6
6
  "nuxt",