From 58b93d4d8242a7f9d74d751c8f96ff373b2808ef Mon Sep 17 00:00:00 2001 From: Evgeniy Timokhov Date: Sun, 4 Sep 2022 12:45:48 +0100 Subject: [PATCH] Apply suggestions from code review --- src/bin/dts-bundle-generator.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/dts-bundle-generator.ts b/src/bin/dts-bundle-generator.ts index faa06fd..a31e82f 100644 --- a/src/bin/dts-bundle-generator.ts +++ b/src/bin/dts-bundle-generator.ts @@ -6,7 +6,6 @@ import * as yargs from 'yargs'; import { loadConfigFile, BundlerConfig, ConfigEntryPoint } from '../config-file/load-config-file'; -import * as pkg from '../../package.json'; import { generateDtsBundle } from '../bundle-generator'; import { checkProgramDiagnosticsErrors } from '../helpers/check-diagnostics-errors'; import { getCompilerOptions } from '../get-compiler-options'; @@ -69,7 +68,7 @@ function parseArgs(): ParsedArgs { 'short-option-groups': false, /* eslint-enable @typescript-eslint/naming-convention */ }) - .usage(`Usage: ${pkg.name} [options] `) + .usage('Usage: $0 [options] ') .demandCommand(0) .option('out-file', { alias: 'o',