From 94b59e8b6f250b263be6a36ee05903267beff532 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 16 Apr 2021 09:03:17 +0900 Subject: [PATCH] update commander --- package.json | 2 +- src/argv.ts | 4 +++- yarn.lock | 13 ++++--------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 412542f066..6c77d226d1 100644 --- a/package.json +++ b/package.json @@ -126,7 +126,7 @@ "chalk": "4.1.0", "chart.js": "2.9.4", "cli-highlight": "2.1.11", - "commander": "4.1.1", + "commander": "7.2.0", "concurrently": "6.0.2", "content-disposition": "0.5.3", "core-js": "3.10.1", diff --git a/src/argv.ts b/src/argv.ts index 9c69a450db..ae6396129c 100644 --- a/src/argv.ts +++ b/src/argv.ts @@ -1,6 +1,8 @@ -import * as program from 'commander'; +import { Command } from 'commander'; import config from '@/config'; +const program = new Command(); + program .version(config.version) .option('--no-daemons', 'Disable daemon processes (for debbuging)') diff --git a/yarn.lock b/yarn.lock index b380144373..71fb15c88a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2853,10 +2853,10 @@ combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: dependencies: delayed-stream "~1.0.0" -commander@4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" - integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== +commander@7.2.0, commander@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" + integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== commander@^2.12.1, commander@^2.19.0, commander@^2.20.0, commander@~2.20.3: version "2.20.3" @@ -2873,11 +2873,6 @@ commander@^7.0.0: resolved "https://registry.yarnpkg.com/commander/-/commander-7.0.0.tgz#3e2bbfd8bb6724760980988fb5b22b7ee6b71ab2" integrity sha512-ovx/7NkTrnPuIV8sqk/GjUIIM1+iUQeqA3ye2VNpq9sVoiZsooObWlQy+OPWGI17GDaEoybuAGJm6U8yC077BA== -commander@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" - integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== - comment-json@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/comment-json/-/comment-json-4.1.0.tgz#09d08f0fbc4ad5eeccbac20f469adbb967dcbd2c"