gunshi 0.14.0 → 0.14.4

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.
@@ -210,7 +210,7 @@ function resolveArgOptions(options) {
210
210
  }
211
211
  function resolveCommandOptions(options, entry) {
212
212
  const subCommands = new Map(options.subCommands);
213
- if (typeof entry === "object" && entry.name) subCommands.set(entry.name, entry);
213
+ if (typeof entry === "object" && entry.name && options.subCommands) subCommands.set(entry.name, entry);
214
214
  const resolvedOptions = Object.assign(create(), COMMAND_OPTIONS_DEFAULT, options, { subCommands });
215
215
  return resolvedOptions;
216
216
  }
@@ -246,14 +246,17 @@ async function showValidationErrors(ctx, error) {
246
246
  async function resolveCommand(sub, entry, options) {
247
247
  const omitted = !sub;
248
248
  if (typeof entry === "function") return [void 0, { run: entry }];
249
- else if (omitted) return typeof entry === "object" ? [entry.name, await resolveLazyCommand(entry)] : [void 0, void 0];
249
+ else if (omitted) return typeof entry === "object" ? [resolveEntryName(entry), await resolveLazyCommand(entry)] : [void 0, void 0];
250
250
  else {
251
- if (options.subCommands == null) return [sub, void 0];
251
+ if (options.subCommands == null || options.subCommands.size === 0) return [resolveEntryName(entry), await resolveLazyCommand(entry)];
252
252
  const cmd = options.subCommands?.get(sub);
253
253
  if (cmd == null) return [sub, void 0];
254
254
  return [sub, await resolveLazyCommand(cmd, sub)];
255
255
  }
256
256
  }
257
+ function resolveEntryName(entry) {
258
+ return entry.name || "(anonymous)";
259
+ }
257
260
 
258
261
  //#endregion
259
262
  export { DefaultTranslation, cli };
@@ -1,4 +1,25 @@
1
- import "./types.d-CftFdhAF.js";
2
- import { ArgOptionSchema, ArgOptions, ArgValues, define } from "./definition.d-CFbYyc6i.js";
1
+ import { ArgOptions } from 'args-tokens';
2
+ export { ArgOptionSchema, ArgOptions, ArgValues } from 'args-tokens';
3
+ import { C as Command } from './types.d-Ce_-U-wp.js';
3
4
 
4
- export { ArgOptionSchema, ArgOptions, ArgValues, define };
5
+ /**
6
+ * The entry for command deifinition.
7
+ * @example
8
+ * ```js
9
+ * import { define } from 'gunshi/definition'
10
+ * ```
11
+ * @module
12
+ */
13
+ /**
14
+ * @author kazuya kawaguchi (a.k.a. kazupon)
15
+ * @license MIT
16
+ */
17
+
18
+ /**
19
+ * Define a {@link Command | command} with type inference
20
+ * @param definition A {@link Command | command} definition
21
+ * @returns A {@link Command | command} definition with type inference
22
+ */
23
+ declare function define<Options extends ArgOptions = ArgOptions>(definition: Command<Options>): Command<Options>;
24
+
25
+ export { define };
@@ -1,8 +1,13 @@
1
- import { Command, CommandOptions } from "./types.d-CftFdhAF.js";
2
- import { ArgOptions } from "args-tokens";
1
+ import { ArgOptions } from 'args-tokens';
2
+ import { C as Command, a as CommandOptions } from './types.d-Ce_-U-wp.js';
3
3
 
4
- //#region lib/.tsdown-types-es/generator.d.ts
4
+ /**
5
+ * Generate the command usage.
6
+ * @param command - usage generate command, if you want to generate the usage of the default command where there are target commands and sub-commands, specify `null`.
7
+ * @param entry - A {@link Command | entry command}
8
+ * @param opts - A {@link CommandOptions | command options}
9
+ * @returns A rendered usage.
10
+ */
5
11
  declare function generate<Options extends ArgOptions = ArgOptions>(command: string | null, entry: Command<Options>, opts?: CommandOptions<Options>): Promise<string>;
6
12
 
7
- //#endregion
8
- export { generate };
13
+ export { generate };
package/lib/generator.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { create } from "./renderer-B2JVfepJ.js";
2
- import { cli } from "./cli-DsMmOiVc.js";
2
+ import { cli } from "./cli-D4I22PHa.js";
3
3
 
4
4
  //#region src/generator.ts
5
5
  async function generate(command, entry, opts = {}) {
package/lib/index.d.ts CHANGED
@@ -1,12 +1,18 @@
1
- import { Command, CommandBuiltinKeys, CommandBuiltinOptionsKeys, CommandBuiltinResourceKeys, CommandContext, CommandEnvironment, CommandOptionKeys, CommandOptions, CommandResource, CommandResourceFetcher, CommandRunner, Commandable, DEFAULT_LOCALE, GenerateNamespacedKey, LazyCommand, RemovedIndex, TranslationAdapter, TranslationAdapterFactory, TranslationAdapterFactoryOptions } from "./types.d-CftFdhAF.js";
2
- import { define } from "./definition.d-CFbYyc6i.js";
3
- import { ArgOptionSchema, ArgOptions, ArgOptions as ArgOptions$1, ArgValues, parseArgs, resolveArgs } from "args-tokens";
1
+ import { ArgOptions } from 'args-tokens';
2
+ export { ArgOptionSchema, ArgOptions, ArgValues, parseArgs, resolveArgs } from 'args-tokens';
3
+ import { C as Command, b as CommandRunner, a as CommandOptions, T as TranslationAdapter, c as TranslationAdapterFactoryOptions } from './types.d-Ce_-U-wp.js';
4
+ export { f as CommandBuiltinKeys, d as CommandBuiltinOptionsKeys, e as CommandBuiltinResourceKeys, i as CommandContext, h as CommandEnvironment, g as CommandOptionKeys, j as CommandResource, k as CommandResourceFetcher, m as Commandable, D as DEFAULT_LOCALE, G as GenerateNamespacedKey, L as LazyCommand, R as RemovedIndex, l as TranslationAdapterFactory } from './types.d-Ce_-U-wp.js';
5
+ export { define } from './definition.js';
4
6
 
5
- //#region lib/.tsdown-types-es/cli.d.ts
6
- declare function cli<Options extends ArgOptions$1 = ArgOptions$1>(args: string[], entry: Command<Options> | CommandRunner<Options>, opts?: CommandOptions<Options>): Promise<string | undefined>;
7
+ /**
8
+ * Run the command.
9
+ * @param args Command line arguments
10
+ * @param entry A {@link Command | entry command} or an {@link CommandRunner | inline command runner}
11
+ * @param opts A {@link CommandOptions | command options}
12
+ * @returns A rendered usage or undefined. if you will use {@link CommandOptions.usageSilent} option, it will return rendered usage string.
13
+ */
14
+ declare function cli<Options extends ArgOptions = ArgOptions>(args: string[], entry: Command<Options> | CommandRunner<Options>, opts?: CommandOptions<Options>): Promise<string | undefined>;
7
15
 
8
- //#endregion
9
- //#region lib/.tsdown-types-es/translation.d.ts
10
16
  declare class DefaultTranslation implements TranslationAdapter {
11
17
  #private;
12
18
  constructor(options: TranslationAdapterFactoryOptions);
@@ -16,5 +22,4 @@ declare class DefaultTranslation implements TranslationAdapter {
16
22
  translate(locale: string, key: string, values?: Record<string, unknown>): string | undefined;
17
23
  }
18
24
 
19
- //#endregion
20
- export { ArgOptionSchema, ArgOptions, ArgValues, Command, CommandBuiltinKeys, CommandBuiltinOptionsKeys, CommandBuiltinResourceKeys, CommandContext, CommandEnvironment, CommandOptionKeys, CommandOptions, CommandResource, CommandResourceFetcher, CommandRunner, Commandable, DEFAULT_LOCALE, DefaultTranslation, GenerateNamespacedKey, LazyCommand, RemovedIndex, TranslationAdapter, TranslationAdapterFactory, TranslationAdapterFactoryOptions, cli, define, parseArgs, resolveArgs };
25
+ export { Command, CommandOptions, CommandRunner, DefaultTranslation, TranslationAdapter, TranslationAdapterFactoryOptions, cli };
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { define } from "./definition-by5EpPkZ.js";
2
2
  import { DEFAULT_LOCALE } from "./renderer-B2JVfepJ.js";
3
- import { DefaultTranslation, cli } from "./cli-DsMmOiVc.js";
3
+ import { DefaultTranslation, cli } from "./cli-D4I22PHa.js";
4
4
  import { parseArgs, resolveArgs } from "args-tokens";
5
5
 
6
6
  export { DEFAULT_LOCALE, DefaultTranslation, cli, define, parseArgs, resolveArgs };
@@ -0,0 +1,36 @@
1
+ import { ArgOptions } from 'args-tokens';
2
+ import { i as CommandContext } from './types.d-Ce_-U-wp.js';
3
+
4
+ /**
5
+ * @author kazuya kawaguchi (a.k.a. kazupon)
6
+ * @license MIT
7
+ */
8
+
9
+ /**
10
+ * Render the header.
11
+ * @param ctx A {@link CommandContext | command context}
12
+ * @returns A rendered header.
13
+ */
14
+ declare function renderHeader<Options extends ArgOptions = ArgOptions>(ctx: Readonly<CommandContext<Options>>): Promise<string>;
15
+
16
+ /**
17
+ * Render the usage.
18
+ * @param ctx A {@link CommandContext | command context}
19
+ * @returns A rendered usage.
20
+ */
21
+ declare function renderUsage<Options extends ArgOptions = ArgOptions>(ctx: Readonly<CommandContext<Options>>): Promise<string>;
22
+
23
+ /**
24
+ * @author kazuya kawaguchi (a.k.a. kazupon)
25
+ * @license MIT
26
+ */
27
+
28
+ /**
29
+ * Render the validation errors.
30
+ * @param ctx A {@link CommandContext | command context}
31
+ * @param error An {@link AggregateError} of option in `args-token` validation
32
+ * @returns A rendered validation error.
33
+ */
34
+ declare function renderValidationErrors<Options extends ArgOptions = ArgOptions>(_ctx: CommandContext<Options>, error: AggregateError): Promise<string>;
35
+
36
+ export { renderHeader, renderUsage, renderValidationErrors };
@@ -0,0 +1,3 @@
1
+ import { renderHeader, renderUsage, renderValidationErrors } from "./renderer-B2JVfepJ.js";
2
+
3
+ export { renderHeader, renderUsage, renderValidationErrors };
@@ -1,24 +1,89 @@
1
- import { ArgOptions, ArgToken, ArgValues } from "args-tokens";
1
+ import { ArgOptions, ArgValues, ArgToken } from 'args-tokens';
2
2
 
3
- //#region lib/.tsdown-types-es/constants.d.ts
3
+ /**
4
+ * @author kazuya kawaguchi (a.k.a. kazupon)
5
+ * @license MIT
6
+ */
7
+
8
+ /**
9
+ * The default locale string, which format is BCP 47 language tag.
10
+ */
4
11
  declare const DEFAULT_LOCALE = "en-US";
5
12
  declare const BUILT_IN_PREFIX = "_";
6
13
  declare const OPTION_PREFIX = "Option";
7
14
  declare const BUILT_IN_KEY_SEPARATOR = ":";
15
+ declare const NOOP: () => void;
16
+ type CommonOptionType = {
17
+ readonly help: {
18
+ readonly type: "boolean"
19
+ readonly short: "h"
20
+ readonly description: string
21
+ }
22
+ readonly version: {
23
+ readonly type: "boolean"
24
+ readonly short: "v"
25
+ readonly description: string
26
+ }
27
+ };
28
+ declare const COMMON_OPTIONS: CommonOptionType;
29
+ declare const COMMAND_OPTIONS_DEFAULT: CommandOptions<ArgOptions>;
30
+ declare const COMMAND_BUILTIN_RESOURCE_KEYS: readonly ["USAGE", "COMMAND", "SUBCOMMAND", "COMMANDS", "OPTIONS", "EXAMPLES", "FORMORE"];
31
+
32
+ declare const __constants_ts_BUILT_IN_KEY_SEPARATOR: typeof BUILT_IN_KEY_SEPARATOR;
33
+ declare const __constants_ts_BUILT_IN_PREFIX: typeof BUILT_IN_PREFIX;
34
+ declare const __constants_ts_COMMAND_BUILTIN_RESOURCE_KEYS: typeof COMMAND_BUILTIN_RESOURCE_KEYS;
35
+ declare const __constants_ts_COMMAND_OPTIONS_DEFAULT: typeof COMMAND_OPTIONS_DEFAULT;
36
+ declare const __constants_ts_COMMON_OPTIONS: typeof COMMON_OPTIONS;
37
+ declare const __constants_ts_DEFAULT_LOCALE: typeof DEFAULT_LOCALE;
38
+ declare const __constants_ts_NOOP: typeof NOOP;
39
+ declare const __constants_ts_OPTION_PREFIX: typeof OPTION_PREFIX;
40
+ declare namespace __constants_ts {
41
+ export {
42
+ __constants_ts_BUILT_IN_KEY_SEPARATOR as BUILT_IN_KEY_SEPARATOR,
43
+ __constants_ts_BUILT_IN_PREFIX as BUILT_IN_PREFIX,
44
+ __constants_ts_COMMAND_BUILTIN_RESOURCE_KEYS as COMMAND_BUILTIN_RESOURCE_KEYS,
45
+ __constants_ts_COMMAND_OPTIONS_DEFAULT as COMMAND_OPTIONS_DEFAULT,
46
+ __constants_ts_COMMON_OPTIONS as COMMON_OPTIONS,
47
+ __constants_ts_DEFAULT_LOCALE as DEFAULT_LOCALE,
48
+ __constants_ts_NOOP as NOOP,
49
+ __constants_ts_OPTION_PREFIX as OPTION_PREFIX,
50
+ };
51
+ }
8
52
 
9
- //#endregion
10
- //#region lib/.tsdown-types-es/types.d.ts
11
53
  type Awaitable<T> = T | Promise<T>;
12
54
  type RemoveIndexSignature<T> = { [K in keyof T as string extends K ? never : number extends K ? never : K] : T[K] };
55
+ /**
56
+ * Remove index signature from object or record type.
57
+ */
13
58
  type RemovedIndex<T> = RemoveIndexSignature<{ [K in keyof T] : T[K] }>;
59
+ /**
60
+ * Generate a namespaced key.
61
+ */
14
62
  type GenerateNamespacedKey<
15
63
  Key extends string,
16
64
  Prefixed extends string = typeof BUILT_IN_PREFIX
17
65
  > = `${Prefixed}${typeof BUILT_IN_KEY_SEPARATOR}${Key}`;
18
- type CommandBuiltinOptionsKeys = keyof (typeof import("./constants.ts"))["COMMON_OPTIONS"];
19
- type CommandBuiltinResourceKeys = (typeof import("./constants.ts"))["COMMAND_BUILTIN_RESOURCE_KEYS"][number];
66
+ /**
67
+ * Command i18n built-in options keys.
68
+ */
69
+ type CommandBuiltinOptionsKeys = keyof (typeof __constants_ts)["COMMON_OPTIONS"];
70
+ /**
71
+ * Command i18n built-in resource keys.
72
+ */
73
+ type CommandBuiltinResourceKeys = (typeof __constants_ts)["COMMAND_BUILTIN_RESOURCE_KEYS"][number];
74
+ /**
75
+ * Command i18n built-in keys.
76
+ * The command i18n built-in keys are used to {@link CommandContext.translate | translate} function.
77
+ */
20
78
  type CommandBuiltinKeys = GenerateNamespacedKey<CommandBuiltinOptionsKeys> | GenerateNamespacedKey<CommandBuiltinResourceKeys> | "description" | "examples";
79
+ /**
80
+ * Command i18n option keys.
81
+ * The command i18n option keys are used to {@link CommandContext.translate | translate} function.
82
+ */
21
83
  type CommandOptionKeys<Options extends ArgOptions> = GenerateNamespacedKey<keyof RemovedIndex<Options>, typeof OPTION_PREFIX>;
84
+ /**
85
+ * Command environment.
86
+ */
22
87
  interface CommandEnvironment<Options extends ArgOptions = ArgOptions> {
23
88
  /**
24
89
  * Current working directory.
@@ -83,6 +148,9 @@ interface CommandEnvironment<Options extends ArgOptions = ArgOptions> {
83
148
  */
84
149
  renderValidationErrors: ((ctx: CommandContext<Options>, error: AggregateError) => Promise<string>) | null | undefined;
85
150
  }
151
+ /**
152
+ * Command options.
153
+ */
86
154
  interface CommandOptions<Options extends ArgOptions = ArgOptions> {
87
155
  /**
88
156
  * Current working directory.
@@ -142,6 +210,10 @@ interface CommandOptions<Options extends ArgOptions = ArgOptions> {
142
210
  */
143
211
  translationAdapterFactory?: TranslationAdapterFactory;
144
212
  }
213
+ /**
214
+ * Command context.
215
+ * Command context is the context of the command execution.
216
+ */
145
217
  interface CommandContext<
146
218
  Options extends ArgOptions = ArgOptions,
147
219
  Values = ArgValues<Options>
@@ -218,6 +290,9 @@ interface CommandContext<
218
290
  Key = CommandBuiltinKeys | O | T
219
291
  >(key: Key, values?: Record<string, unknown>) => string;
220
292
  }
293
+ /**
294
+ * Command interface.
295
+ */
221
296
  interface Command<Options extends ArgOptions = ArgOptions> {
222
297
  /**
223
298
  * Command name.
@@ -248,6 +323,9 @@ interface Command<Options extends ArgOptions = ArgOptions> {
248
323
  */
249
324
  resource?: CommandResourceFetcher<Options>;
250
325
  }
326
+ /**
327
+ * Command resource.
328
+ */
251
329
  type CommandResource<Options extends ArgOptions = ArgOptions> = {
252
330
  /**
253
331
  * Command description.
@@ -260,11 +338,22 @@ type CommandResource<Options extends ArgOptions = ArgOptions> = {
260
338
  } & { [Option in GenerateNamespacedKey<keyof RemovedIndex<Options>, typeof OPTION_PREFIX>] : string } & {
261
339
  [key: string]: string
262
340
  };
341
+ /**
342
+ * Command resource fetcher.
343
+ * @param ctx A {@link CommandContext | command context}
344
+ * @returns A fetched {@link CommandResource | command resource}.
345
+ */
263
346
  type CommandResourceFetcher<
264
347
  Options extends ArgOptions = ArgOptions,
265
348
  Values = ArgValues<Options>
266
349
  > = (ctx: Readonly<CommandContext<Options, Values>>) => Promise<CommandResource<Options>>;
350
+ /**
351
+ * Translation adapter factory.
352
+ */
267
353
  type TranslationAdapterFactory = (options: TranslationAdapterFactoryOptions) => TranslationAdapter;
354
+ /**
355
+ * Translation adapter factory options.
356
+ */
268
357
  interface TranslationAdapterFactoryOptions {
269
358
  /**
270
359
  * A locale.
@@ -275,6 +364,11 @@ interface TranslationAdapterFactoryOptions {
275
364
  */
276
365
  fallbackLocale: string;
277
366
  }
367
+ /**
368
+ * Translation adapter.
369
+ * This adapter is used to custom message formatter like {@link https://github.com/intlify/vue-i18n/blob/master/spec/syntax.ebnf | Intlify message format}, {@link https://github.com/tc39/proposal-intl-messageformat | `Intl.MessageFormat` (MF2)}, and etc.
370
+ * This adapter will support localization with your preferred message format.
371
+ */
278
372
  interface TranslationAdapter<MessageResource = string> {
279
373
  /**
280
374
  * Get a resource of locale.
@@ -304,9 +398,20 @@ interface TranslationAdapter<MessageResource = string> {
304
398
  */
305
399
  translate(locale: string, key: string, values?: Record<string, unknown>): string | undefined;
306
400
  }
401
+ /**
402
+ * Command runner.
403
+ * @param ctx A {@link CommandContext | command context}
404
+ */
307
405
  type CommandRunner<Options extends ArgOptions = ArgOptions> = (ctx: Readonly<CommandContext<Options>>) => Awaitable<void>;
406
+ /**
407
+ * Lazy command interface.
408
+ * Lazy command that's not loaded until it is executed.
409
+ */
308
410
  type LazyCommand<Options extends ArgOptions = ArgOptions> = () => Awaitable<Command<Options>>;
411
+ /**
412
+ * Define a command type.
413
+ */
309
414
  type Commandable<Options extends ArgOptions> = Command<Options> | LazyCommand<Options>;
310
415
 
311
- //#endregion
312
- export { Command, CommandBuiltinKeys, CommandBuiltinOptionsKeys, CommandBuiltinResourceKeys, CommandContext, CommandEnvironment, CommandOptionKeys, CommandOptions, CommandResource, CommandResourceFetcher, CommandRunner, Commandable, DEFAULT_LOCALE, GenerateNamespacedKey, LazyCommand, RemovedIndex, TranslationAdapter, TranslationAdapterFactory, TranslationAdapterFactoryOptions };
416
+ export { DEFAULT_LOCALE as D };
417
+ export type { Command as C, GenerateNamespacedKey as G, LazyCommand as L, RemovedIndex as R, TranslationAdapter as T, CommandOptions as a, CommandRunner as b, TranslationAdapterFactoryOptions as c, CommandBuiltinOptionsKeys as d, CommandBuiltinResourceKeys as e, CommandBuiltinKeys as f, CommandOptionKeys as g, CommandEnvironment as h, CommandContext as i, CommandResource as j, CommandResourceFetcher as k, TranslationAdapterFactory as l, Commandable as m };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gunshi",
3
3
  "description": "Modern javascript command-line library",
4
- "version": "0.14.0",
4
+ "version": "0.14.4",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -48,10 +48,10 @@
48
48
  "default": "./lib/definition.js"
49
49
  },
50
50
  "./renderer": {
51
- "types": "./lib/renderer/index.d.ts",
52
- "import": "./lib/renderer/index.js",
53
- "require": "./lib/renderer/index.js",
54
- "default": "./lib/renderer/index.js"
51
+ "types": "./lib/renderer.d.ts",
52
+ "import": "./lib/renderer.js",
53
+ "require": "./lib/renderer.js",
54
+ "default": "./lib/renderer.js"
55
55
  },
56
56
  "./generator": {
57
57
  "types": "./lib/generator.d.ts",
@@ -59,8 +59,7 @@
59
59
  "require": "./lib/generator.js",
60
60
  "default": "./lib/generator.js"
61
61
  },
62
- "./package.json": "./package.json",
63
- "./*": "./*"
62
+ "./package.json": "./package.json"
64
63
  },
65
64
  "types": "lib/index.d.ts",
66
65
  "typesVersions": {
@@ -77,18 +76,18 @@
77
76
  "devDependencies": {
78
77
  "@eslint/markdown": "^6.3.0",
79
78
  "@intlify/core": "next",
80
- "@kazupon/eslint-config": "^0.26.1",
79
+ "@kazupon/eslint-config": "^0.29.0",
81
80
  "@kazupon/prettier-config": "^0.1.1",
82
- "@types/node": "^22.13.14",
83
- "@vitest/eslint-plugin": "^1.1.38",
81
+ "@types/node": "^22.14.0",
82
+ "@vitest/eslint-plugin": "^1.1.42",
84
83
  "bumpp": "^10.1.0",
85
- "deno": "^2.2.6",
86
- "eslint": "^9.23.0",
87
- "eslint-config-prettier": "^10.1.1",
88
- "eslint-import-resolver-typescript": "^4.2.7",
84
+ "deno": "^2.2.8",
85
+ "eslint": "^9.24.0",
86
+ "eslint-config-prettier": "^10.1.2",
87
+ "eslint-import-resolver-typescript": "^4.3.2",
89
88
  "eslint-plugin-import": "^2.31.0",
90
89
  "eslint-plugin-jsonc": "^2.20.0",
91
- "eslint-plugin-module-interop": "^0.3.0",
90
+ "eslint-plugin-module-interop": "^0.3.1",
92
91
  "eslint-plugin-promise": "^7.2.1",
93
92
  "eslint-plugin-regexp": "^2.7.0",
94
93
  "eslint-plugin-unicorn": "^58.0.0",
@@ -98,21 +97,22 @@
98
97
  "eslint-plugin-yml": "^1.17.0",
99
98
  "gh-changelogen": "^0.2.8",
100
99
  "jsr": "^0.13.4",
101
- "knip": "^5.46.3",
100
+ "knip": "^5.50.2",
102
101
  "lint-staged": "^15.5.0",
103
102
  "messageformat": "4.0.0-10",
104
103
  "pkg-pr-new": "^0.0.42",
105
104
  "prettier": "^3.5.3",
106
- "tsdown": "^0.7.0",
107
- "typedoc": "^0.28.1",
108
- "typedoc-plugin-markdown": "^4.6.0",
105
+ "publint": "^0.3.11",
106
+ "tsdown": "0.6.10",
107
+ "typedoc": "^0.28.2",
108
+ "typedoc-plugin-markdown": "^4.6.2",
109
109
  "typedoc-vitepress-theme": "^1.1.2",
110
- "typescript": "^5.8.2",
111
- "typescript-eslint": "^8.28.0",
110
+ "typescript": "^5.8.3",
111
+ "typescript-eslint": "^8.29.1",
112
112
  "vitepress": "^1.6.3",
113
- "vitepress-plugin-group-icons": "^1.3.8",
114
- "vitepress-plugin-llms": "^0.0.22",
115
- "vitest": "^3.0.9",
113
+ "vitepress-plugin-group-icons": "^1.4.1",
114
+ "vitepress-plugin-llms": "^1.0.0",
115
+ "vitest": "^3.1.1",
116
116
  "vue": "^3.5.13"
117
117
  },
118
118
  "prettier": "@kazupon/prettier-config",
@@ -1,8 +0,0 @@
1
- import { Command } from "./types.d-CftFdhAF.js";
2
- import { ArgOptionSchema, ArgOptions, ArgOptions as ArgOptions$1, ArgValues as ArgValues$1 } from "args-tokens";
3
-
4
- //#region lib/.tsdown-types-es/definition.d.ts
5
- declare function define<Options extends ArgOptions = ArgOptions>(definition: Command<Options>): Command<Options>;
6
-
7
- //#endregion
8
- export { ArgOptionSchema, ArgOptions$1 as ArgOptions, ArgValues$1 as ArgValues, define };
@@ -1,16 +0,0 @@
1
- import { CommandContext } from "../types.d-CftFdhAF.js";
2
- import { ArgOptions } from "args-tokens";
3
-
4
- //#region lib/.tsdown-types-es/renderer/header.d.ts
5
- declare function renderHeader<Options extends ArgOptions = ArgOptions>(ctx: Readonly<CommandContext<Options>>): Promise<string>;
6
-
7
- //#endregion
8
- //#region lib/.tsdown-types-es/renderer/usage.d.ts
9
- declare function renderUsage<Options extends ArgOptions = ArgOptions>(ctx: Readonly<CommandContext<Options>>): Promise<string>;
10
-
11
- //#endregion
12
- //#region lib/.tsdown-types-es/renderer/validation.d.ts
13
- declare function renderValidationErrors<Options extends ArgOptions = ArgOptions>(_ctx: CommandContext<Options>, error: AggregateError): Promise<string>;
14
-
15
- //#endregion
16
- export { renderHeader, renderUsage, renderValidationErrors };
@@ -1,3 +0,0 @@
1
- import { renderHeader, renderUsage, renderValidationErrors } from "../renderer-B2JVfepJ.js";
2
-
3
- export { renderHeader, renderUsage, renderValidationErrors };