From 75eaf281ed1c03c636042f88acd8f52a1abb2eae Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Sat, 13 Jul 2019 18:02:59 -0300 Subject: [PATCH 1/2] sync Definition type with @oclif/parser --- src/flags.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flags.ts b/src/flags.ts index 514b98c8..27aeff80 100644 --- a/src/flags.ts +++ b/src/flags.ts @@ -28,7 +28,7 @@ export type Input = { [P in keyof T]: IFlag export type Definition = { (options: {multiple: true} & Partial>): IOptionFlag - (options: {required: true} & Partial>): IOptionFlag + (options: ({required: true} | {default: Parser.flags.Default}) & Partial>): IOptionFlag (options?: Partial>): IOptionFlag } From 795f6c4d4ce6a89ca8975b8943494564f6f32f1f Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Sat, 13 Jul 2019 18:10:44 -0300 Subject: [PATCH 2/2] upgrade @oclif/parser --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 3c91dfa5..c5eb67b4 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "bugs": "https://github.com/oclif/command/issues", "dependencies": { "@oclif/errors": "^1.2.2", - "@oclif/parser": "^3.7.3", + "@oclif/parser": "^3.8.3", "debug": "^4.1.1", "semver": "^5.6.0" }, diff --git a/yarn.lock b/yarn.lock index eb080fd1..39c97db0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -86,13 +86,13 @@ chalk "^2.4.1" tslib "^1.9.3" -"@oclif/parser@^3.7.3": - version "3.7.3" - resolved "https://registry.yarnpkg.com/@oclif/parser/-/parser-3.7.3.tgz#cb2240f457396e7b1af2f13caa0dca85b92a5a37" - integrity sha512-yfYpDzVn9ipo4HZtYLfMtd3j3ArpTQlRbQfy9pNnHFd4VedE2PNYQTRWYYMuu1FxEOoknlMZbzsewVvl41TvKg== +"@oclif/parser@^3.8.3": + version "3.8.3" + resolved "https://registry.yarnpkg.com/@oclif/parser/-/parser-3.8.3.tgz#717fbbe5bfafef4270224b8bd41a2d3c80b9554e" + integrity sha512-zN+3oGuv9Lg8NjFvxZTDKFEmhAMfAvd/JWeQp3Ri8pDezoyJQi4OSHHLM8sdHjBh8sePewfWI7+fDUXdrVbrqg== dependencies: "@oclif/linewrap" "^1.0.0" - chalk "^2.4.1" + chalk "^2.4.2" tslib "^1.9.3" "@oclif/plugin-help@^2.1.6":