aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-09-05 11:06:50 -0300
committerSebastian <sebasjm@gmail.com>2022-09-05 13:04:31 -0300
commitd7a55a165f5a826fdfc6e9bc58eb0ee70200828c (patch)
tree76379b82615cb5f139cf5a806defa880c9bb334a /packages/taler-wallet-cli
parente0e33a88db7641775de16f5425bfc08e461a4f75 (diff)
replace __VERSION__ with a string definition
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r--packages/taler-wallet-cli/rollup.config.js2
-rw-r--r--packages/taler-wallet-cli/src/index.ts3
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/taler-wallet-cli/rollup.config.js b/packages/taler-wallet-cli/rollup.config.js
index 3674ede24..eba9fd54d 100644
--- a/packages/taler-wallet-cli/rollup.config.js
+++ b/packages/taler-wallet-cli/rollup.config.js
@@ -30,7 +30,7 @@ export default {
external: builtins,
plugins: [
replace({
- __VERSION__: printedVersion,
+ __VERSION__: `"${printedVersion}"`,
}),
nodeResolve({
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts
index aedc2146e..2a594bd61 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -160,8 +160,9 @@ function applyVerbose(verbose: boolean): void {
// TODO
}
+declare const __VERSION__: string;
function printVersion(): void {
- console.log("__VERSION__");
+ console.log(__VERSION__);
process.exit(0);
}