From 5230e147fbe35cc1942a982e6287a8bc1063b5be Mon Sep 17 00:00:00 2001 From: ryanhagerty Date: Fri, 26 May 2023 10:03:52 -0400 Subject: [PATCH] feat: add version command option --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index 89a3c21..939e134 100644 --- a/src/index.ts +++ b/src/index.ts @@ -96,4 +96,8 @@ component ) .action(componentInstall); +// Because './package.json' is outside of our defined rootDir of ./src +// in tsconfig, we need to disable the next line. +// eslint-disable-next-line +program.version(require('./package.json').version); void program.parseAsync(process.argv);