diff --git a/src/index.ts b/src/index.ts index c87067f..b9eb11e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -98,4 +98,8 @@ component .alias('i') .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);