Skip to content

Commit

Permalink
fix: remove minimist
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Feb 2, 2023
1 parent 9d2ac29 commit b95f2d3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
3 changes: 1 addition & 2 deletions packages/breadc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"kolorist": "^1.6.0",
"minimist": "^1.2.7"
"kolorist": "^1.6.0"
},
"devDependencies": {
"@types/minimist": "^1.2.2",
Expand Down
2 changes: 0 additions & 2 deletions packages/breadc/src/option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export function makeOption<
format,
type: 'string',
initial: config.default ?? '',
value: '',
name,
short,
description: ''
Expand All @@ -42,7 +41,6 @@ export function makeOption<
format,
type: 'boolean',
initial,
value: !initial,
name,
short,
description: config.description ?? ''
Expand Down
1 change: 0 additions & 1 deletion packages/breadc/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export interface Option<
short?: string;
type: T extends string ? 'string' : T extends boolean ? 'boolean' : never;
initial: T extends string ? string : T extends boolean ? boolean : never;
value: T extends string ? string : T extends boolean ? boolean : never;
description: string;
}

Expand Down
6 changes: 0 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b95f2d3

Please sign in to comment.