diff options
author | Sebastian <sebasjm@gmail.com> | 2022-01-24 10:57:20 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-01-24 10:57:20 -0300 |
commit | 97a1e09f6ea2a9aa68812c0f20ee6b18a8d4eca8 (patch) | |
tree | f3bf384a54ba0599f9b0efc1aa3b95a37394f904 /packages/taler-wallet-cli/src | |
parent | 0aa26448d45da1a27c465dbf2f7ca8adc59da234 (diff) |
add git revision to --version
Diffstat (limited to 'packages/taler-wallet-cli/src')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index 22a2d8552..3b72f74b7 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -142,9 +142,7 @@ function applyVerbose(verbose: boolean): void { } function printVersion(): void { - // eslint-disable-next-line @typescript-eslint/no-var-requires - const info = require("../package.json"); - console.log(`${info.version}`); + console.log("__VERSION__"); process.exit(0); } |