Skip to content

Commit

Permalink
fix: show correct version
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Oct 10, 2023
1 parent 476657b commit 535f586
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { addCommand as addIpfsCommand } from './commands/ipfsUpload';
import { addCommand as addDiffSnapshots } from './commands/diffSnaphots';
import { addCommand as addGovernance } from './commands/governance';
import { addCommand as addFork } from './commands/fork';
import packageJson from '../package.json';

const program = new Command();

Expand All @@ -21,7 +22,7 @@ program
.on('option:format', function (format) {
process.env.FORMAT = format;
})
.version('0.0.0')
.version(packageJson.version)
.showHelpAfterError();
addGovernance(program);
addDiffSnapshots(program);
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"strict": true,
"target": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true
}
}

0 comments on commit 535f586

Please sign in to comment.