Skip to content

Commit

Permalink
feat: use package json data for versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
timoheddes committed Nov 27, 2023
1 parent f9e222c commit 88a6684
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@theddes/rabobank-assignment",
"version": "0.0.7",
"version": "0.0.8",
"description": "Rabobank Customer Statement Processor",
"main": "dist/index.js",
"bin": {
Expand Down
7 changes: 5 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#! /usr/bin/env node

// eslint-disable-next-line @typescript-eslint/no-var-requires
import packageJson from '../package.json';

import { createReport, scanFolder } from '@cli';
import { generateTimestamp } from '@utils';
import { Command } from 'commander';

const program = new Command();
program
.version('0.0.1')
.description('Rabobank Customer Statement Processor')
.version(packageJson['version'])
.description(packageJson['description'])
.option(
'-l, --ls [folder]',
'List files and records in folder (folder optional, defaults to current folder)',
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"noEmit": false,
"outDir": "dist",
"removeComments": true,
"resolveJsonModule": true,
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"strict": true,
Expand Down

0 comments on commit 88a6684

Please sign in to comment.