Skip to content

Commit

Permalink
fix: --version shows correct version (#6)
Browse files Browse the repository at this point in the history
* fix: --version shows correct version

---------

Co-authored-by: Thorsten Jerosch <[email protected]>
Dubhar and Dubhar authored Sep 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent df90af6 commit c1f79a6
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sarif-codeclimate",
"version": "2.1.2",
"version": "2.1.3",
"description": "Convert your SARIF output into a readable JSON compatible with GitLab Code Climate Tool",
"main": "out/lib/converter.js",
"bin": {
4 changes: 3 additions & 1 deletion src/bin/sarif-codeclimate.ts
Original file line number Diff line number Diff line change
@@ -4,12 +4,14 @@ import { Command } from 'commander';
import { green, red } from 'colors';
import { writeFileSync } from 'fs';
import { convert } from '../lib/converter';
import { version } from '../../package.json';

const program = new Command();

program
.name('sarif-codeclimate')
.description('Converts a SARIF file to a Code Climate JSON file')
.version('2.0.0')
.version(version)
.requiredOption('-i, --input <path>', 'Path to the SARIF file')
.option('-o, --output <path>', 'Path to the Code Climate JSON file')
.action((options) => {
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,8 @@
"module": "commonjs",
"declaration": true,
"outDir": "./out",
"strict": true
"strict": true,
"resolveJsonModule": true,
},
"include": ["src"],
"exclude": ["node_modules", "**/__tests__/*"]

0 comments on commit c1f79a6

Please sign in to comment.