Skip to content

Commit

Permalink
Merge pull request #231 from emulsify-ds/cli-183-version-option
Browse files Browse the repository at this point in the history
feat: add version command option
  • Loading branch information
callinmullaney authored May 17, 2024
2 parents 02a0b85 + 5230e14 commit c8472ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit c8472ca

Please sign in to comment.