Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): lock file maintenance #170

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/core/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export class Clerc<C extends Commands = {}, GF extends GlobalFlagOptions = {}> {
return localeObject[name]
? format(localeObject[name], ...args)
: defaultLocaleObject[name]
? format(defaultLocaleObject[name], ...args)
: undefined;
? format(defaultLocaleObject[name], ...args)
: undefined;
},
};
}
Expand Down Expand Up @@ -571,8 +571,8 @@ export class Clerc<C extends Commands = {}, GF extends GlobalFlagOptions = {}> {
command?.name === Root || called === Root
? 0
: called?.length
? called.length
: command?.name.split(" ").length;
? called.length
: command?.name.split(" ").length;
const { _: args, flags, unknownFlags } = parsed;
let parameters =
!isCommandResolved || command.name === Root
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/types/type-flag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ export type InferFlagType<Flag extends FlagTypeOrSchema> = Flag extends
? T[] | D
: T[]
: Flag extends TypeFunction<infer T> | FlagSchema<TypeFunction<infer T>>
? Flag extends FlagSchemaDefault<TypeFunction<T>, infer D>
? T | D
: T | undefined
: never;
? Flag extends FlagSchemaDefault<TypeFunction<T>, infer D>
? T | D
: T | undefined
: never;
export interface ParsedFlags<Schemas = Record<string, unknown>> {
flags: Schemas;
unknownFlags: Record<string, (string | boolean)[]>;
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/types/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ type ParameterType<Parameter extends string> = Parameter extends
| `[${infer _ParameterName}...]`
? string[]
: Parameter extends `<${infer _ParameterName}>`
? string
: Parameter extends `[${infer _ParameterName}]`
? string | undefined
: never;
? string
: Parameter extends `[${infer _ParameterName}]`
? string | undefined
: never;

type NonNullableParameters<T extends string[] | undefined> = T extends undefined
? []
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export const resolveArgv = (): string[] =>
IS_NODE
? process.argv.slice(IS_ELECTRON ? 1 : 2)
: IS_DENO
? // @ts-expect-error Ignore
Deno.args
: [];
? // @ts-expect-error Ignore
Deno.args
: [];

export function compose(inspectors: Inspector[]) {
const inspectorMap = {
Expand Down
Loading