index for node package
This commit is contained in:
parent
11acb0c403
commit
94357e226d
@ -2,7 +2,7 @@
|
|||||||
"name": "taler-wallet",
|
"name": "taler-wallet",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "wxwallet.js",
|
"main": "dist/node/index.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://git.taler.net/wallet.git"
|
"url": "git://git.taler.net/wallet.git"
|
||||||
|
@ -231,7 +231,7 @@ class MerchantBackendConnection {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function main() {
|
export async function main() {
|
||||||
const myNotifier = new ConsoleNotifier();
|
const myNotifier = new ConsoleNotifier();
|
||||||
|
|
||||||
const myBadge = new ConsoleBadge();
|
const myBadge = new ConsoleBadge();
|
||||||
@ -349,7 +349,10 @@ async function main() {
|
|||||||
myWallet.stop();
|
myWallet.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
main().catch(err => {
|
|
||||||
|
if (require.main === module) {
|
||||||
|
main().catch(err => {
|
||||||
console.error("Failed with exception:");
|
console.error("Failed with exception:");
|
||||||
console.error(err);
|
console.error(err);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
23
src/index.ts
Normal file
23
src/index.ts
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
This file is part of TALER
|
||||||
|
(C) 2019 GNUnet e.V.
|
||||||
|
|
||||||
|
TALER is free software; you can redistribute it and/or modify it under the
|
||||||
|
terms of the GNU General Public License as published by the Free Software
|
||||||
|
Foundation; either version 3, or (at your option) any later version.
|
||||||
|
|
||||||
|
TALER is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with
|
||||||
|
TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Module entry point for the wallet when used as a node module.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export { Wallet } from "./wallet";
|
||||||
|
|
||||||
|
export { main as runIntegrationTest } from "./headless/taler-wallet-cli";
|
@ -45,6 +45,7 @@
|
|||||||
"src/http.ts",
|
"src/http.ts",
|
||||||
"src/i18n.tsx",
|
"src/i18n.tsx",
|
||||||
"src/i18n/strings.ts",
|
"src/i18n/strings.ts",
|
||||||
|
"src/index.ts",
|
||||||
"src/libtoolVersion-test.ts",
|
"src/libtoolVersion-test.ts",
|
||||||
"src/libtoolVersion.ts",
|
"src/libtoolVersion.ts",
|
||||||
"src/logging.ts",
|
"src/logging.ts",
|
||||||
|
Loading…
Reference in New Issue
Block a user