diff --git a/package.json b/package.json index d125838e18d..8025e085044 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,6 @@ "devDependencies": { "@compodoc/compodoc": "^1.1.10", "@types/execa": "^0.9.0", - "@types/minimist": "^1.2.0", "@types/mkdirp": "^1.0.0", "@types/mocha": "^7.0.0", "@types/mv": "^2.1.0", @@ -64,6 +63,7 @@ "@types/sinon": "^9.0.0", "@types/tmp": "^0.2.0", "@types/url-template": "^2.0.28", + "@types/yargs-parser": "^15.0.0", "c8": "^7.0.0", "codecov": "^3.4.0", "execa": "^4.0.0", @@ -71,7 +71,6 @@ "gts": "^2.0.0", "js-green-licenses": "^1.0.0", "linkinator": "^2.0.0", - "minimist": "^1.2.5", "mkdirp": "^1.0.0", "mocha": "^7.0.0", "mv": "^2.1.1", @@ -84,6 +83,7 @@ "server-destroy": "^1.0.1", "sinon": "^9.0.2", "tmp": "^0.2.0", - "typescript": "^3.8.3" + "typescript": "^3.8.3", + "yargs-parser": "^18.1.3" } } diff --git a/src/generator/download.ts b/src/generator/download.ts index 027db8e5b49..b0aa8797107 100644 --- a/src/generator/download.ts +++ b/src/generator/download.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import * as minimist from 'minimist'; +import * as minimist from 'yargs-parser'; import * as path from 'path'; import * as util from 'util'; import * as fs from 'fs'; diff --git a/src/generator/generate.ts b/src/generator/generate.ts index 3584f1bb698..cf8187c78e2 100644 --- a/src/generator/generate.ts +++ b/src/generator/generate.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import * as minimist from 'minimist'; +import * as minimist from 'yargs-parser'; import * as path from 'path'; import * as rimraf from 'rimraf'; import * as util from 'util';