Skip to content

Commit

Permalink
chore(version from package): getting version from package
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier committed Mar 5, 2024
1 parent f996a3b commit 4dcf813
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/program/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ export const setStdIn = (input: string) => {
export const getStdIn = (): string => stdin;

export const program = new Command();
program.version('1.4.0');
const packageJson = require('./../../package.json');

const appVersion = packageJson.version;
program.version(appVersion);

program
.command('init')
Expand Down

0 comments on commit 4dcf813

Please sign in to comment.