finos / architecture-as-code

"Architecture as Code" (AasC) aims to devise and manage software architecture via a machine readable and version-controlled codebase, fostering a robust understanding, efficient development, and seamless maintenance of complex software architectures

Home Page:https://calm.finos.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version reported is incorrect

willosborne opened this issue · comments

Bug Report

--version always prints 0.1.0 because it's hard coded. This should report current version (without hard coding)

Steps to Reproduce:

  • Install version 0.1.4
  • Run --version
  • See output

Expected Result:

0.1.4

Actual Result:

0.1.0

Proposed solution

Use the following code in index.ts:

import {version} from './package.json';

and then print that instead of a hardcoded string.