[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/03: replace __VERSION__ with a string definition
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/03: replace __VERSION__ with a string definition |
Date: |
Mon, 05 Sep 2022 18:04:41 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit d7a55a165f5a826fdfc6e9bc58eb0ee70200828c
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Sep 5 11:06:50 2022 -0300
replace __VERSION__ with a string definition
---
packages/taler-wallet-cli/rollup.config.js | 2 +-
packages/taler-wallet-cli/src/index.ts | 3 ++-
packages/taler-wallet-core/rollup.config.js | 7 +++++--
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/packages/taler-wallet-cli/rollup.config.js
b/packages/taler-wallet-cli/rollup.config.js
index 3674ede2..eba9fd54 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 aedc2146..2a594bd6 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);
}
diff --git a/packages/taler-wallet-core/rollup.config.js
b/packages/taler-wallet-core/rollup.config.js
index c6cd3cce..948b7fa8 100644
--- a/packages/taler-wallet-core/rollup.config.js
+++ b/packages/taler-wallet-core/rollup.config.js
@@ -33,8 +33,11 @@ const nodeEntryPoint = {
sourcemaps(),
replace({
- '__VERSION__': `"${pkg.version}"`,
- '__GIT_HASH__': `"${GIT_HASH}"`,
+ values: {
+ '__VERSION__': `"${pkg.version}"`,
+ '__GIT_HASH__': `"${GIT_HASH}"`,
+ },
+ preventAssignment: false,
}),
commonjs({
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.